diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-25 23:33:43 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-25 23:33:43 +0000 |
commit | 5b858dce8d2beb2a59bacf00b3680e79debaee4e (patch) | |
tree | 1eb7f63d0c36e1c383b02f16f269b695dc8cdd51 /java | |
parent | 64343a678723bfe88024d10e5eb18e13e54d1405 (diff) |
Minor cleanup
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@819063 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
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"); |