You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ri...@apache.org on 2007/02/05 20:52:14 UTC
svn commit: r503842 - in
/incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest: ./
src/main/java/org/apache/tuscany/sca/test/exceptions/
src/main/java/org/apache/tuscany/sca/test/exceptions/impl/
src/test/java/org/apache/tuscany/sca/test/exce...
Author: rineholt
Date: Mon Feb 5 11:52:13 2007
New Revision: 503842
URL: http://svn.apache.org/viewvc?view=rev&rev=503842
Log:
test busines exceptions cross different databindings
Added:
incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/
- copied from r503622, incubator/tuscany/java/testing/sca/itest/exceptionTests/
Modified:
incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/pom.xml
incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/Checked.java
incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/UnChecked.java
incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionHandlerImpl.java
incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionThrowerImpl.java
incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/test/java/org/apache/tuscany/sca/test/exceptions/IntraCompositeTest.java
Modified: incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/pom.xml?view=diff&rev=503842&r1=503622&r2=503842
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/pom.xml (original)
+++ incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/pom.xml Mon Feb 5 11:52:13 2007
@@ -25,12 +25,25 @@
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <artifactId>exceptionTests</artifactId>
+ <artifactId>exceptionXbinding</artifactId>
<version>SNAPSHOT</version>
<packaging>jar</packaging>
- <name>Test Suite for SCA Spec APIs</name>
+ <name>Test Suite Exception Handling cross bindings</name>
<dependencies>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca.services.databinding</groupId>
+ <artifactId>databinding-sdo</artifactId>
+ <version>1.0-incubator-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca.services.databinding</groupId>
+ <artifactId>databinding-jaxb</artifactId>
+ <version>1.0-incubator-SNAPSHOT</version>
+ </dependency>
+
<dependency>
<groupId>org.osoa</groupId>
<artifactId>sca-api-r0.95</artifactId>
Modified: incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/Checked.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/Checked.java?view=diff&rev=503842&r1=503622&r2=503842
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/Checked.java (original)
+++ incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/Checked.java Mon Feb 5 11:52:13 2007
@@ -25,6 +25,11 @@
/**
*
*/
+ private static final long serialVersionUID = -129752837478357452L;
+
+ /**
+ *
+ */
public Checked() {
}
Modified: incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/UnChecked.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/UnChecked.java?view=diff&rev=503842&r1=503622&r2=503842
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/UnChecked.java (original)
+++ incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/UnChecked.java Mon Feb 5 11:52:13 2007
@@ -24,6 +24,11 @@
/**
*
*/
+ private static final long serialVersionUID = -1318118082838092244L;
+
+ /**
+ *
+ */
public UnChecked() {
}
Modified: incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionHandlerImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionHandlerImpl.java?view=diff&rev=503842&r1=503622&r2=503842
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionHandlerImpl.java (original)
+++ incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionHandlerImpl.java Mon Feb 5 11:52:13 2007
@@ -22,6 +22,7 @@
import org.apache.tuscany.sca.test.exceptions.Checked;
import org.apache.tuscany.sca.test.exceptions.ExceptionHandler;
import org.apache.tuscany.sca.test.exceptions.ExceptionThrower;
+import org.apache.tuscany.sca.test.exceptions.ExceptionThrowerJAXB;
import org.apache.tuscany.sca.test.exceptions.UnChecked;
import org.osoa.sca.annotations.Reference;
import org.osoa.sca.annotations.Scope;
@@ -30,13 +31,13 @@
public class ExceptionHandlerImpl implements ExceptionHandler {
static final String INIT = "INIT";
- public ExceptionThrower exceptionThrower;
+ private ExceptionThrowerJAXB exceptionThrower;
- private String theGood = null;
+ private String theGood;
- private Checked theBad = null;
+ private Checked theBad;
- private UnChecked theUgly = null;
+ private UnChecked theUgly;
/*
* (non-Javadoc)
@@ -84,7 +85,7 @@
assert false : "Got wrong exception '" + e.getClass().getName();
assert result == INIT;
} catch (UnChecked e) {
- theUgly = e;
+ theUgly = e;
} catch (Throwable t) {
// This is not good.
@@ -97,7 +98,7 @@
}
@Reference
- public void setExceptionThrower(ExceptionThrower exceptionThrower) {
+ public void setExceptionThrower(ExceptionThrowerJAXB exceptionThrower) {
this.exceptionThrower = exceptionThrower;
}
Modified: incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionThrowerImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionThrowerImpl.java?view=diff&rev=503842&r1=503622&r2=503842
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionThrowerImpl.java (original)
+++ incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionThrowerImpl.java Mon Feb 5 11:52:13 2007
@@ -19,15 +19,14 @@
package org.apache.tuscany.sca.test.exceptions.impl;
+
import org.apache.tuscany.sca.test.exceptions.Checked;
-import org.apache.tuscany.sca.test.exceptions.ExceptionThrower;
+import org.apache.tuscany.sca.test.exceptions.ExceptionThrowerSDO;
import org.apache.tuscany.sca.test.exceptions.UnChecked;
-/**
- * @author rineholt
- *
- */
-public class ExceptionThrowerImpl implements ExceptionThrower {
+
+
+public class ExceptionThrowerImpl implements ExceptionThrowerSDO {
/*
* (non-Javadoc)
Modified: incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/test/java/org/apache/tuscany/sca/test/exceptions/IntraCompositeTest.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/test/java/org/apache/tuscany/sca/test/exceptions/IntraCompositeTest.java?view=diff&rev=503842&r1=503622&r2=503842
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/test/java/org/apache/tuscany/sca/test/exceptions/IntraCompositeTest.java (original)
+++ incubator/tuscany/java/testing/sca/itest/exceptionXbindingTest/src/test/java/org/apache/tuscany/sca/test/exceptions/IntraCompositeTest.java Mon Feb 5 11:52:13 2007
@@ -30,11 +30,11 @@
public void testALL() {
exceptionHandler.testing();
- assertEquals(ExceptionThrower.SO_THEY_SAY, exceptionHandler.getTheGood() );
+ assertEquals(ExceptionThrower.SO_THEY_SAY, exceptionHandler.getTheGood());
assertNotNull(exceptionHandler.getTheBad());
- assertEquals( Checked.class, exceptionHandler.getTheBad().getClass());
+ assertEquals(Checked.class, exceptionHandler.getTheBad().getClass());
assertNotNull(exceptionHandler.getTheUgly());
- assertEquals( UnChecked.class, exceptionHandler.getTheUgly().getClass());
+ assertEquals(UnChecked.class, exceptionHandler.getTheUgly().getClass());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org