1
1
package fr .insee .pogues .test ;
2
2
3
- import java .io .File ;
4
-
3
+ import fr .insee .pogues .conversion .JSONSerializer ;
4
+ import fr .insee .pogues .mock .*;
5
+ import fr .insee .pogues .model .*;
5
6
import org .apache .commons .io .FileUtils ;
6
- import org .junit .BeforeClass ;
7
- import org .junit .Test ;
7
+ import org .junit .jupiter .api .Test ;
8
8
9
- import fr .insee .pogues .conversion .JSONSerializer ;
10
- import fr .insee .pogues .mock .CodeListFactory ;
11
- import fr .insee .pogues .mock .QuestionFactory ;
12
- import fr .insee .pogues .mock .QuestionnaireFactory ;
13
- import fr .insee .pogues .mock .ResponseFactory ;
14
- import fr .insee .pogues .mock .SequenceFactory ;
15
- import fr .insee .pogues .model .CodeList ;
16
- import fr .insee .pogues .model .QuestionType ;
17
- import fr .insee .pogues .model .Questionnaire ;
18
- import fr .insee .pogues .model .ResponseType ;
19
- import fr .insee .pogues .model .SequenceType ;
20
-
21
- public class JSONSerializerTest {
22
-
23
- @ BeforeClass
24
- public static void setUpBeforeClass () throws Exception {
25
- }
9
+ import java .io .File ;
10
+
11
+ class JSONSerializerTest {
26
12
27
13
@ Test
28
- public void testQuestionnaire () throws Exception {
14
+ void testQuestionnaire () throws Exception {
29
15
30
16
QuestionnaireFactory factory = new QuestionnaireFactory ();
31
17
Questionnaire fakeQuestionnaire = factory .createQuestionnaire ();
@@ -42,7 +28,7 @@ public void testQuestionnaire() throws Exception {
42
28
}
43
29
44
30
@ Test
45
- public void testSequence () throws Exception {
31
+ void testSequence () throws Exception {
46
32
47
33
SequenceFactory factory = new SequenceFactory ();
48
34
SequenceType fakeSequence = factory .createSequence (2 );
@@ -59,7 +45,7 @@ public void testSequence() throws Exception {
59
45
}
60
46
61
47
@ Test
62
- public void testCodeList () throws Exception {
48
+ void testCodeList () throws Exception {
63
49
64
50
CodeListFactory factory = new CodeListFactory ();
65
51
CodeList fakeCodeList = factory .createCodeList ();
@@ -76,7 +62,7 @@ public void testCodeList() throws Exception {
76
62
}
77
63
78
64
@ Test
79
- public void testQuestion () throws Exception {
65
+ void testQuestion () throws Exception {
80
66
81
67
QuestionFactory factory = new QuestionFactory ();
82
68
QuestionType fakeQuestion = factory .createQuestion (42 );
@@ -93,7 +79,7 @@ public void testQuestion() throws Exception {
93
79
}
94
80
95
81
@ Test
96
- public void testQuestionOnly () throws Exception {
82
+ void testQuestionOnly () throws Exception {
97
83
98
84
QuestionFactory factory = new QuestionFactory ();
99
85
QuestionType fakeQuestion = factory .createQuestionOnly (50 );
@@ -110,7 +96,7 @@ public void testQuestionOnly() throws Exception {
110
96
}
111
97
112
98
@ Test
113
- public void testResponse () throws Exception {
99
+ void testResponse () throws Exception {
114
100
115
101
ResponseFactory factory = new ResponseFactory ();
116
102
ResponseType fakeResponse = factory .createResponse ();
0 commit comments