[jboss-cvs] JBossAS SVN: r94048 - projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/annotations.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Sep 27 02:10:53 EDT 2009
Author: jeff.zhang
Date: 2009-09-27 02:10:53 -0400 (Sun, 27 Sep 2009)
New Revision: 94048
Modified:
projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/annotations/AnnotationsTestCase.java
Log:
[JBJCA-176] add test method for every annotation
Modified: projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/annotations/AnnotationsTestCase.java
===================================================================
--- projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/annotations/AnnotationsTestCase.java 2009-09-27 06:00:58 UTC (rev 94047)
+++ projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/annotations/AnnotationsTestCase.java 2009-09-27 06:10:53 UTC (rev 94048)
@@ -38,6 +38,7 @@
import org.junit.AfterClass;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.*;
@@ -151,6 +152,134 @@
// Ok
}
}
+
+ /**
+ * Process: ConnectionDefinitions -- verification of the processConnectionDefinitions method
+ * @throws Throwable throwable exception
+ */
+ @Ignore
+ public void testProcessConnectionDefinitions() throws Throwable
+ {
+ try
+ {
+ URL url = getURL("ra16inoutnora.rar"); //TODO will create rar for testcase
+ AnnotationScanner asf = AnnotationScannerFactory.getDefault();
+ AnnotationRepository ar = asf.scan(new URL[] {url}, Thread.currentThread().getContextClassLoader());
+
+ Annotations.process(null, ar);
+ }
+ catch (Throwable t)
+ {
+ fail(t.getMessage());
+ }
+ }
+
+
+ /**
+ * Process: ConnectionDefinition -- verification of the processConnectionDefinition method
+ * @throws Throwable throwable exception
+ */
+ @Ignore
+ public void testProcessConnectionDefinition() throws Throwable
+ {
+ try
+ {
+ URL url = getURL("ra16inoutnora.rar"); //TODO will create rar for testcase
+ AnnotationScanner asf = AnnotationScannerFactory.getDefault();
+ AnnotationRepository ar = asf.scan(new URL[] {url}, Thread.currentThread().getContextClassLoader());
+
+ Annotations.process(null, ar);
+ }
+ catch (Throwable t)
+ {
+ fail(t.getMessage());
+ }
+ }
+
+ /**
+ * Process: Activation -- verification of the processActivation method
+ * @throws Throwable throwable exception
+ */
+ @Ignore
+ public void testProcessActivation() throws Throwable
+ {
+ try
+ {
+ URL url = getURL("ra16inoutnora.rar"); //TODO will create rar for testcase
+ AnnotationScanner asf = AnnotationScannerFactory.getDefault();
+ AnnotationRepository ar = asf.scan(new URL[] {url}, Thread.currentThread().getContextClassLoader());
+
+ Annotations.process(null, ar);
+ }
+ catch (Throwable t)
+ {
+ fail(t.getMessage());
+ }
+ }
+
+ /**
+ * Process: AuthenticationMechanism -- verification of the processAuthenticationMechanism method
+ * @throws Throwable throwable exception
+ */
+ @Ignore
+ public void testProcessAuthenticationMechanism() throws Throwable
+ {
+ try
+ {
+ URL url = getURL("ra16inoutnora.rar"); //TODO will create rar for testcase
+ AnnotationScanner asf = AnnotationScannerFactory.getDefault();
+ AnnotationRepository ar = asf.scan(new URL[] {url}, Thread.currentThread().getContextClassLoader());
+
+ Annotations.process(null, ar);
+ }
+ catch (Throwable t)
+ {
+ fail(t.getMessage());
+ }
+ }
+
+ /**
+ * Process: AdministeredObject -- verification of the processAdministeredObject method
+ * @throws Throwable throwable exception
+ */
+ @Ignore
+ public void testProcessAdministeredObject() throws Throwable
+ {
+ try
+ {
+ URL url = getURL("ra16inoutnora.rar"); //TODO will create rar for testcase
+ AnnotationScanner asf = AnnotationScannerFactory.getDefault();
+ AnnotationRepository ar = asf.scan(new URL[] {url}, Thread.currentThread().getContextClassLoader());
+
+ Annotations.process(null, ar);
+ }
+ catch (Throwable t)
+ {
+ fail(t.getMessage());
+ }
+ }
+
+ /**
+ * Process: ConfigProperty -- verification of the processConfigProperty method
+ * @throws Throwable throwable exception
+ */
+ @Ignore
+ public void testProcessConfigProperty() throws Throwable
+ {
+ try
+ {
+ URL url = getURL("ra16inoutnora.rar"); //TODO will create rar for testcase
+ AnnotationScanner asf = AnnotationScannerFactory.getDefault();
+ AnnotationRepository ar = asf.scan(new URL[] {url}, Thread.currentThread().getContextClassLoader());
+
+ Annotations.process(null, ar);
+ }
+ catch (Throwable t)
+ {
+ fail(t.getMessage());
+ }
+ }
+
// --------------------------------------------------------------------------------||
// Lifecycle Methods --------------------------------------------------------------||
// --------------------------------------------------------------------------------||
More information about the jboss-cvs-commits
mailing list