/** Populates an example sip */ @BeforeClass public static void initExampleSips() { DcsCollection coll = new DcsCollection(); coll.setId("example:/collection"); DcsDeliverableUnit du = new DcsDeliverableUnit(); du.addCollection(new DcsCollectionRef(coll.getId())); du.setId("example:/deleverableUnit"); exampleDcp = new Dcp(); exampleDcp.addCollection(coll); exampleDcp.addDeliverableUnit(du); }
final DcsCollectionRef collRef = (DcsCollectionRef) context.convertAnother(du, DcsCollectionRef.class); if (collRef != null) { du.addCollection(collRef);
final DcsCollectionRef collRef = (DcsCollectionRef) context.convertAnother(du, DcsCollectionRef.class); if (collRef != null) { du.addCollection(collRef);