10
10
import org .junit .jupiter .api .Test ;
11
11
import org .lfenergy .compas .commons .MarshallerWrapper ;
12
12
import org .lfenergy .compas .scl .SCL ;
13
- import org .lfenergy .compas .scl .data .model .*;
13
+ import org .lfenergy .compas .scl .data .model .ChangeSetType ;
14
+ import org .lfenergy .compas .scl .data .model .Item ;
15
+ import org .lfenergy .compas .scl .data .model .SclType ;
16
+ import org .lfenergy .compas .scl .data .model .Version ;
14
17
import org .lfenergy .compas .scl .data .rest .model .CreateRequest ;
15
18
import org .lfenergy .compas .scl .data .rest .model .UpdateRequest ;
16
19
import org .lfenergy .compas .scl .data .service .CompasSclDataService ;
21
24
import static io .restassured .RestAssured .given ;
22
25
import static io .restassured .path .xml .config .XmlPathConfig .xmlPathConfig ;
23
26
import static org .junit .jupiter .api .Assertions .assertEquals ;
27
+ import static org .lfenergy .compas .scl .data .model .Constants .SCL_NAMESPACE ;
24
28
import static org .lfenergy .compas .scl .data .rest .Constants .*;
25
29
import static org .mockito .Mockito .*;
26
30
@@ -99,7 +103,7 @@ void findByUUID_WhenCalled_ThenSCLResponseRetrieved() throws Exception {
99
103
.response ();
100
104
101
105
var xmlPath = response .xmlPath ()
102
- .using (xmlPathConfig ().declaredNamespace ("scl" , Constants . SCL_NAMESPACE ));
106
+ .using (xmlPathConfig ().declaredNamespace ("scl" , SCL_NAMESPACE ));
103
107
assertEquals ("HeaderID" , xmlPath .get ("GetResponse.scl:SCL.scl:Header.@id" ));
104
108
verify (compasSclDataService , times (1 )).findByUUID (type , uuid );
105
109
}
@@ -124,7 +128,7 @@ void findByUUIDAndVersion_WhenCalled_ThenSCLResponseRetrieved() throws Exception
124
128
.response ();
125
129
126
130
var xmlPath = response .xmlPath ()
127
- .using (xmlPathConfig ().declaredNamespace ("scl" , Constants . SCL_NAMESPACE ));
131
+ .using (xmlPathConfig ().declaredNamespace ("scl" , SCL_NAMESPACE ));
128
132
assertEquals ("HeaderID" , xmlPath .get ("GetResponse.scl:SCL.scl:Header.@id" ));
129
133
verify (compasSclDataService , times (1 )).findByUUID (type , uuid , version );
130
134
}
@@ -147,7 +151,7 @@ void findRawSCLByUUID_WhenCalledOnlySCL_ThenSCLRetrieved() throws Exception {
147
151
.response ();
148
152
149
153
var xmlPath = response .xmlPath ()
150
- .using (xmlPathConfig ().declaredNamespace ("scl" , Constants . SCL_NAMESPACE ));
154
+ .using (xmlPathConfig ().declaredNamespace ("scl" , SCL_NAMESPACE ));
151
155
assertEquals ("HeaderID" , xmlPath .get ("scl:SCL.scl:Header.@id" ));
152
156
verify (compasSclDataService , times (1 )).findByUUID (type , uuid );
153
157
}
@@ -172,7 +176,7 @@ void findRawSCLByUUIDAndVersion_WhenCalled_ThenSCLRetrieved() throws Exception {
172
176
.response ();
173
177
174
178
var xmlPath = response .xmlPath ()
175
- .using (xmlPathConfig ().declaredNamespace ("scl" , Constants . SCL_NAMESPACE ));
179
+ .using (xmlPathConfig ().declaredNamespace ("scl" , SCL_NAMESPACE ));
176
180
assertEquals ("HeaderID" , xmlPath .get ("scl:SCL.scl:Header.@id" ));
177
181
verify (compasSclDataService , times (1 )).findByUUID (type , uuid , version );
178
182
}
0 commit comments