コード例 #1
0
 @Test
 public void should_create_new_AllOf_with_passed_Conditions() {
   Collection<Condition<Object>> conditions = new ArrayList<Condition<Object>>();
   conditions.add(new TestCondition<Object>());
   Condition<Object> created = AllOf.allOf(conditions);
   assertEquals(AllOf.class, created.getClass());
   AllOf<Object> allOf = (AllOf<Object>) created;
   assertEquals(conditions, allOf.conditions);
 }
コード例 #2
0
 @Test
 public void should_return_description() {
   String description = "do or do not, there is not try";
   condition.description = new TextDescription(description);
   assertEquals(description, condition.description().value());
 }