src/test/java/com/gildedrose/GildedRoseTest.java
//Rule #4 : The Quality of an item is never more than 50
Rule #4 : The Quality of an item is never more than 50
Rule #4 : The Quality of an item is never more than 50
@Test
    public void qualityNeverMore50() {
        Item[] items = new Item[] { new Item("Aged Brie", 5, 51) };
        GildedRose app = new GildedRose(items);
        app.updateQuality();
        assertEquals(app.items[0].quality,50);
    }
@ Test public void qualityNeverMore50 ( ) { Item [ ] items = new Item [ ] { new Item ( "Aged Brie" , 5 , 51 ) } ; GildedRose app = new GildedRose ( items ) ; app . updateQuality ( ) ; assertEquals ( app . items [ 0 ] . quality , 50 ) ; }
Rule #4 : The Quality of an item is never more than 50
Rule #4 : The Quality of an item is never more than 50