Skip to content

Commit 247cc48

Browse files
akutscheraNylle
authored andcommitted
test: fix expectation in test
Now we expect what whe throw.
1 parent d1dbae8 commit 247cc48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/github/nylle/javafixture/instantiation/FactoryMethodInstantiatorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,6 @@ void resolveTargetExceptionMessage() throws NoSuchMethodException {
102102

103103
var actual = sut.invoke(new SpecimenFactory(new Context(Configuration.configure())), noContext());
104104

105-
assertThat(actual.getMessage()).isEqualTo("factory method exception expected for tests");
105+
assertThat(actual.getMessage()).isEqualTo("expected for tests");
106106
}
107107
}

0 commit comments

Comments
 (0)