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