[Jboss-cvs] JBossAS SVN: r56440 - branches/JBoss_4_0_3_SP1_JBAS_3453/testsuite/src/main/org/jboss/test/jca/test

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Aug 30 10:02:38 EDT 2006


Author: weston.price at jboss.com
Date: 2006-08-30 10:02:37 -0400 (Wed, 30 Aug 2006)
New Revision: 56440

Modified:
   branches/JBoss_4_0_3_SP1_JBAS_3453/testsuite/src/main/org/jboss/test/jca/test/SupportCodeUnitTestCase.java
Log:
[JBAS-3453] Support code test files.

Modified: branches/JBoss_4_0_3_SP1_JBAS_3453/testsuite/src/main/org/jboss/test/jca/test/SupportCodeUnitTestCase.java
===================================================================
--- branches/JBoss_4_0_3_SP1_JBAS_3453/testsuite/src/main/org/jboss/test/jca/test/SupportCodeUnitTestCase.java	2006-08-30 14:01:37 UTC (rev 56439)
+++ branches/JBoss_4_0_3_SP1_JBAS_3453/testsuite/src/main/org/jboss/test/jca/test/SupportCodeUnitTestCase.java	2006-08-30 14:02:37 UTC (rev 56440)
@@ -83,4 +83,21 @@
        assertFalse(handler.isStaleConnection(stale));
        assertFalse(handler.isExceptionFatal(fatal));
     }
+
+	public void testNonExistentSupportCodeFile() throws Exception
+    {
+	   
+       String url = "does-not-exist.xml";
+       JdbcSupportCodeHandler handler = JdbcSupportCodeHandler.getInstance(url, null, null, null);
+       SQLException stale = new SQLException("Dummy", "NoState", 4);
+       SQLException fatal = new SQLException("Dummy", "NoState", 4);
+       
+       assertTrue(handler.getFatalCodeCount() == 0);
+       assertTrue(handler.getStaleCodeCount() == 0);
+       assertFalse(handler.isStaleConnection(stale));
+       assertFalse(handler.isExceptionFatal(fatal));
+       
+       
+    }
+
 }




More information about the jboss-cvs-commits mailing list