6667686970717273747576
{ ConstructRegistry cr = create(); try { cr.execute(); unreachable(); } catch (BuildException ex) { assertExceptionSubstring(ex, "You must specify an output file");
8788899091929394959697
assertSame(f, cr.getOutput()); try { cr.execute(); unreachable(); } catch (BuildException ex) { assertExceptionSubstring(ex, "You must specify a set of modules");
122123124125126127128129130131132
output.deleteOnExit(); cr.setOutput(output); cr.execute(); compare( output, getFrameworkPath("/test-data/TestConstructRegistry/testBasic.xml.master")); }
151152153154155156157158159160161
output.deleteOnExit(); cr.setOutput(output); cr.execute(); compare( output, getFrameworkPath("/test-data/TestConstructRegistry/testLocalRefs.xml.master")); }
182183184185186187188189190191192
output.deleteOnExit(); cr.setOutput(output); cr.execute(); compare( output, getFrameworkPath("/test-data/TestConstructRegistry/testUptoDate.xml.master"));
190191192193194195196197198199200
output, getFrameworkPath("/test-data/TestConstructRegistry/testUptoDate.xml.master")); long stamp = output.lastModified(); cr.execute(); assertEquals(stamp, output.lastModified()); } public void _testJars() throws Exception
220221222223224225226227228229230
output.deleteOnExit(); cr.setOutput(output); cr.execute(); compare(output, getFrameworkPath("/test-data/TestConstructRegistry/testJars.xml.master")); } protected void compare(File actual, String expectedPath) throws Exception
6061626364656667686970
8182838485868788899091
assertSame(f, cr.getOutput()); try { cr.execute(); unreachable(); } catch (BuildException ex) { assertExceptionSubstring(ex, "You must specify a set of module descriptors");
111112113114115116117118119120121
output.delete(); cr.setOutput(output); cr.execute(); compare(output, getFrameworkPath("src/test-data/TestConstructRegistry/testBasic.xml")); output.delete(); }