use of cbit.vcell.message.server.htc.HtcProxy.HtcJobInfo in project vcell by virtualcell.
the class HtcProxyTest method test_isMyJob.
@Test
public void test_isMyJob() {
System.setProperty(PropertyLoader.vcellServerIDProperty, "ALPHA");
Assert.assertTrue(HtcProxy.isMyJob(new HtcJobInfo(new HtcJobID("1200725", BatchSystemType.SLURM), true, "V_ALPHA_115785823_0_0", null, null)));
Assert.assertFalse(HtcProxy.isMyJob(new HtcJobInfo(new HtcJobID("1200725", BatchSystemType.SLURM), true, "V_BETA_115785823_0_0", null, null)));
System.setProperty(PropertyLoader.vcellServerIDProperty, "BETA");
Assert.assertTrue(HtcProxy.isMyJob(new HtcJobInfo(new HtcJobID("1200725", BatchSystemType.SLURM), true, "V_BETA_115785823_0_0", null, null)));
}
Aggregations