Search in sources :

Example 1 with HtcJobInfo

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)));
}
Also used : HtcJobInfo(cbit.vcell.message.server.htc.HtcProxy.HtcJobInfo) HtcJobID(cbit.vcell.server.HtcJobID) Test(org.junit.Test)

Aggregations

HtcJobInfo (cbit.vcell.message.server.htc.HtcProxy.HtcJobInfo)1 HtcJobID (cbit.vcell.server.HtcJobID)1 Test (org.junit.Test)1