Author: mattmann
Date: Mon May 28 05:40:03 2012
New Revision: 1343143

URL: http://svn.apache.org/viewvc?rev=1343143&view=rev
Log:
- OODT-215 WIP: enable read new/old state format in lifecycle tests

Modified:
    
oodt/trunk/workflow/src/test/org/apache/oodt/cas/workflow/lifecycle/TestWorkflowLifecycleManager.java

Modified: 
oodt/trunk/workflow/src/test/org/apache/oodt/cas/workflow/lifecycle/TestWorkflowLifecycleManager.java
URL: 
http://svn.apache.org/viewvc/oodt/trunk/workflow/src/test/org/apache/oodt/cas/workflow/lifecycle/TestWorkflowLifecycleManager.java?rev=1343143&r1=1343142&r2=1343143&view=diff
==============================================================================
--- 
oodt/trunk/workflow/src/test/org/apache/oodt/cas/workflow/lifecycle/TestWorkflowLifecycleManager.java
 (original)
+++ 
oodt/trunk/workflow/src/test/org/apache/oodt/cas/workflow/lifecycle/TestWorkflowLifecycleManager.java
 Mon May 28 05:40:03 2012
@@ -42,14 +42,14 @@ public class TestWorkflowLifecycleManage
     assertEquals(this.lifecycle.getDefaultLifecycle().getStages().size(), 7);
   }
 
-  public void readNewStateFormat() {
+  public void testReadNewStateFormat() {
     assertNotNull(this.lifecycle.getDefaultLifecycle());
     assertNotNull(this.lifecycle.getDefaultLifecycle().getStages());
     boolean gotNull = false, gotLoaded = false;
     WorkflowLifecycleStage category = this.lifecycle.getDefaultLifecycle()
-        .getCategoryByName("Null");
+        .getCategoryByName("initial");
     assertNotNull(category);
-    assertEquals("Null", category.getName());
+    assertEquals("initial", category.getName());
     for (WorkflowState state : (List<WorkflowState>) category.getStates()) {
       if (state.getName().equals("Null")) {
         gotNull = true;
@@ -65,7 +65,7 @@ public class TestWorkflowLifecycleManage
     assertTrue(gotNull && gotLoaded);
   }
 
-  public void readOldStateFormat() throws InstantiationException {
+  public void testReadOldStateFormat() throws InstantiationException {
     this.lifecycle = new WorkflowLifecycleManager("./src/main/resources"
         + "/examples/workflow-lifecycle.xml");
     assertNotNull(this.lifecycle);


Reply via email to