test(loader): cover unknown consume id rejection
This commit is contained in:
@@ -49,4 +49,13 @@ class CombinationFactoryTest {
|
||||
.isInstanceOf(WorldLoadException.class)
|
||||
.hasMessageContaining("phantom");
|
||||
}
|
||||
|
||||
@Test
|
||||
void rejectsUnknownConsumeId() {
|
||||
CombinationDto dto = new CombinationDto("matches", "torch", null,
|
||||
List.of("matches", "wraith"), null, null, "x", null);
|
||||
assertThatThrownBy(() -> CombinationFactory.fromDto(dto, items()))
|
||||
.isInstanceOf(WorldLoadException.class)
|
||||
.hasMessageContaining("wraith");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user