@Test public void testCheckProcessingEventNotNull() throws BiobankCheckException, Exception { parentSpc.setCollectionEvent(null); try { parentSpc.persist(); Assert.fail("Patient visit should be set!"); } catch (ValueNotSetException vnse) { Assert.assertTrue(true); } }
@Test public void testGetSetCollectionEvent() { CollectionEventWrapper cevent = new CollectionEventWrapper(appService); parentSpc.setCollectionEvent(cevent); Assert.assertTrue(parentSpc.getCollectionEvent().getId() == cevent.getId()); }