[BAEL-12731] - Fixed tests in spring-boot-security module
This commit is contained in:
+2
-3
@@ -15,6 +15,7 @@ import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNull;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
|
||||
@RunWith(SpringRunner.class)
|
||||
@@ -48,8 +49,6 @@ public class BasicAuthConfigurationIntegrationTest {
|
||||
ResponseEntity<String> response = restTemplate.getForEntity(base.toString(), String.class);
|
||||
|
||||
assertEquals(HttpStatus.UNAUTHORIZED, response.getStatusCode());
|
||||
assertTrue(response
|
||||
.getBody()
|
||||
.contains("Unauthorized"));
|
||||
assertNull(response.getBody());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user