Browse Source

Polish gh-1325

Joe Grandja 2 years ago
parent
commit
b94ca93216

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

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

+ 1 - 1
samples/demo-authorizationserver/samples-demo-authorizationserver.gradle

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

+ 1 - 1
samples/demo-authorizationserver/src/test/java/sample/DemoAuthorizationServerApplicationTests.java

@@ -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);