You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by ha...@apache.org on 2012/12/19 18:14:34 UTC
svn commit: r1423961 - in /ode/trunk:
bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/CoreBpelTest.java
jacob/src/main/java/org/apache/ode/jacob/vpu/JacobVPU.java
jacob/src/test/java/org/apache/ode/jacob/examples/cell/JacobCellTest.java
Author: hadrian
Date: Wed Dec 19 17:14:34 2012
New Revision: 1423961
URL: http://svn.apache.org/viewvc?rev=1423961&view=rev
Log:
Get rid of unused constructors. Simplify...
Modified:
ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/CoreBpelTest.java
ode/trunk/jacob/src/main/java/org/apache/ode/jacob/vpu/JacobVPU.java
ode/trunk/jacob/src/test/java/org/apache/ode/jacob/examples/cell/JacobCellTest.java
Modified: ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/CoreBpelTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/CoreBpelTest.java?rev=1423961&r1=1423960&r2=1423961&view=diff
==============================================================================
--- ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/CoreBpelTest.java (original)
+++ ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/CoreBpelTest.java Wed Dec 19 17:14:34 2012
@@ -81,7 +81,8 @@ public class CoreBpelTest extends TestCa
_terminate = false;
_fault = null;
_soup = new ExecutionQueueImpl(CoreBpelTest.class.getClassLoader());
- _vpu = new JacobVPU(_soup);
+ _vpu = new JacobVPU();
+ _vpu.setContext(_soup);
_vpu.registerExtension(BpelRuntimeContext.class, this);
_pid = new Long(19355);
}
Modified: ode/trunk/jacob/src/main/java/org/apache/ode/jacob/vpu/JacobVPU.java
URL: http://svn.apache.org/viewvc/ode/trunk/jacob/src/main/java/org/apache/ode/jacob/vpu/JacobVPU.java?rev=1423961&r1=1423960&r2=1423961&view=diff
==============================================================================
--- ode/trunk/jacob/src/main/java/org/apache/ode/jacob/vpu/JacobVPU.java (original)
+++ ode/trunk/jacob/src/main/java/org/apache/ode/jacob/vpu/JacobVPU.java Wed Dec 19 17:14:34 2012
@@ -81,34 +81,10 @@ public final class JacobVPU {
*/
private RuntimeException _fault;
- /**
- * Default constructor.
- */
public JacobVPU() {
}
/**
- * Re-hydration constructor.
- *
- * @param executionQueue previously saved execution context
- */
- public JacobVPU(ExecutionQueue executionQueue) {
- setContext(executionQueue);
- }
-
- /**
- * Instantiation constructor; used to initialize context with the concretion
- * of a process abstraction.
- *
- * @param context virgin context object
- * @param concretion the process
- */
- public JacobVPU(ExecutionQueue context, JacobRunnable concretion) {
- setContext(context);
- inject(concretion);
- }
-
- /**
* Execute one VPU cycle.
*
* @return <code>true</code> if the run queue is not empty after this cycle, <code>false</code> otherwise.
Modified: ode/trunk/jacob/src/test/java/org/apache/ode/jacob/examples/cell/JacobCellTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/jacob/src/test/java/org/apache/ode/jacob/examples/cell/JacobCellTest.java?rev=1423961&r1=1423960&r2=1423961&view=diff
==============================================================================
--- ode/trunk/jacob/src/test/java/org/apache/ode/jacob/examples/cell/JacobCellTest.java (original)
+++ ode/trunk/jacob/src/test/java/org/apache/ode/jacob/examples/cell/JacobCellTest.java Wed Dec 19 17:14:34 2012
@@ -37,7 +37,9 @@ public class JacobCellTest extends TestC
public void testJacobCell1() throws IOException {
ExecutionQueueImpl fsoup = new ExecutionQueueImpl(null);
- JacobVPU vpu = new JacobVPU(fsoup, new CellTest1());
+ JacobVPU vpu = new JacobVPU();
+ vpu.setContext(fsoup);
+ vpu.inject(new CellTest1());
while (vpu.execute()) {