public void testComputeClasspathForLibrary() throws CoreException, UnsupportedEncodingException {
  final IPath projectRelativeJarPath=new Path("lib/test.jar");
  final String folderName="folder-library";
  addAndCreateJarLibraryEntry(javaProjectA,projectRelativeJarPath);
  addAndCreateFolderLibraryEntry(javaProjectA,folderName);
  List<File> actualCp=getListOfFiles(GWTCompileRunner.computeClasspath(javaProjectA));
  List<File> expectedCp=new ArrayList<File>();
  expectedCp.add(getFile(javaProjectA.getProject(),projectRelativeJarPath.toOSString()));
  expectedCp.add(getFile(javaProjectA.getProject(),folderName));
  assertEquals(expectedCp,actualCp);
}

public void testComputeClasspathForLibrary ( ) throws CoreException , UnsupportedEncodingException { final IPath projectRelativeJarPath = new Path ( "lib/test.jar" ) ; final String folderName = "folder-library" ; addAndCreateJarLibraryEntry ( javaProjectA , projectRelativeJarPath ) ; addAndCreateFolderLibraryEntry ( javaProjectA , folderName ) ; List < File > actualCp = getListOfFiles ( GWTCompileRunner . computeClasspath ( javaProjectA ) ) ; List < File > expectedCp = new ArrayList < File > ( ) ; expectedCp . add ( getFile ( javaProjectA . getProject ( ) , projectRelativeJarPath . toOSString ( ) ) ) ; expectedCp . add ( getFile ( javaProjectA . getProject ( ) , folderName ) ) ; assertEquals ( expectedCp , actualCp ) ; }
tests computing the classpath for libraries ( both a folder library and a jar ) .
