示例#1
0
  @Test
  public void testMigrationJustNotify() throws IOException {

    action.implementation();
    assertEquals("", j.getQuestion());
    assertEquals(null, action.getEndStatus());
  }
示例#2
0
  @Test
  public void testMigrationToConfirm() throws IOException {
    premisFile.delete();
    FileUtils.copyFile(Path.makeFile(workAreaRootPath, "premis.xml_MIGRATION_CONFIRM"), premisFile);

    action.implementation();
    assertEquals(C.QUESTION_MIGRATION_ALLOWED, j.getQuestion());
    assertEquals(C.WORKFLOW_STATUS_WAIT___PROCESS_FOR_USER_DECISION_ACTION, action.getEndStatus());
  }
示例#3
0
  /**
   * Conversion instructions get created properly.
   *
   * @throws IOException
   */
  @Test
  public void conversionInstructionsGetCreatedProperly() throws IOException {
    action.implementation();

    ConversionInstruction[] instrs =
        j.getConversion_instructions().toArray(new ConversionInstruction[0]);

    System.out.println(instrs[0]);

    assertEquals(
        REPNAME + "a/" + TIFF_TESTFILE,
        instrs[0].getSource_file().getRep_name()
            + "/"
            + instrs[0].getSource_file().getRelative_path());
    assertEquals("", instrs[0].getTarget_folder());
    assertEquals("TOPNG", instrs[0].getConversion_routine().getName());
  }