@Override public void setUp() throws Exception { super.setUp(); FirebirdUser investigator = builder.createInvestigatorWithCompleteProfile().get(); Protocol protocol = builder.createProtocol().withProtocolRevision("comment", "some modification").get(); builder .createRegistration(protocol, investigator.getInvestigatorRole().getProfile()) .complete() .withStatus(RegistrationStatus.IN_PROGRESS) .get(); builder.createCoordinator().withApprovedMangedInvestigator(investigator); dataSet = builder.build(); }
@Override protected void configureRegistrationDataSet(DataSetBuilder builder, FirebirdUser investigator) { super.configureRegistrationDataSet(builder, investigator); builder.createCoordinator().asCtepUser().withApprovedMangedInvestigator(investigator); }