File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed
src/test/java/org/gridsuite/useradmin/server Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
package org .gridsuite .useradmin .server ;
8
8
9
- import com .fasterxml .jackson .core .type .TypeReference ;
10
9
import com .fasterxml .jackson .databind .ObjectMapper ;
11
10
import org .gridsuite .useradmin .server .repository .UserAdminRepository ;
12
- import org .gridsuite .useradmin .server .repository .UserInfosEntity ;
13
11
import org .junit .Before ;
14
12
import org .junit .Test ;
15
13
import org .junit .runner .RunWith ;
21
19
import org .springframework .test .context .junit4 .SpringRunner ;
22
20
import org .springframework .test .web .servlet .MockMvc ;
23
21
24
- import java .util .List ;
25
- import java .util .UUID ;
26
-
27
- import static org .junit .Assert .assertEquals ;
28
- import static org .springframework .http .MediaType .APPLICATION_JSON ;
29
22
import static org .springframework .test .web .servlet .request .MockMvcRequestBuilders .*;
30
23
import static org .springframework .test .web .servlet .result .MockMvcResultMatchers .status ;
31
24
@@ -59,7 +52,6 @@ public void setup() {
59
52
60
53
@ Test
61
54
public void testNoAdmin ()throws Exception {
62
-
63
55
mockMvc .perform (head ("/" + UserAdminApi .API_VERSION + "/users/{sub}" , "NOT_REGISTERED_USER" ))
64
56
.andExpect (status ().isOk ())
65
57
.andReturn ();
Original file line number Diff line number Diff line change 16
16
import org .springframework .beans .factory .annotation .Autowired ;
17
17
import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
18
18
import org .springframework .boot .test .context .SpringBootTest ;
19
- import org .springframework .test .context .ActiveProfiles ;
20
19
import org .springframework .test .context .ContextConfiguration ;
21
20
import org .springframework .test .context .junit4 .SpringRunner ;
22
21
import org .springframework .test .web .servlet .MockMvc ;
You can’t perform that action at this time.
0 commit comments