Пример #1
0
 @Test
 public void testPrepare() throws Exception {
   MassImportForm massImportForm = new MassImportForm();
   assertNotNull(massImportForm);
   massImportForm.setTemplate(template);
   assertEquals("", massImportForm.Prepare());
   secondStep.setBenutzer(userList);
   assertEquals("process_import_1", massImportForm.Prepare());
 }
Пример #2
0
  private void setUpTemplate() {
    template = new Process();
    template.setTitel("template");
    template.setDocket(new Docket());
    template.setDocketId(0);
    template.setId(666);
    template.setMetadatenKonfigurationID(0);
    template.setIstTemplate(true);

    Project project = new Project();
    project.setTitel("Project");
    template.setProjekt(project);
    project.setFileFormatInternal("Mets");
    project.setFileFormatDmsExport("Mets");
    userList = new ArrayList<>();
    User user = new User();
    user.setLogin("login");
    user.setPasswort("password");
    userList.add(user);

    List<Step> stepList = new ArrayList<>();
    Step step = new Step();
    step.setTitel("titel");
    step.setBenutzer(userList);
    step.setReihenfolge(1);
    stepList.add(step);

    secondStep = new Step();
    secondStep.setTitel("titel");
    secondStep.setReihenfolge(2);
    stepList.add(secondStep);
    template.setSchritte(stepList);
  }