mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-17 19:37:35 +08:00
Polish
This commit is contained in:
parent
91656ba0f8
commit
1a0ec74f8a
@ -57,8 +57,8 @@ class JvmModuleAssertTests {
|
|||||||
createFile(root, "src/main/java/com/example/Test.other");
|
createFile(root, "src/main/java/com/example/Test.other");
|
||||||
assertThatExceptionOfType(AssertionError.class)
|
assertThatExceptionOfType(AssertionError.class)
|
||||||
.isThrownBy(() -> assertThat(forJavaProject(root)).hasMainSource("com.example", "Test"))
|
.isThrownBy(() -> assertThat(forJavaProject(root)).hasMainSource("com.example", "Test"))
|
||||||
.withMessageContaining("Test").withMessageContaining("com.example").withMessageContaining("Test.java")
|
.withMessageContaining(
|
||||||
.withMessageContaining("com.example").withMessageContaining("src/main/java/com/example/Test.java");
|
String.format("Source '%s' not found in package '%s'", "Test.java", "com.example"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -66,8 +66,8 @@ class JvmModuleAssertTests {
|
|||||||
createFile(root, "src/main/groovy/com/example/Test.java");
|
createFile(root, "src/main/groovy/com/example/Test.java");
|
||||||
assertThatExceptionOfType(AssertionError.class)
|
assertThatExceptionOfType(AssertionError.class)
|
||||||
.isThrownBy(() -> assertThat(forJavaProject(root)).hasMainSource("com.example", "Test"))
|
.isThrownBy(() -> assertThat(forJavaProject(root)).hasMainSource("com.example", "Test"))
|
||||||
.withMessageContaining("Test.java").withMessageContaining("com.example")
|
.withMessageContaining(
|
||||||
.withMessageContaining("src/main/java/com/example/Test.java");
|
String.format("Source '%s' not found in package '%s'", "Test.java", "com.example"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -111,8 +111,8 @@ class JvmModuleAssertTests {
|
|||||||
createFile(root, "src/test/java/com/example/Test.other");
|
createFile(root, "src/test/java/com/example/Test.other");
|
||||||
assertThatExceptionOfType(AssertionError.class)
|
assertThatExceptionOfType(AssertionError.class)
|
||||||
.isThrownBy(() -> assertThat(forJavaProject(root)).hasTestSource("com.example", "Test"))
|
.isThrownBy(() -> assertThat(forJavaProject(root)).hasTestSource("com.example", "Test"))
|
||||||
.withMessageContaining("Test").withMessageContaining("com.example").withMessageContaining("Test.java")
|
.withMessageContaining(
|
||||||
.withMessageContaining("com.example").withMessageContaining("src/test/java/com/example/Test.java");
|
String.format("Source '%s' not found in package '%s'", "Test.java", "com.example"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -120,8 +120,8 @@ class JvmModuleAssertTests {
|
|||||||
createFile(root, "src/test/groovy/com/example/Test.java");
|
createFile(root, "src/test/groovy/com/example/Test.java");
|
||||||
assertThatExceptionOfType(AssertionError.class)
|
assertThatExceptionOfType(AssertionError.class)
|
||||||
.isThrownBy(() -> assertThat(forJavaProject(root)).hasTestSource("com.example", "Test"))
|
.isThrownBy(() -> assertThat(forJavaProject(root)).hasTestSource("com.example", "Test"))
|
||||||
.withMessageContaining("Test.java").withMessageContaining("com.example")
|
.withMessageContaining(
|
||||||
.withMessageContaining("src/test/java/com/example/Test.java");
|
String.format("Source '%s' not found in package '%s'", "Test.java", "com.example"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user