@Test public void testTierIncompleteWidget() { Widget w = sut.getWidgets().get(0); w.addDefect(new Defect(Type.INCOMPLETE)); assertThat(sut.calculateTier(), is(equalTo(Tier.INCOMPLETE))); }
@Test public void testTierIncompleteHinge() { sut.getHinge().addDefect(new Defect(Type.INCOMPLETE)); assertThat(sut.calculateTier(), is(equalTo(Tier.INCOMPLETE))); }
@Test public void testTierIncompleteRearCasing() { Casing c = sut.getRearCasing(); c.addDefect(new Defect(Type.INCOMPLETE)); assertThat(sut.calculateTier(), is(equalTo(Tier.INCOMPLETE))); }
@Test public void testTierOne() { assertNotNull(sut.calculateTier()); assertEquals(sut.calculateTier(), Tier.ONE); }