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