Browse Source

Polish gh-1325

pull/1349/head
Joe Grandja 2 years ago
parent
commit
b94ca93216
  1. 4
      samples/default-authorizationserver/samples-default-authorizationserver.gradle
  2. 2
      samples/demo-authorizationserver/samples-demo-authorizationserver.gradle
  3. 2
      samples/demo-authorizationserver/src/test/java/sample/DemoAuthorizationServerApplicationTests.java

4
samples/default-authorizationserver/samples-default-authorizationserver.gradle

@ -25,3 +25,7 @@ dependencies { @@ -25,3 +25,7 @@ dependencies {
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "net.sourceforge.htmlunit:htmlunit"
}
tasks.named("test") {
useJUnitPlatform()
}

2
samples/demo-authorizationserver/samples-demo-authorizationserver.gradle

@ -31,6 +31,6 @@ dependencies { @@ -31,6 +31,6 @@ dependencies {
testImplementation "net.sourceforge.htmlunit:htmlunit"
}
test {
tasks.named("test") {
useJUnitPlatform()
}

2
samples/demo-authorizationserver/src/test/java/sample/DemoAuthorizationServerApplicationTests.java

@ -68,7 +68,7 @@ public class DemoAuthorizationServerApplicationTests { @@ -68,7 +68,7 @@ public class DemoAuthorizationServerApplicationTests {
}
@Test
public void whenLoginSuccessfulThenDisplayNotFoundError() throws IOException {
public void whenLoginSuccessfulThenDisplayBadRequestError() throws IOException {
HtmlPage page = this.webClient.getPage("/");
assertLoginPage(page);

Loading…
Cancel
Save