KEYCLOAK-3756

This commit is contained in:
Stian Thorgersen 2016-10-19 18:00:33 +02:00
parent f2f508ac2e
commit 320110abaa

View file

@ -57,6 +57,7 @@ public class InitialAccessTokenTest extends AbstractClientRegistrationTest {
try {
reg.create(rep);
Assert.fail("Expected exception");
} catch (ClientRegistrationException e) {
Assert.assertEquals(401, ((HttpErrorException) e.getCause()).getStatusLine().getStatusCode());
}
@ -78,6 +79,7 @@ public class InitialAccessTokenTest extends AbstractClientRegistrationTest {
try {
reg.create(rep);
Assert.fail("Expected exception");
} catch (ClientRegistrationException e) {
Assert.assertEquals(401, ((HttpErrorException) e.getCause()).getStatusLine().getStatusCode());
}
@ -95,6 +97,7 @@ public class InitialAccessTokenTest extends AbstractClientRegistrationTest {
try {
reg.create(rep);
Assert.fail("Expected exception");
} catch (ClientRegistrationException e) {
Assert.assertEquals(401, ((HttpErrorException) e.getCause()).getStatusLine().getStatusCode());
}
@ -112,6 +115,7 @@ public class InitialAccessTokenTest extends AbstractClientRegistrationTest {
try {
reg.create(rep);
Assert.fail("Expected exception");
} catch (ClientRegistrationException e) {
Assert.assertEquals(401, ((HttpErrorException) e.getCause()).getStatusLine().getStatusCode());
}