diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2012-02-20 14:36:06 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2012-02-20 14:36:06 +0000 |
commit | b5ba62cdcf6af33bfd3807f77f8714bba1ef73f8 (patch) | |
tree | 32039b9f6e88583175ac7d3b1649b7291aaa3993 /sca-java-2.x/trunk/testing/itest/services/src/test/java/org | |
parent | 005ecc6b09c01be18cf558dfda84b316af6bb4b0 (diff) |
TUSCANY-2735 - add Rodolfo's generics testing patch.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1291283 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/testing/itest/services/src/test/java/org')
-rw-r--r-- | sca-java-2.x/trunk/testing/itest/services/src/test/java/org/apache/tuscany/sca/itest/services/ServicesTestCase.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/services/src/test/java/org/apache/tuscany/sca/itest/services/ServicesTestCase.java b/sca-java-2.x/trunk/testing/itest/services/src/test/java/org/apache/tuscany/sca/itest/services/ServicesTestCase.java index da779b2c54..05f1c98bc7 100644 --- a/sca-java-2.x/trunk/testing/itest/services/src/test/java/org/apache/tuscany/sca/itest/services/ServicesTestCase.java +++ b/sca-java-2.x/trunk/testing/itest/services/src/test/java/org/apache/tuscany/sca/itest/services/ServicesTestCase.java @@ -95,6 +95,23 @@ public class ServicesTestCase { assertEquals("DComponent", a4.foo1()); } + + + @Test + public void testSCASubGenericsServiceDoIt() throws Exception{ + @SuppressWarnings("unchecked") + SubGenericsServiceClient<String> subGenericsServiceClient = node.getService(SubGenericsServiceClient.class, "SubGenericsServiceClientSCAComponent"); + String actual = "noting"; + String expected = subGenericsServiceClient.doIt(actual); + Assert.assertEquals(actual, expected); + } + + @Test + public void testSCASubGenericsServicePrint() throws Exception{ + @SuppressWarnings("unchecked") + SubGenericsServiceClient<String> subGenericsServiceClient = node.getService(SubGenericsServiceClient.class, "SubGenericsServiceClientSCAComponent"); + subGenericsServiceClient.print(); + } public static void main(String[] args) throws Exception { ServicesTestCase.init(); @@ -103,6 +120,8 @@ public class ServicesTestCase { tester.testBService(); tester.testCService(); tester.testDService(); + tester.testSCASubGenericsServiceDoIt(); + tester.testSCASubGenericsServicePrint(); ServicesTestCase.destroy(); } } |