Beispiel #1
0
 @Test
 public void shouldNotMutateGroovyClasses() {
   createTesteeWith(
       new ResourceFolderByteArraySource(), True.<MethodInfo>all(), Mutator.ALL.asCollection());
   final Collection<MutationDetails> actualDetails = findMutationsFor("groovy/SomeGroovyCode");
   assertTrue(actualDetails.isEmpty());
 }
Beispiel #2
0
 @Test
 public void shouldMarkMutationsAsWithinFinallyBlockWhenWithinTryWithResourcesBlock() {
   createTesteeWith(
       new ResourceFolderByteArraySource(),
       True.<MethodInfo>all(),
       Mutator.VOID_METHOD_CALLS.asCollection());
   final Collection<MutationDetails> actualDetails = findMutationsFor("Java7TryWithResources");
   assertEquals(2, FCollection.filter(actualDetails, isInFinallyBlock()).size());
 }