test: adding toString unit test

This commit is contained in:
pierre 2023-02-19 16:49:17 +01:00
parent 93373b6a13
commit e94ee451b3

View File

@ -51,4 +51,10 @@ class ItemTest {
assertEquals(1, items[0].getQuality());
assertEquals(0, items[0].getSellIn());
}
@Test
void toItemString() {
Item[] items = new Item[]{new Item("Elixir of the Mongoose", 0, 5)};
assertEquals("Elixir of the Mongoose, 0, 5", items[0].toString());
}
}