File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/test/java/org/gridsuite/useradmin/server Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import com .fasterxml .jackson .databind .ObjectMapper ;
10
10
import org .gridsuite .useradmin .server .repository .UserAdminRepository ;
11
+ import org .gridsuite .useradmin .server .repository .UserInfosEntity ;
11
12
import org .junit .Before ;
12
13
import org .junit .Test ;
13
14
import org .junit .runner .RunWith ;
@@ -55,5 +56,12 @@ public void testNoAdmin() throws Exception {
55
56
mockMvc .perform (head ("/" + UserAdminApi .API_VERSION + "/users/{sub}" , "NOT_REGISTERED_USER" ))
56
57
.andExpect (status ().isOk ())
57
58
.andReturn ();
59
+
60
+ UserInfosEntity userInfosEntity = new UserInfosEntity ("newUser" );
61
+ repository .save (userInfosEntity );
62
+
63
+ mockMvc .perform (head ("/" + UserAdminApi .API_VERSION + "/users/{sub}" , "NOT_REGISTERED_USER" ))
64
+ .andExpect (status ().isNoContent ())
65
+ .andReturn ();
58
66
}
59
67
}
You can’t perform that action at this time.
0 commit comments