public void testComputeClasspathForMultipleSources() throws CoreException {
  addAndCreateSourceEntry(javaProjectA,SRC_DIR_NAME,null);
  addAndCreateSourceEntry(javaProjectA,SECONDARY_SRC_DIR_NAME,null);
  List<File> actualCp=getListOfFiles(GWTCompileRunner.computeClasspath(javaProjectA));
  List<File> expectedCp=new ArrayList<File>();
  expectedCp.add(getFile(javaProjectA.getProject(),SRC_DIR_NAME));
  expectedCp.add(getFile(javaProjectA.getProject(),SECONDARY_SRC_DIR_NAME));
  expectedCp.add(getOutputOfProject(javaProjectA));
  assertEquals(expectedCp,actualCp);
}

public void testComputeClasspathForMultipleSources ( ) throws CoreException { addAndCreateSourceEntry ( javaProjectA , SRC_DIR_NAME , null ) ; addAndCreateSourceEntry ( javaProjectA , SECONDARY_SRC_DIR_NAME , null ) ; List < File > actualCp = getListOfFiles ( GWTCompileRunner . computeClasspath ( javaProjectA ) ) ; List < File > expectedCp = new ArrayList < File > ( ) ; expectedCp . add ( getFile ( javaProjectA . getProject ( ) , SRC_DIR_NAME ) ) ; expectedCp . add ( getFile ( javaProjectA . getProject ( ) , SECONDARY_SRC_DIR_NAME ) ) ; expectedCp . add ( getOutputOfProject ( javaProjectA ) ) ; assertEquals ( expectedCp , actualCp ) ; }
tests computing the classpath for a project with multiple source directories .
