Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Merge branch 'chathurace-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
waruna committed May 8, 2015
2 parents 9de9c28 + 6f6c0e7 commit 03656fa
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 19 deletions.
4 changes: 0 additions & 4 deletions modules/integration/tests-integration/bpmn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,5 @@
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
<dependency>
<groupId>org.activiti.wso2</groupId>
<artifactId>activiti-engine</artifactId>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ public void deployUnDeployBPMNPackage() throws Exception {
} catch (Exception exception) {
Assert.assertTrue("Bpmn package " + fileName + "does not exist", BPMNTestConstants.
NOT_AVAILABLE.equals(exception.getMessage()));
log.error("Bpmn package " + fileName + " does not exist", exception);
// If the unDeployment succeed then we should get the exception with deployment could not found and testCase should pass.
// In that case we do not need to log the exception.
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public void deployUnDeployInvalidBPMNPackage() throws Exception {
Assert.fail("Invalid package was deployed.");
} catch (Exception exception) {
Assert.assertTrue("Could not upload the invalid bpmn package", "Error parsing XML".equals(exception.getMessage()));
log.error("Unhandled error, uploading Invalid bpmn package " + fileName, exception);
// If the deployment failed then we should get the exception with invalid bpmn package and testCase should pass.
// In that case we do not need to log the exception.
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ public void deployUnDeployJavaServiceTaskBPMNPackage() throws Exception {
} catch (Exception exception) {
Assert.assertTrue("Process instance was removed successfully", BPMNTestConstants.NOT_AVAILABLE.
equals(exception.getMessage()));
log.error("Process instance does not exist", exception);
// If the process instance does not exist we should get the exception and testCase should pass.
// In that case we do not need to log the exception.
}
//Undeploying the bpmn package. The request should return response of 204 after removing the
//bpmn package.
Expand All @@ -197,7 +198,8 @@ public void deployUnDeployJavaServiceTaskBPMNPackage() throws Exception {
} catch (Exception exception) {
Assert.assertTrue("BPMN package " + fileName + " Does Not Exist", BPMNTestConstants.
NOT_AVAILABLE.equals(exception.getMessage()));
log.error("BPMN package " + fileName + " does not exist", exception);
// If the unDeployment succeed then we should get the exception with deployment could not found and testCase should pass.
// In that case we do not need to log the exception.
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ public void ProcessInstanceTests() throws Exception {
} catch (Exception exception) {
Assert.assertTrue("Process instance was removed successfully", BPMNTestConstants.
NOT_AVAILABLE.equals(exception.getMessage()));
log.error("Process Instance does not exist", exception);
// If the process instance does not exist we should get the exception and testCase should pass.
// In that case we do not need to log the exception.
}
//Undeploying the bpmn package. The request should return response of 204 after removing the
//bpmn package.
Expand All @@ -154,7 +155,8 @@ public void ProcessInstanceTests() throws Exception {
} catch (Exception exception) {
Assert.assertTrue("Bpmn package " + fileName + " does not exist", BPMNTestConstants.
NOT_AVAILABLE.equals(exception.getMessage()));
log.error("Bpmn package " + fileName + " does not exist", exception);
// If the unDeployment succeed then we should get the exception with deployment could not found and testCase should pass.
// In that case we do not need to log the exception.
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ public void UserTaskTestCase() throws Exception {
} catch (Exception exception) {
Assert.assertTrue("Process instance was removed successfully", BPMNTestConstants.
NOT_AVAILABLE.equals(exception.getMessage()));
log.error("Process instance does not exist", exception);
// If the process instance does not exist we should get the exception and testCase should pass.
// In that case we do not need to log the exception.
}
//Undeploying the bpmn package. The request should return response of 204 after removing the
//bpmn package.
Expand All @@ -212,7 +213,8 @@ public void UserTaskTestCase() throws Exception {
} catch (Exception exception) {
Assert.assertTrue("BPMN Package " + fileName + " Does Not Exist", BPMNTestConstants.
NOT_AVAILABLE.equals(exception.getMessage()));
log.error("BPMN package " + fileName + " does not exist", exception);
// If the unDeployment succeed then we should get the exception with deployment could not found and testCase should pass.
// In that case we do not need to log the exception.
}
}
}
7 changes: 0 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,6 @@
<artifactId>org.wso2.bps.multitenancy.login.ui</artifactId>
<version>${bps.version}</version>
</dependency>
<dependency>
<groupId>org.activiti.wso2</groupId>
<artifactId>activiti-engine</artifactId>
<version>${org.activiti.wso2.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
Expand Down Expand Up @@ -636,8 +631,6 @@
<carbon.automation.version>4.3.1</carbon.automation.version>

<orbit.version.ode>1.3.5-wso2v13</orbit.version.ode>

<org.activiti.wso2.version>5.16-wso2v1</org.activiti.wso2.version>

<!-- H2 Database Engine -->
<h2.engine.version>1.2.140.wso2v3</h2.engine.version>
Expand Down

0 comments on commit 03656fa

Please sign in to comment.