@Test public void testWithRegularClass() throws NoSuchMethodException { Method method1 = Integer.class.getMethod("equals",Object.class); List<Method> methods = new ArrayList<>(); methods.add(method1); Mockito.when(utility.getStackTraceMethods()).thenReturn(methods); List<OutputCoverageTestFitness> goals = outputCoverageFactory.getCoverageGoals(); assert(goals.size() == 2); }
@Override public List<OutputCoverageTestFitness> getCoverageGoals() { List<OutputCoverageTestFitness> goals = new ArrayList<>(); List<Method> stackTraceMethods = utility.getStackTraceMethods(); for(Method method: stackTraceMethods){ detectGoals(method,goals); } return goals; }
OutputCoverageFactory extends org.evosuite.coverage.io.output.OutputCoverageFactory { @Override public List<OutputCoverageTestFitness> getCoverageGoals() { List<OutputCoverageTestFitness> goals = new ArrayList<>(); List<Method> stackTraceMethods = utility.getStackTraceMethods(); for(Method method: stackTraceMethods){ detectGoals(method,goals); } return goals; } }
OutputCoverageFactory extends org.evosuite.coverage.io.output.OutputCoverageFactory { @Override public List<OutputCoverageTestFitness> getCoverageGoals() { List<OutputCoverageTestFitness> goals = new ArrayList<>(); List<Method> stackTraceMethods = utility.getStackTraceMethods(); for(Method method: stackTraceMethods){ detectGoals(method,goals); } return goals; }  }
OutputCoverageFactory extends org.evosuite.coverage.io.output.OutputCoverageFactory { @Override public List<OutputCoverageTestFitness> getCoverageGoals() { List<OutputCoverageTestFitness> goals = new ArrayList<>(); List<Method> stackTraceMethods = utility.getStackTraceMethods(); for(Method method: stackTraceMethods){ detectGoals(method,goals); } return goals; }  @Override List<OutputCoverageTestFitness> getCoverageGoals(); }
OutputCoverageFactory extends org.evosuite.coverage.io.output.OutputCoverageFactory { @Override public List<OutputCoverageTestFitness> getCoverageGoals() { List<OutputCoverageTestFitness> goals = new ArrayList<>(); List<Method> stackTraceMethods = utility.getStackTraceMethods(); for(Method method: stackTraceMethods){ detectGoals(method,goals); } return goals; }  @Override List<OutputCoverageTestFitness> getCoverageGoals();  }