@Test public void testRemove() throws Exception { experimentResource.remove(ResourceType.PROCESS, processId); assertFalse( "process data removed successfully", processResource.isExists(ResourceType.PROCESS, processId)); }
@Before public void setUp() throws Exception { super.setUp(); Timestamp creationTime = new Timestamp(new Date().getTime()); experimentResource = (ExperimentResource) getGatewayResource().create(ResourceType.EXPERIMENT); experimentResource.setExperimentId(experimentID); experimentResource.setExperimentName(experimentID); experimentResource.setUserName(getWorkerResource().getUser()); experimentResource.setProjectId(getProjectResource().getId()); experimentResource.setCreationTime(creationTime); experimentResource.save(); processResource = (ProcessResource) experimentResource.create(ResourceType.PROCESS); processResource.setProcessId(processId); processResource.setExperimentId(experimentID); processResource.setCreationTime(creationTime); processResource.save(); }
@Test public void testGet() throws Exception { assertNotNull( "process data retrieved successfully", experimentResource.get(ResourceType.PROCESS, processId)); }
@Test public void testSave() throws Exception { assertTrue( "process save successfully", experimentResource.isExists(ResourceType.PROCESS, processId)); }