diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/client/InitialAccessTokenTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/client/InitialAccessTokenTest.java index 4383583603..b87efd6c86 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/client/InitialAccessTokenTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/client/InitialAccessTokenTest.java @@ -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()); }