OPEN - issue BATCH-773: Refactor and extend ExportedJobLauncher to JobOperator

Make sure job isn't running - use timestamp
This commit is contained in:
dsyer
2008-08-17 16:31:23 +00:00
parent f355d497c3
commit e46cce59c3

View File

@@ -20,6 +20,7 @@ import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.management.MBeanServerConnection;
@@ -63,7 +64,7 @@ public class RemoteLauncherTests {
assertEquals(0, errors.size());
assertTrue(isConnected());
try {
launcher.start("foo", "");
launcher.start("foo", "time="+(new Date().getTime()));
fail("Expected NoSuchJobException");
} catch (NoSuchJobException e) {
//expected;