/** * Return a copy of the assertion, which is valid in newTestCase * * @param newTestCase * a {@link org.evosuite.testcase.TestCase} object. * @return a {@link org.evosuite.assertion.Assertion} object. */ public Assertion clone(TestCase newTestCase) { return copy(newTestCase, 0); }
/** * {@inheritDoc} * * Create copies of all attached assertions */ @Override public Set<Assertion> copyAssertions(TestCase newTestCase, int offset) { Set<Assertion> copy = new LinkedHashSet<Assertion>(); for (Assertion a : assertions) { if (a == null) { logger.info("Assertion is null!"); logger.info("Statement has assertions: " + assertions.size()); } else copy.add(a.copy(newTestCase, offset)); } return copy; }