aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/externalizedmetadata/xmlnametransformer/NameTransformerExceptionTestCases.java')
-rw-r--r--moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/externalizedmetadata/xmlnametransformer/NameTransformerExceptionTestCases.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/externalizedmetadata/xmlnametransformer/NameTransformerExceptionTestCases.java b/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/externalizedmetadata/xmlnametransformer/NameTransformerExceptionTestCases.java
index d929e75..9b1b835 100644
--- a/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/externalizedmetadata/xmlnametransformer/NameTransformerExceptionTestCases.java
+++ b/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/externalizedmetadata/xmlnametransformer/NameTransformerExceptionTestCases.java
@@ -57,13 +57,13 @@ public class NameTransformerExceptionTestCases extends OXTestCase{
public void testExceptionDuringTransform(){
Type[] types = new Type[1];
types[0] = Employee.class;
- try{
- JAXBContext jaxbContext = JAXBContextFactory.createContext(types, getPropertiesWithException(), Thread.currentThread().getContextClassLoader());
- } catch (javax.xml.bind.JAXBException e) {
- e.printStackTrace();
-
- Exception linkedException = (Exception) e.getLinkedException();
- Exception nestedExcpetion = (Exception) e.getCause();
+ try{
+ JAXBContext jaxbContext = JAXBContextFactory.createContext(types, getPropertiesWithException(), Thread.currentThread().getContextClassLoader());
+ } catch (javax.xml.bind.JAXBException e) {
+// e.printStackTrace();
+
+ Exception linkedException = (Exception) e.getLinkedException();
+ Exception nestedExcpetion = (Exception) e.getCause();
assertTrue(nestedExcpetion instanceof JAXBException);
assertEquals(JAXBException.EXCEPTION_DURING_NAME_TRANSFORMATION,((JAXBException)nestedExcpetion).getErrorCode());