This commit is contained in:
Stephane Nicoll
2022-09-20 13:03:03 +02:00
parent 321092ce6f
commit 2f84096af1
9 changed files with 61 additions and 32 deletions

View File

@@ -66,7 +66,7 @@ class MockSpringFactoriesLoaderTests {
assertThat(factories.get(1)).isInstanceOf(TestFactoryTwo.class);
}
static interface TestFactoryType {
interface TestFactoryType {
}

View File

@@ -65,13 +65,13 @@ class SourceFileAssertTests {
@Test
void isEqualToWhenEqual() {
assertThat(this.sourceFile).isEqualTo(SAMPLE);
assertThat(this.sourceFile).hasContent(SAMPLE);
}
@Test
void isEqualToWhenNotEqualThrowsException() {
assertThatExceptionOfType(AssertionError.class).isThrownBy(
() -> assertThat(this.sourceFile).isEqualTo("no")).withMessageContaining(
() -> assertThat(this.sourceFile).hasContent("no")).withMessageContaining(
"expected", "but was");
}