mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noël Rouvignac
31.20.2015 d710c5f04c40abee7b9d79284f79a2295a96c214
opendj-server-legacy/src/test/java/org/opends/server/tasks/TasksTestCase.java
@@ -52,9 +52,7 @@
import static org.opends.server.protocols.internal.Requests.*;
import static org.testng.Assert.*;
/**
 * A base class for all tasks test cases.
 */
/** A base class for all tasks test cases. */
@Test(groups = { "precommit", "tasks" }, sequential = true)
public class TasksTestCase extends DirectoryServerTestCase {
@@ -144,8 +142,6 @@
    });
  }
  /**
   * Retrieves the specified task from the server, waiting for it to finish all
   * the running its going to do before returning.
@@ -157,7 +153,7 @@
   * @throws  Exception  If an unexpected problem occurs.
   */
  @Test(enabled=false) // This isn't a test method, but TestNG thinks it is.
  public static Task getCompletedTask(final DN taskEntryDN) throws Exception
  public static Task getDoneTask(final DN taskEntryDN) throws Exception
  {
    final Task task = getTask(taskEntryDN);
@@ -176,4 +172,11 @@
      }
    });
  }
  public static void waitTaskCompletedSuccessfully(DN taskDN) throws Exception
  {
    Task task = getDoneTask(taskDN);
    assertNotNull(task);
    assertEquals(task.getTaskState(), TaskState.COMPLETED_SUCCESSFULLY);
  }
}