@Test public void shouldNotMutateGroovyClasses() { createTesteeWith( new ResourceFolderByteArraySource(), True.<MethodInfo>all(), Mutator.ALL.asCollection()); final Collection<MutationDetails> actualDetails = findMutationsFor("groovy/SomeGroovyCode"); assertTrue(actualDetails.isEmpty()); }
@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()); }