Skip to content

Commit 88a1316

Browse files
author
George Nyakundi
committed
Replace exception with a more specific one
1 parent a52b7db commit 88a1316

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

boat-scaffold/src/test/java/org/openapitools/codegen/languages/BoatSwift5CodegenTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ void testPostProcessAllModels() {
333333
@Test
334334
void test_processOptsThrowsWhenProjectNameIsInvalid() {
335335
boatSwift5CodeGen.additionalProperties().put("projectName","SomethingClient");
336-
RuntimeException exception = assertThrows(RuntimeException.class, () -> boatSwift5CodeGen.processOpts());
336+
IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> boatSwift5CodeGen.processOpts());
337337
assertEquals("SomethingClient is not valid. projectName should end with `API or `Api`", exception.getMessage());
338338
}
339339

0 commit comments

Comments
 (0)