[BAEL-12731] - Fixed tests in spring-boot-security module

This commit is contained in:
amit2103
2019-03-16 20:40:14 +05:30
parent 6ad4766776
commit 1ff8710842
5 changed files with 24 additions and 7 deletions
@@ -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());
}
}