summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rw-r--r--java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PropertyProcessorTestCase.java7
-rw-r--r--java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ReferenceProcessorTestCase.java11
2 files changed, 6 insertions, 12 deletions
diff --git a/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PropertyProcessorTestCase.java b/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PropertyProcessorTestCase.java
index 6922f00afb..b89efd8b9f 100644
--- a/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PropertyProcessorTestCase.java
+++ b/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PropertyProcessorTestCase.java
@@ -168,7 +168,7 @@ public class PropertyProcessorTestCase {
fail("Processor should not accept a static field with Property annotation");
}
catch (IllegalPropertyException e) {
- // System.out.println("Caught expected exception");
+ // expected
}
catch (Exception e) {
fail("Wrong exception detected");
@@ -182,7 +182,7 @@ public class PropertyProcessorTestCase {
fail("Processor should not accept a static method with Property annotation");
}
catch (IllegalPropertyException e) {
- // System.out.println("Caught expected exception");
+ // expected
}
catch (Exception e) {
fail("Wrong exception detected");
@@ -200,8 +200,7 @@ public class PropertyProcessorTestCase {
fail("Method with @Property annotated args should be rejected");
} catch (IllegalPropertyException e) {
-// e.printStackTrace();
-// System.out.println("Exception successfully received");
+ // expected
}
catch (Exception e) {
fail("Wrong exception received");
diff --git a/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ReferenceProcessorTestCase.java b/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ReferenceProcessorTestCase.java
index cb470e37fa..fdde009893 100644
--- a/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ReferenceProcessorTestCase.java
+++ b/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ReferenceProcessorTestCase.java
@@ -140,8 +140,7 @@ public class ReferenceProcessorTestCase {
fail("reference annotation on ordinary method arg should be rejected");
} catch (IllegalReferenceException e) {
-// e.printStackTrace();
-// System.out.println("Exception successfully received");
+ // expected
}
catch (Exception e) {
fail("Wrong exception detected");
@@ -156,7 +155,6 @@ public class ReferenceProcessorTestCase {
assertNotNull(ref);
assertSame(Ref.class, ((JavaInterface)ref.getInterfaceContract().getInterface()).getJavaClass());
assertEquals(Multiplicity.ONE_N, ref.getMultiplicity());
- // assertEquals(Multiplicity.ONE_ONE, ref.getMultiplicity());
}
@Test
@@ -166,7 +164,6 @@ public class ReferenceProcessorTestCase {
assertNotNull(ref);
assertSame(Ref.class, ((JavaInterface)ref.getInterfaceContract().getInterface()).getJavaClass());
assertEquals(Multiplicity.ZERO_N, ref.getMultiplicity());
- // assertFalse(ref.isMustSupply());
}
@Test
@@ -176,7 +173,6 @@ public class ReferenceProcessorTestCase {
assertNotNull(ref);
assertSame(Ref.class, ((JavaInterface)ref.getInterfaceContract().getInterface()).getJavaClass());
assertEquals(Multiplicity.ONE_N, ref.getMultiplicity());
- // assertEquals(Multiplicity.ONE_ONE, ref.getMultiplicity());
}
@Test
@@ -186,7 +182,6 @@ public class ReferenceProcessorTestCase {
assertNotNull(ref);
assertSame(Ref.class, ((JavaInterface)ref.getInterfaceContract().getInterface()).getJavaClass());
assertEquals(Multiplicity.ZERO_N, ref.getMultiplicity());
- // assertFalse(ref.isMustSupply());
}
@Test
@@ -196,7 +191,7 @@ public class ReferenceProcessorTestCase {
fail("Processor should not accept a static field with Property annotation");
}
catch (IllegalReferenceException e) {
- // System.out.println("Caught expected exception");
+ // expected
}
catch (Exception e) {
fail("Wrong exception detected");
@@ -211,7 +206,7 @@ public class ReferenceProcessorTestCase {
fail("Processor should not accept a static method with Property annotation");
}
catch (IllegalPropertyException e) {
- // System.out.println("Caught expected exception");
+ // expected
}
catch (Exception e) {
fail("Wrong exception detected");