BAEL-2762 Fix tests in spring-boot-security module

This commit is contained in:
anilkivilcim.eray
2019-03-20 23:21:11 +03:00
parent 7b5d3a20e1
commit 284542701f
5 changed files with 27 additions and 8 deletions
@@ -1,5 +1,6 @@
package com.baeldung.springbootsecurity.basic_auth;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -49,8 +50,6 @@ public class BasicAuthConfigurationIntegrationTest {
ResponseEntity<String> response = restTemplate.getForEntity(base.toString(), String.class);
assertEquals(HttpStatus.UNAUTHORIZED, response.getStatusCode());
assertTrue(response
.getBody()
.contains("Unauthorized"));
Assert.assertNull(response.getBody());
}
}