예제 #1
0
 @Test
 public void shouldMutateOtherStatementsWhenAssertIsPresent() {
   createTesteeWith(Mutator.NEGATE_CONDITIONALS.asCollection());
   final Collection<MutationDetails> actualDetails =
       findMutationsFor(HasAssertStatementAndOtherStatements.class);
   assertEquals(1, actualDetails.size());
 }
예제 #2
0
 @Test
 public void shouldNotMutateAssertStatments() {
   createTesteeWith(Mutator.NEGATE_CONDITIONALS.asCollection());
   final Collection<MutationDetails> actualDetails = findMutationsFor(HasAssertStatement.class);
   assertEquals(0, actualDetails.size());
 }