Provide invalid class name in exception message

See gh-31612
This commit is contained in:
PiotrFLEURY
2023-11-15 19:01:02 +01:00
committed by Stéphane Nicoll
parent 05c3ffb2fb
commit 5ac4c3bd76
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ class GeneratedFilesTests {
assertThatIllegalArgumentException()
.isThrownBy(() -> this.generatedFiles
.addSourceFile("com/example/HelloWorld.java", "{}"))
.withMessage("'className' must be a valid identifier");
.withMessage("'className' com/example/HelloWorld.java must be a valid identifier");
}
@Test