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