@Test // SellIn Test public void LegendaryItemSellInTest() throws Exception { LegendaryItem var = new LegendaryItem("blabla", 0, 20); var.staticQuality(); Assert.assertEquals(0, var.getSellIn()); }
@Test // Quality Test public void LegendaryItemQualityTest() throws Exception { LegendaryItem var = new LegendaryItem("Sulfuras, Hand of Ragnaros", 0, 80); var.staticQuality(); Assert.assertEquals(80, var.getQuality()); }