}
public void testBuildTimeout() throws Exception {
final MockProcess timeoutProcess = new TimeoutProcess(20000);
final MockCommandline timeoutCommandline = new MockCommandline() {
public MockProcess getMockProcess() {
return timeoutProcess;
}
};
final InputStream emptyInputStream = new ByteArrayInputStream("".getBytes());
timeoutCommandline.setAssertCorrectCommandline(false);
timeoutCommandline.setProcessErrorStream(emptyInputStream);
timeoutCommandline.setProcessInputStream(emptyInputStream);
timeoutCommandline.setProcessOutputStream(System.out);
final NantBuilder mybuilder = new NantBuilder() {
protected NantScript getNantScript() {
return new NantScript() {
public Commandline getCommandLine() {