src/test/java/com/gildedrose/GildedRoseTest.java
//Rule #2 : The Quality of an item is never negative
Rule #2 : The Quality of an item is never negative
Rule #2 : The Quality of an item is never negative
@Test
    public void qualityNeverNegative() {
        Item[] items = new Item[] { new Item("Backstage passes to a TAFKAL80ETC concert", -1, -1) };
        GildedRose app = new GildedRose(items);
        app.updateQuality();
        assertEquals(app.items[0].quality,0);
    }
@ Test public void qualityNeverNegative ( ) { Item [ ] items = new Item [ ] { new Item ( "Backstage passes to a TAFKAL80ETC concert" , - 1 , - 1 ) } ; GildedRose app = new GildedRose ( items ) ; app . updateQuality ( ) ; assertEquals ( app . items [ 0 ] . quality , 0 ) ; }
Rule #2 : The Quality of an item is never negative
Rule #2 : The Quality of an item is never negative