@Override public void setUp() throws Exception { super.setUp(); File simpleProjectDir = JdtProjectBuilder.getPreConfiguredJdtBuilder("simpleproject") .createIn(getTestWorkspaceDirectory()); this._simpleProjectBinDir = new File(simpleProjectDir, "bin"); // projectB depends on simpleProject but doesn't re-export it File projectbDir = JdtProjectBuilder.getPreConfiguredJdtBuilder("projectb") .withSrcClasspathEntry("/simpleproject", false) .createIn(getTestWorkspaceDirectory()); this._projectBBinDir = new File(projectbDir, "bin"); }
public void testSimple_TwoClassFolders() throws Exception { File projectcDir = JdtProjectBuilder.getPreConfiguredJdtBuilder("projectc") .withSrcClasspathEntry("gen-src", "gen-classes", false) .createIn(getTestWorkspaceDirectory()); String classpath = executeTestTarget("projectc", false, false); // class path must contain 'bin' and 'gen-classes' assertClasspath(classpath, new File(projectcDir, "bin"), new File(projectcDir, "gen-classes")); }
public void test_WithMultipleReferences() throws Exception { // projectC references b. Since b doesn't reexport simple project, // simpleproject will be invisible File projectcDir = JdtProjectBuilder.getPreConfiguredJdtBuilder("projectc") .withSrcClasspathEntry("/projectb", false) .createIn(getTestWorkspaceDirectory()); String classpath = executeTestTarget("projectc", false, false); File projectCBinDir = new File(projectcDir, "bin"); assertClasspath(classpath, projectCBinDir, this._projectBBinDir); }