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
|
||||
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);
|
||||
|
||||
launcher.launchBindingSCACalculator();
|
||||
launcher.launchImplementationJavaCalculatorAsync();
|
||||
|
||||
}
|
||||
|
||||
|
@ -75,8 +75,8 @@ public class SampleJSELauncher extends RuntimeIntegration {
|
|||
* The contribution-binding-sca-calculator contribution includes a client component
|
||||
* that calls the CalculatorServiceComponent from an operation marked by @Init.
|
||||
*/
|
||||
public void launchBindingSCACalculator(){
|
||||
Node node = startNode(new Contribution("c1", "file://C:/Dev7/SCA/samples/my-contribution/target/my--sample-contribution-implementation-java-calculator.jar"));
|
||||
public void launchImplementationJavaCalculatorAsync(){
|
||||
Node node = startNode(new Contribution("c1", "../sample-contribution-implementation-java-calculator-async/target/sample-contribution-implementation-java-calculator-async.jar"));
|
||||
waitBeforeStopping();
|
||||
stopNode(node);
|
||||
}
|
||||
|
|
|
@ -26,22 +26,8 @@ import org.junit.Test;
|
|||
public class LauncherTestCase {
|
||||
|
||||
@Test
|
||||
public void testContributionBindingSCACalculator() throws Exception {
|
||||
SampleJSELauncher.main(new String[] {"contribution-binding-sca-calculator"});
|
||||
public void testContributionImplementationJavaCalculatorAsync() throws Exception {
|
||||
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">
|
||||
<implementation.java class="calculator.CalculatorServiceImpl"/>
|
||||
<reference name="calcService" interface.java="CalculateViaAsyncRef.java" />
|
||||
</component>
|
||||
|
||||
</composite>
|
||||
|
|
Loading…
Add table
Reference in a new issue