File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
api/src/test/java/com/github/throyer/common/springboot/controllers Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -143,15 +143,13 @@ public void must_not_accept_requests_with_token_without_the_correct_role() throw
143143 @ DisplayName ("deve aceitar requisições sem token em rotas publicas" )
144144 public void must_accept_requests_without_token_on_public_routes () throws Exception {
145145 api .perform (get ("/api" ))
146- .andExpect (status ().isOk ())
147- .andExpect (jsonPath ("$.message" ).value ("Is a live!" ));
146+ .andExpect (status ().isOk ());
148147 }
149148
150149 @ Test
151150 @ DisplayName ("deve aceitar requisições sem token em rotas publicas porem com um token invalido no header" )
152151 public void must_accept_requests_without_token_on_public_routes_but_with_invalid_token_on_header () throws Exception {
153152 api .perform (get ("/api" ).header (AUTHORIZATION , token ("ADM" , "this_is_not_my_secret" )))
154- .andExpect (status ().isOk ())
155- .andExpect (jsonPath ("$.message" ).value ("Is a live!" ));
153+ .andExpect (status ().isOk ());
156154 }
157155}
You can’t perform that action at this time.
0 commit comments