@Test public void testMigrationJustNotify() throws IOException { action.implementation(); assertEquals("", j.getQuestion()); assertEquals(null, action.getEndStatus()); }
@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()); }