KEYCLOAK-3756
This commit is contained in:
parent
f2f508ac2e
commit
320110abaa
1 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,7 @@ public class InitialAccessTokenTest extends AbstractClientRegistrationTest {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
reg.create(rep);
|
reg.create(rep);
|
||||||
|
Assert.fail("Expected exception");
|
||||||
} catch (ClientRegistrationException e) {
|
} catch (ClientRegistrationException e) {
|
||||||
Assert.assertEquals(401, ((HttpErrorException) e.getCause()).getStatusLine().getStatusCode());
|
Assert.assertEquals(401, ((HttpErrorException) e.getCause()).getStatusLine().getStatusCode());
|
||||||
}
|
}
|
||||||
|
@ -78,6 +79,7 @@ public class InitialAccessTokenTest extends AbstractClientRegistrationTest {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
reg.create(rep);
|
reg.create(rep);
|
||||||
|
Assert.fail("Expected exception");
|
||||||
} catch (ClientRegistrationException e) {
|
} catch (ClientRegistrationException e) {
|
||||||
Assert.assertEquals(401, ((HttpErrorException) e.getCause()).getStatusLine().getStatusCode());
|
Assert.assertEquals(401, ((HttpErrorException) e.getCause()).getStatusLine().getStatusCode());
|
||||||
}
|
}
|
||||||
|
@ -95,6 +97,7 @@ public class InitialAccessTokenTest extends AbstractClientRegistrationTest {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
reg.create(rep);
|
reg.create(rep);
|
||||||
|
Assert.fail("Expected exception");
|
||||||
} catch (ClientRegistrationException e) {
|
} catch (ClientRegistrationException e) {
|
||||||
Assert.assertEquals(401, ((HttpErrorException) e.getCause()).getStatusLine().getStatusCode());
|
Assert.assertEquals(401, ((HttpErrorException) e.getCause()).getStatusLine().getStatusCode());
|
||||||
}
|
}
|
||||||
|
@ -112,6 +115,7 @@ public class InitialAccessTokenTest extends AbstractClientRegistrationTest {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
reg.create(rep);
|
reg.create(rep);
|
||||||
|
Assert.fail("Expected exception");
|
||||||
} catch (ClientRegistrationException e) {
|
} catch (ClientRegistrationException e) {
|
||||||
Assert.assertEquals(401, ((HttpErrorException) e.getCause()).getStatusLine().getStatusCode());
|
Assert.assertEquals(401, ((HttpErrorException) e.getCause()).getStatusLine().getStatusCode());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue