Changes to get the test running in my environment
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@963660 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2a58cc31b0
commit
017e717836
5 changed files with 7 additions and 29 deletions
|
@ -1,6 +0,0 @@
|
||||||
package calculator;
|
|
||||||
|
|
||||||
public interface Calculate {
|
|
||||||
String factors();
|
|
||||||
|
|
||||||
}
|
|
|
@ -27,6 +27,5 @@ import org.oasisopen.sca.annotation.Remotable;
|
||||||
|
|
||||||
@Remotable
|
@Remotable
|
||||||
public interface CalculatorService {
|
public interface CalculatorService {
|
||||||
String factors(Integer i);
|
String calculate(Integer n1);
|
||||||
|
|
||||||
}
|
}
|
|
@ -48,7 +48,7 @@ public class SampleJSELauncher extends RuntimeIntegration {
|
||||||
|
|
||||||
SampleJSELauncher launcher = new SampleJSELauncher(waitBeforeStopping);
|
SampleJSELauncher launcher = new SampleJSELauncher(waitBeforeStopping);
|
||||||
|
|
||||||
launcher.launchBindingSCACalculator();
|
launcher.launchImplementationJavaCalculatorAsync();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,8 +75,8 @@ public class SampleJSELauncher extends RuntimeIntegration {
|
||||||
* The contribution-binding-sca-calculator contribution includes a client component
|
* The contribution-binding-sca-calculator contribution includes a client component
|
||||||
* that calls the CalculatorServiceComponent from an operation marked by @Init.
|
* that calls the CalculatorServiceComponent from an operation marked by @Init.
|
||||||
*/
|
*/
|
||||||
public void launchBindingSCACalculator(){
|
public void launchImplementationJavaCalculatorAsync(){
|
||||||
Node node = startNode(new Contribution("c1", "file://C:/Dev7/SCA/samples/my-contribution/target/my--sample-contribution-implementation-java-calculator.jar"));
|
Node node = startNode(new Contribution("c1", "../sample-contribution-implementation-java-calculator-async/target/sample-contribution-implementation-java-calculator-async.jar"));
|
||||||
waitBeforeStopping();
|
waitBeforeStopping();
|
||||||
stopNode(node);
|
stopNode(node);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,22 +26,8 @@ import org.junit.Test;
|
||||||
public class LauncherTestCase {
|
public class LauncherTestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testContributionBindingSCACalculator() throws Exception {
|
public void testContributionImplementationJavaCalculatorAsync() throws Exception {
|
||||||
SampleJSELauncher.main(new String[] {"contribution-binding-sca-calculator"});
|
SampleJSELauncher.main(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testContributionBindingWSCalculator() throws Exception {
|
|
||||||
SampleJSELauncher.main(new String[] {"contribution-binding-ws-calculator"});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testContributionBindingRMICalculator() throws Exception {
|
|
||||||
SampleJSELauncher.main(new String[] {"contribution-binding-rmi-calculator"});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testContributionImplementationJavaCalculator() throws Exception {
|
|
||||||
SampleJSELauncher.main(new String[] {"contribution-implementation-java-calculator"});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
<component name="CalculatorServiceComponent">
|
<component name="CalculatorServiceComponent">
|
||||||
<implementation.java class="calculator.CalculatorServiceImpl"/>
|
<implementation.java class="calculator.CalculatorServiceImpl"/>
|
||||||
<reference name="calcService" interface.java="CalculateViaAsyncRef.java" />
|
|
||||||
</component>
|
</component>
|
||||||
|
|
||||||
</composite>
|
</composite>
|
||||||
|
|
Loading…
Add table
Reference in a new issue