[jboss-cvs] JBossAS SVN: r101217 - in projects/metadata/rar/tags: 2.0.0.Alpha6 and 4 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Feb 21 22:11:08 EST 2010
Author: jeff.zhang
Date: 2010-02-21 22:11:07 -0500 (Sun, 21 Feb 2010)
New Revision: 101217
Added:
projects/metadata/rar/tags/2.0.0.Alpha6/
projects/metadata/rar/tags/2.0.0.Alpha6/pom.xml
projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20Base.java
projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20DefaultNSMetaData.java
projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20MetaData.java
projects/metadata/rar/tags/2.0.0.Alpha6/src/main/resources/schema/jboss-ra_2_0.xsd
projects/metadata/rar/tags/2.0.0.Alpha6/src/test/java/org/jboss/test/metadata/rar/JbossRA20DefaultNSUnitTestCase.java
projects/metadata/rar/tags/2.0.0.Alpha6/src/test/java/org/jboss/test/metadata/rar/JbossRA20UnitTestCase.java
projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20DefaultNS_testBasic.xml
projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20_testBasic.xml
projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20_testBootstrapContextShouldBeNull.xml
Removed:
projects/metadata/rar/tags/2.0.0.Alpha6/pom.xml
projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20Base.java
projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20DefaultNSMetaData.java
projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20MetaData.java
projects/metadata/rar/tags/2.0.0.Alpha6/src/main/resources/schema/jboss-ra_2_0.xsd
projects/metadata/rar/tags/2.0.0.Alpha6/src/test/java/org/jboss/test/metadata/rar/JbossRA20DefaultNSUnitTestCase.java
projects/metadata/rar/tags/2.0.0.Alpha6/src/test/java/org/jboss/test/metadata/rar/JbossRA20UnitTestCase.java
projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20DefaultNS_testBasic.xml
projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20_testBasic.xml
Log:
[maven-release-plugin] copy for tag 2.0.0.Alpha6
Copied: projects/metadata/rar/tags/2.0.0.Alpha6 (from rev 101213, projects/metadata/rar/trunk)
Deleted: projects/metadata/rar/tags/2.0.0.Alpha6/pom.xml
===================================================================
--- projects/metadata/rar/trunk/pom.xml 2010-02-22 01:18:51 UTC (rev 101213)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/pom.xml 2010-02-22 03:11:07 UTC (rev 101217)
@@ -1,125 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-parent</artifactId>
- <version>4.0.CR1</version>
- </parent>
- <groupId>org.jboss.metadata</groupId>
- <artifactId>jboss-metadata-rar</artifactId>
- <packaging>jar</packaging>
- <version>2.0.0-SNAPSHOT</version>
- <name>JBoss Metadata RAR</name>
- <url>http://www.jboss.org</url>
- <description>The common JavaEE metadata classes</description>
- <scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/metadata/rar/trunk/</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/metadata/rar/trunk/</developerConnection>
- </scm>
-
- <build>
- <outputDirectory>${profile.outputDirectory}</outputDirectory>
- <testOutputDirectory>${profile.testOutputDirectory}</testOutputDirectory>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.4.3</version>
- <configuration>
- <printSummary>true</printSummary>
- <disableXmlReport>false</disableXmlReport>
- <redirectTestOutputToFile>true</redirectTestOutputToFile>
- <testFailureIgnore>false</testFailureIgnore>
- <includes>
- <include>**/*TestCase.java</include>
- </includes>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <repositories>
- <repository>
- <id>repository.jboss.org</id>
- <name>JBoss Repository</name>
- <layout>default</layout>
- <url>http://repository.jboss.org/maven2/</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>snapshots.jboss.org</id>
- <name>JBoss Snapshot Repository</name>
- <layout>default</layout>
- <url>http://snapshots.jboss.org/maven2/</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
-
- <!--
- Eclipse settings have been removed from parent. This needs to be
- done via an eclipse profile.
- http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085896#4085896
- -->
- <profiles>
- <profile>
- <id>default</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <properties>
- <profile.outputDirectory>target/classes</profile.outputDirectory>
- <profile.testOutputDirectory>target/tests-classes</profile.testOutputDirectory>
- </properties>
- </profile>
-
- <profile>
- <id>eclipse</id>
- <properties>
- <profile.outputDirectory>eclipse-target/classes</profile.outputDirectory>
- <profile.testOutputDirectory>eclipse-target/tests-classes</profile.testOutputDirectory>
- </properties>
- </profile>
- </profiles>
-
- <!-- Compile Dependencies -->
- <dependencies>
-
- <dependency>
- <groupId>org.jboss.metadata</groupId>
- <artifactId>jboss-metadata-common</artifactId>
- <version>2.0.0.Alpha8</version>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.metadata</groupId>
- <artifactId>jboss-metadata-common</artifactId>
- <version>2.0.0.Alpha8</version>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
-
- <!-- Test Dependencies -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.4</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.test</groupId>
- <artifactId>jboss-test</artifactId>
- <version>1.1.4.GA</version>
- <scope>test</scope>
- </dependency>
-
- </dependencies>
-
-</project>
\ No newline at end of file
Copied: projects/metadata/rar/tags/2.0.0.Alpha6/pom.xml (from rev 101216, projects/metadata/rar/trunk/pom.xml)
===================================================================
--- projects/metadata/rar/tags/2.0.0.Alpha6/pom.xml (rev 0)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/pom.xml 2010-02-22 03:11:07 UTC (rev 101217)
@@ -0,0 +1,125 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-parent</artifactId>
+ <version>4.0.CR1</version>
+ </parent>
+ <groupId>org.jboss.metadata</groupId>
+ <artifactId>jboss-metadata-rar</artifactId>
+ <packaging>jar</packaging>
+ <version>2.0.0.Alpha6</version>
+ <name>JBoss Metadata RAR</name>
+ <url>http://www.jboss.org</url>
+ <description>The common JavaEE metadata classes</description>
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/metadata/rar/tags/2.0.0.Alpha6</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/metadata/rar/tags/2.0.0.Alpha6</developerConnection>
+ </scm>
+
+ <build>
+ <outputDirectory>${profile.outputDirectory}</outputDirectory>
+ <testOutputDirectory>${profile.testOutputDirectory}</testOutputDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.4.3</version>
+ <configuration>
+ <printSummary>true</printSummary>
+ <disableXmlReport>false</disableXmlReport>
+ <redirectTestOutputToFile>true</redirectTestOutputToFile>
+ <testFailureIgnore>false</testFailureIgnore>
+ <includes>
+ <include>**/*TestCase.java</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository</name>
+ <layout>default</layout>
+ <url>http://repository.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <layout>default</layout>
+ <url>http://snapshots.jboss.org/maven2/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <!--
+ Eclipse settings have been removed from parent. This needs to be
+ done via an eclipse profile.
+ http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085896#4085896
+ -->
+ <profiles>
+ <profile>
+ <id>default</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <properties>
+ <profile.outputDirectory>target/classes</profile.outputDirectory>
+ <profile.testOutputDirectory>target/tests-classes</profile.testOutputDirectory>
+ </properties>
+ </profile>
+
+ <profile>
+ <id>eclipse</id>
+ <properties>
+ <profile.outputDirectory>eclipse-target/classes</profile.outputDirectory>
+ <profile.testOutputDirectory>eclipse-target/tests-classes</profile.testOutputDirectory>
+ </properties>
+ </profile>
+ </profiles>
+
+ <!-- Compile Dependencies -->
+ <dependencies>
+
+ <dependency>
+ <groupId>org.jboss.metadata</groupId>
+ <artifactId>jboss-metadata-common</artifactId>
+ <version>2.0.0.Alpha11</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.metadata</groupId>
+ <artifactId>jboss-metadata-common</artifactId>
+ <version>2.0.0.Alpha11</version>
+ <type>test-jar</type>
+ <scope>test</scope>
+ </dependency>
+
+ <!-- Test Dependencies -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.4</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.test</groupId>
+ <artifactId>jboss-test</artifactId>
+ <version>1.1.4.GA</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+</project>
Deleted: projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20Base.java
===================================================================
--- projects/metadata/rar/trunk/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20Base.java 2010-02-22 01:18:51 UTC (rev 101213)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20Base.java 2010-02-22 03:11:07 UTC (rev 101217)
@@ -1,57 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlElement;
-
-/**
- * JBossRA20Base
- * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
- * @version $Revision: $
- */
-public class JBossRA20Base extends JBossRAMetaData
-{
- /** The serialVersionUID */
- private static final long serialVersionUID = -8045048197795930659L;
-
- private List<BvGroupMetaData> bvGroupsList;
-
- /**
- * @return the bvGroupsList
- */
- public List<BvGroupMetaData> getBvGroupsList()
- {
- return bvGroupsList;
- }
-
- /**
- * @param bvGroupsList the bvGroupsList to set
- */
- @XmlElement(name="bean-validation-groups")
- public void setBvGroupsList(List<BvGroupMetaData> bvGroupsList)
- {
- this.bvGroupsList = bvGroupsList;
- }
-
-}
Copied: projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20Base.java (from rev 101214, projects/metadata/rar/trunk/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20Base.java)
===================================================================
--- projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20Base.java (rev 0)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20Base.java 2010-02-22 03:11:07 UTC (rev 101217)
@@ -0,0 +1,79 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.jboss;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+
+/**
+ * JBossRA20Base
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
+ * @version $Revision: $
+ */
+public class JBossRA20Base extends JBossRAMetaData
+{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = -8045048197795930659L;
+
+ private List<BvGroupMetaData> bvGroupsList;
+
+ private String bootstrapContext = null;
+
+ /**
+ * @return the bvGroupsList
+ */
+ public List<BvGroupMetaData> getBvGroupsList()
+ {
+ return bvGroupsList;
+ }
+
+ /**
+ * @param bvGroupsList the bvGroupsList to set
+ */
+ @XmlElement(name="bean-validation-groups")
+ public void setBvGroupsList(List<BvGroupMetaData> bvGroupsList)
+ {
+ this.bvGroupsList = bvGroupsList;
+ }
+
+ /**
+ * Get the bootstrapContext.
+ *
+ * @return the bootstrapContext.
+ */
+ public String getBootstrapContext()
+ {
+ return bootstrapContext;
+ }
+
+ /**
+ * Set the bootstrapContext.
+ *
+ * @param bootstrapContext The bootstrapContext to set.
+ */
+ public void setBootstrapContext(String bootstrapContext)
+ {
+ this.bootstrapContext = bootstrapContext;
+ }
+
+}
Deleted: projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20DefaultNSMetaData.java
===================================================================
--- projects/metadata/rar/trunk/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20DefaultNSMetaData.java 2010-02-22 01:18:51 UTC (rev 101213)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20DefaultNSMetaData.java 2010-02-22 03:11:07 UTC (rev 101217)
@@ -1,46 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import javax.xml.bind.annotation.XmlNsForm;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.jboss.xb.annotations.JBossXmlSchema;
-
-/**
- * JBossRA20DefaultNSMetaData
- * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
- * @version $Revision: $
- */
- at XmlRootElement(name="jboss-ra")
- at JBossXmlSchema(
- ignoreUnresolvedFieldOrClass=false,
- elementFormDefault=XmlNsForm.QUALIFIED,
- normalizeSpace=true,
- strict=false)
- at XmlType(name="jboss-raType",
- propOrder={"raConfigProps", "bvGroupsList"})
-public class JBossRA20DefaultNSMetaData extends JBossRA20Base
-{
-
-}
Copied: projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20DefaultNSMetaData.java (from rev 101214, projects/metadata/rar/trunk/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20DefaultNSMetaData.java)
===================================================================
--- projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20DefaultNSMetaData.java (rev 0)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20DefaultNSMetaData.java 2010-02-22 03:11:07 UTC (rev 101217)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.jboss;
+
+import javax.xml.bind.annotation.XmlNsForm;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.xb.annotations.JBossXmlSchema;
+
+/**
+ * JBossRA20DefaultNSMetaData
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
+ * @version $Revision: $
+ */
+ at XmlRootElement(name="jboss-ra")
+ at JBossXmlSchema(
+ ignoreUnresolvedFieldOrClass=false,
+ elementFormDefault=XmlNsForm.QUALIFIED,
+ normalizeSpace=true,
+ strict=false)
+ at XmlType(name="jboss-raType",
+ propOrder={"raConfigProps", "bvGroupsList", "bootstrapContext"})
+public class JBossRA20DefaultNSMetaData extends JBossRA20Base
+{
+
+}
Deleted: projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20MetaData.java
===================================================================
--- projects/metadata/rar/trunk/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20MetaData.java 2010-02-22 01:18:51 UTC (rev 101213)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20MetaData.java 2010-02-22 03:11:07 UTC (rev 101217)
@@ -1,48 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.rar.jboss;
-
-import javax.xml.bind.annotation.XmlNs;
-import javax.xml.bind.annotation.XmlNsForm;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.jboss.xb.annotations.JBossXmlSchema;
-
-/**
- * JBossRA20MetaData
- * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
- * @version $Revision: $
- */
- at XmlRootElement(name="jboss-ra", namespace="http://www.jboss.org/schema/ra")
- at JBossXmlSchema(
- xmlns={@XmlNs(namespaceURI = "http://www.jboss.org/schema/ra", prefix = "ra")},
- ignoreUnresolvedFieldOrClass=false,
- namespace="http://www.jboss.org/schema/ra",
- elementFormDefault=XmlNsForm.QUALIFIED,
- normalizeSpace=true)
- at XmlType(name="jboss-raType",
- propOrder={"raConfigProps", "bvGroupsList"})
-public class JBossRA20MetaData extends JBossRA20Base
-{
-
-}
Copied: projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20MetaData.java (from rev 101214, projects/metadata/rar/trunk/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20MetaData.java)
===================================================================
--- projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20MetaData.java (rev 0)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/main/java/org/jboss/metadata/rar/jboss/JBossRA20MetaData.java 2010-02-22 03:11:07 UTC (rev 101217)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.rar.jboss;
+
+import javax.xml.bind.annotation.XmlNs;
+import javax.xml.bind.annotation.XmlNsForm;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.xb.annotations.JBossXmlSchema;
+
+/**
+ * JBossRA20MetaData
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
+ * @version $Revision: $
+ */
+ at XmlRootElement(name="jboss-ra", namespace="http://www.jboss.org/schema/ra")
+ at JBossXmlSchema(
+ xmlns={@XmlNs(namespaceURI = "http://www.jboss.org/schema/ra", prefix = "ra")},
+ ignoreUnresolvedFieldOrClass=false,
+ namespace="http://www.jboss.org/schema/ra",
+ elementFormDefault=XmlNsForm.QUALIFIED,
+ normalizeSpace=true)
+ at XmlType(name="jboss-raType",
+ propOrder={"raConfigProps", "bvGroupsList", "bootstrapContext"})
+public class JBossRA20MetaData extends JBossRA20Base
+{
+
+}
Deleted: projects/metadata/rar/tags/2.0.0.Alpha6/src/main/resources/schema/jboss-ra_2_0.xsd
===================================================================
--- projects/metadata/rar/trunk/src/main/resources/schema/jboss-ra_2_0.xsd 2010-02-22 01:18:51 UTC (rev 101213)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/main/resources/schema/jboss-ra_2_0.xsd 2010-02-22 03:11:07 UTC (rev 101217)
@@ -1,74 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns="http://www.w3.org/2001/XMLSchema"
- targetNamespace="http://www.jboss.org/schema/ra"
- xmlns:ra="http://www.jboss.org/schema/ra" xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:javaee="http://java.sun.com/xml/ns/javaee"
- elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.0">
-
-
- <xs:import namespace="http://java.sun.com/xml/ns/javaee" schemaLocation="http://java.sun.com/xml/ns/javaee/javaee_5.xsd"/>
-
- <xs:element name="jboss-ra" type="ra:jbossRaType"/>
-
- <xs:complexType name="jbossRaType">
-
- <xs:sequence>
- <xs:element name="ra-config-property" type="ra:ra-config-property-type" minOccurs="0" maxOccurs="unbounded"/>
-
- <xs:element name="bean-validation-groups" type="ra:bean-validation-groups-type" minOccurs="0" maxOccurs="unbounded"/>
-
- </xs:sequence>
-
- </xs:complexType>
-
- <xs:complexType name="ra-config-property-type">
-
- <xs:sequence>
- <xs:element name="ra-config-property-name" type="xs:string" minOccurs="1" maxOccurs="1"/>
- <xs:element name="ra-config-property-type" type="ra:ra-config-property-typeType" minOccurs="1" maxOccurs="1"/>
- <xs:element name="ra-config-property-value" type="xs:string" minOccurs="0" maxOccurs="1"/>
- </xs:sequence>
- <xs:attribute name="override-element" type="xs:string" default="resourceadapter"/>
- </xs:complexType>
-
- <xs:complexType name="bean-validation-groups-type">
- <xs:sequence>
- <xs:element name="bean-validation-group" nillable="true" minOccurs="0" maxOccurs="unbounded">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:string">
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
-
- <xs:complexType name="ra-config-property-typeType">
- <xs:simpleContent>
- <xs:restriction base="javaee:string">
- <xs:enumeration value="java.lang.Boolean"/>
- <xs:enumeration value="java.lang.String"/>
- <xs:enumeration value="java.lang.Integer"/>
- <xs:enumeration value="java.lang.Double"/>
- <xs:enumeration value="java.lang.Byte"/>
- <xs:enumeration value="java.lang.Short"/>
- <xs:enumeration value="java.lang.Long"/>
- <xs:enumeration value="java.lang.Float"/>
- <xs:enumeration value="java.lang.Character"/>
- </xs:restriction>
- </xs:simpleContent>
- </xs:complexType>
-
- <xs:complexType name="override-elementType">
- <xs:simpleContent>
- <xs:restriction base="javaee:string">
- <xs:enumeration value="connection-definition"/>
- <xs:enumeration value="resourceadapter"/>
- <xs:enumeration value="activationspec"/>
- <xs:enumeration value="adminobject"/>
- <xs:enumeration value="authentication-mechanism"/>
- </xs:restriction>
- </xs:simpleContent>
- </xs:complexType>
-</xs:schema>
\ No newline at end of file
Copied: projects/metadata/rar/tags/2.0.0.Alpha6/src/main/resources/schema/jboss-ra_2_0.xsd (from rev 101214, projects/metadata/rar/trunk/src/main/resources/schema/jboss-ra_2_0.xsd)
===================================================================
--- projects/metadata/rar/tags/2.0.0.Alpha6/src/main/resources/schema/jboss-ra_2_0.xsd (rev 0)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/main/resources/schema/jboss-ra_2_0.xsd 2010-02-22 03:11:07 UTC (rev 101217)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://www.jboss.org/schema/ra"
+ xmlns:ra="http://www.jboss.org/schema/ra" xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.0">
+
+
+ <xs:import namespace="http://java.sun.com/xml/ns/javaee" schemaLocation="http://java.sun.com/xml/ns/javaee/javaee_5.xsd"/>
+
+ <xs:element name="jboss-ra" type="ra:jbossRaType"/>
+
+ <xs:complexType name="jbossRaType">
+
+ <xs:sequence>
+ <xs:element name="ra-config-property" type="ra:ra-config-property-type" minOccurs="0" maxOccurs="unbounded"/>
+
+ <xs:element name="bean-validation-groups" type="ra:bean-validation-groups-type" minOccurs="0" maxOccurs="unbounded"/>
+
+ <xs:element name="bootstrap-context" type="xs:token" minOccurs="0" maxOccurs="1"/>
+ </xs:sequence>
+
+ </xs:complexType>
+
+ <xs:complexType name="ra-config-property-type">
+
+ <xs:sequence>
+ <xs:element name="ra-config-property-name" type="xs:string" minOccurs="1" maxOccurs="1"/>
+ <xs:element name="ra-config-property-type" type="ra:ra-config-property-typeType" minOccurs="1" maxOccurs="1"/>
+ <xs:element name="ra-config-property-value" type="xs:string" minOccurs="0" maxOccurs="1"/>
+ </xs:sequence>
+ <xs:attribute name="override-element" type="xs:string" default="resourceadapter"/>
+ </xs:complexType>
+
+ <xs:complexType name="bean-validation-groups-type">
+ <xs:sequence>
+ <xs:element name="bean-validation-group" nillable="true" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="ra-config-property-typeType">
+ <xs:simpleContent>
+ <xs:restriction base="javaee:string">
+ <xs:enumeration value="java.lang.Boolean"/>
+ <xs:enumeration value="java.lang.String"/>
+ <xs:enumeration value="java.lang.Integer"/>
+ <xs:enumeration value="java.lang.Double"/>
+ <xs:enumeration value="java.lang.Byte"/>
+ <xs:enumeration value="java.lang.Short"/>
+ <xs:enumeration value="java.lang.Long"/>
+ <xs:enumeration value="java.lang.Float"/>
+ <xs:enumeration value="java.lang.Character"/>
+ </xs:restriction>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:complexType name="override-elementType">
+ <xs:simpleContent>
+ <xs:restriction base="javaee:string">
+ <xs:enumeration value="connection-definition"/>
+ <xs:enumeration value="resourceadapter"/>
+ <xs:enumeration value="activationspec"/>
+ <xs:enumeration value="adminobject"/>
+ <xs:enumeration value="authentication-mechanism"/>
+ </xs:restriction>
+ </xs:simpleContent>
+ </xs:complexType>
+</xs:schema>
\ No newline at end of file
Deleted: projects/metadata/rar/tags/2.0.0.Alpha6/src/test/java/org/jboss/test/metadata/rar/JbossRA20DefaultNSUnitTestCase.java
===================================================================
--- projects/metadata/rar/trunk/src/test/java/org/jboss/test/metadata/rar/JbossRA20DefaultNSUnitTestCase.java 2010-02-22 01:18:51 UTC (rev 101213)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/test/java/org/jboss/test/metadata/rar/JbossRA20DefaultNSUnitTestCase.java 2010-02-22 03:11:07 UTC (rev 101217)
@@ -1,55 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.metadata.rar;
-
-import org.jboss.metadata.rar.jboss.JBossRA20DefaultNSMetaData;
-import org.jboss.test.metadata.common.MetaDataSchemaResolverFactory;
-import org.jboss.test.metadata.javaee.AbstractJavaEEMetaDataTest;
-
-import org.jboss.xb.binding.resolver.MutableSchemaResolver;
-import org.jboss.xb.binding.sunday.unmarshalling.SchemaBindingResolver;
-/**
- * JbossRA20DefaultNSUnitTestCase
- * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
- * @version $Revision: $
- */
-public class JbossRA20DefaultNSUnitTestCase extends AbstractJavaEEMetaDataTest
-{
- public static SchemaBindingResolver initResolver()
- {
- MutableSchemaResolver resolver = MetaDataSchemaResolverFactory.createSchemaResolver();
- resolver.mapLocationToClass("jboss-ra", JBossRA20DefaultNSMetaData.class);
- return resolver;
- }
-
- public JbossRA20DefaultNSUnitTestCase(String name)
- {
- super(name);
- }
-
- public void testBasic() throws Exception
- {
- JBossRA20DefaultNSMetaData jbossRA = unmarshal(JBossRA20DefaultNSMetaData.class);
- assertNotNull(jbossRA);
- }
-
-}
Copied: projects/metadata/rar/tags/2.0.0.Alpha6/src/test/java/org/jboss/test/metadata/rar/JbossRA20DefaultNSUnitTestCase.java (from rev 101214, projects/metadata/rar/trunk/src/test/java/org/jboss/test/metadata/rar/JbossRA20DefaultNSUnitTestCase.java)
===================================================================
--- projects/metadata/rar/tags/2.0.0.Alpha6/src/test/java/org/jboss/test/metadata/rar/JbossRA20DefaultNSUnitTestCase.java (rev 0)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/test/java/org/jboss/test/metadata/rar/JbossRA20DefaultNSUnitTestCase.java 2010-02-22 03:11:07 UTC (rev 101217)
@@ -0,0 +1,66 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.metadata.rar;
+
+import org.jboss.metadata.rar.jboss.JBossRA20DefaultNSMetaData;
+import org.jboss.test.metadata.common.MetaDataSchemaResolverFactory;
+import org.jboss.test.metadata.javaee.AbstractJavaEEMetaDataTest;
+
+import org.jboss.xb.binding.resolver.MutableSchemaResolver;
+import org.jboss.xb.binding.sunday.unmarshalling.SchemaBindingResolver;
+/**
+ * JbossRA20DefaultNSUnitTestCase
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
+ * @version $Revision: $
+ */
+public class JbossRA20DefaultNSUnitTestCase extends AbstractJavaEEMetaDataTest
+{
+ public static SchemaBindingResolver initResolver()
+ {
+ MutableSchemaResolver resolver = MetaDataSchemaResolverFactory.createSchemaResolver();
+ resolver.mapLocationToClass("jboss-ra", JBossRA20DefaultNSMetaData.class);
+ return resolver;
+ }
+
+ public JbossRA20DefaultNSUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ public void testBasic() throws Exception
+ {
+ JBossRA20DefaultNSMetaData jbossRA = unmarshal(JBossRA20DefaultNSMetaData.class);
+ assertNotNull(jbossRA);
+
+ assertEquals(jbossRA.getRaConfigProps().size(), 9);
+ assertEquals(jbossRA.getRaConfigProps().get(0).getValue(), "XMLOVERRIDE");
+ assertEquals(jbossRA.getRaConfigProps().get(8).getName(), "DoubleRAR");
+ assertEquals(jbossRA.getRaConfigProps().get(1).getOverride(), "connection-definition");
+
+ assertEquals(jbossRA.getBvGroupsList().size(), 1);
+ assertEquals(jbossRA.getBvGroupsList().get(0).getBvGroups().size(), 2);
+ assertEquals(jbossRA.getBvGroupsList().get(0).getBvGroups().get(0), "com.mycompany.myproject.bv.Group1");
+
+ assertEquals(jbossRA.getBootstrapContext(), "High");
+ }
+
+}
Deleted: projects/metadata/rar/tags/2.0.0.Alpha6/src/test/java/org/jboss/test/metadata/rar/JbossRA20UnitTestCase.java
===================================================================
--- projects/metadata/rar/trunk/src/test/java/org/jboss/test/metadata/rar/JbossRA20UnitTestCase.java 2010-02-22 01:18:51 UTC (rev 101213)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/test/java/org/jboss/test/metadata/rar/JbossRA20UnitTestCase.java 2010-02-22 03:11:07 UTC (rev 101217)
@@ -1,62 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.metadata.rar;
-
-import org.jboss.metadata.rar.jboss.JBossRA20MetaData;
-import org.jboss.test.metadata.common.MetaDataSchemaResolverFactory;
-import org.jboss.test.metadata.javaee.AbstractJavaEEMetaDataTest;
-import org.jboss.xb.binding.resolver.MutableSchemaResolver;
-import org.jboss.xb.binding.sunday.unmarshalling.SchemaBindingResolver;
-
-/**
- * JbossRA20UnitTestCase
- * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
- * @version $Revision: $
- */
-public class JbossRA20UnitTestCase extends AbstractJavaEEMetaDataTest
-{
- public static SchemaBindingResolver initResolver()
- {
- MutableSchemaResolver resolver = MetaDataSchemaResolverFactory.createSchemaResolver();
- resolver.mapLocationToClass("http://www.jboss.org/schema/jboss-ra_2_0.xsd", JBossRA20MetaData.class);
- return resolver;
- }
-
- public JbossRA20UnitTestCase(String name)
- {
- super(name);
- }
-
- public void testBasic() throws Exception
- {
- JBossRA20MetaData jbossRA = unmarshal(JBossRA20MetaData.class);
- assertNotNull(jbossRA);
- assertEquals(jbossRA.getRaConfigProps().size(), 9);
- assertEquals(jbossRA.getRaConfigProps().get(0).getValue(), "XMLOVERRIDE");
- assertEquals(jbossRA.getRaConfigProps().get(8).getName(), "DoubleRAR");
- assertEquals(jbossRA.getRaConfigProps().get(1).getOverride(), "connection-definition");
-
- assertEquals(jbossRA.getBvGroupsList().size(), 1);
- assertEquals(jbossRA.getBvGroupsList().get(0).getBvGroups().size(), 2);
- assertEquals(jbossRA.getBvGroupsList().get(0).getBvGroups().get(0), "com.mycompany.myproject.bv.Group1");
- }
-}
Copied: projects/metadata/rar/tags/2.0.0.Alpha6/src/test/java/org/jboss/test/metadata/rar/JbossRA20UnitTestCase.java (from rev 101214, projects/metadata/rar/trunk/src/test/java/org/jboss/test/metadata/rar/JbossRA20UnitTestCase.java)
===================================================================
--- projects/metadata/rar/tags/2.0.0.Alpha6/src/test/java/org/jboss/test/metadata/rar/JbossRA20UnitTestCase.java (rev 0)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/test/java/org/jboss/test/metadata/rar/JbossRA20UnitTestCase.java 2010-02-22 03:11:07 UTC (rev 101217)
@@ -0,0 +1,71 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.metadata.rar;
+
+import org.jboss.metadata.rar.jboss.JBossRA20MetaData;
+import org.jboss.test.metadata.common.MetaDataSchemaResolverFactory;
+import org.jboss.test.metadata.javaee.AbstractJavaEEMetaDataTest;
+import org.jboss.xb.binding.resolver.MutableSchemaResolver;
+import org.jboss.xb.binding.sunday.unmarshalling.SchemaBindingResolver;
+
+/**
+ * JbossRA20UnitTestCase
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
+ * @version $Revision: $
+ */
+public class JbossRA20UnitTestCase extends AbstractJavaEEMetaDataTest
+{
+ public static SchemaBindingResolver initResolver()
+ {
+ MutableSchemaResolver resolver = MetaDataSchemaResolverFactory.createSchemaResolver();
+ resolver.mapLocationToClass("http://www.jboss.org/schema/jboss-ra_2_0.xsd", JBossRA20MetaData.class);
+ return resolver;
+ }
+
+ public JbossRA20UnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ public void testBasic() throws Exception
+ {
+ JBossRA20MetaData jbossRA = unmarshal(JBossRA20MetaData.class);
+ assertNotNull(jbossRA);
+ assertEquals(jbossRA.getRaConfigProps().size(), 9);
+ assertEquals(jbossRA.getRaConfigProps().get(0).getValue(), "XMLOVERRIDE");
+ assertEquals(jbossRA.getRaConfigProps().get(8).getName(), "DoubleRAR");
+ assertEquals(jbossRA.getRaConfigProps().get(1).getOverride(), "connection-definition");
+
+ assertEquals(jbossRA.getBvGroupsList().size(), 1);
+ assertEquals(jbossRA.getBvGroupsList().get(0).getBvGroups().size(), 2);
+ assertEquals(jbossRA.getBvGroupsList().get(0).getBvGroups().get(0), "com.mycompany.myproject.bv.Group1");
+
+ assertEquals(jbossRA.getBootstrapContext(), "High");
+ }
+
+ public void testBootstrapContextShouldBeNull() throws Exception
+ {
+ JBossRA20MetaData jbossRA = unmarshal(JBossRA20MetaData.class);
+ assertNotNull(jbossRA);
+ assertEquals(jbossRA.getBootstrapContext(), null);
+ }
+}
Deleted: projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20DefaultNS_testBasic.xml
===================================================================
--- projects/metadata/rar/trunk/src/test/resources/org/jboss/test/metadata/rar/JbossRA20DefaultNS_testBasic.xml 2010-02-22 01:18:51 UTC (rev 101213)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20DefaultNS_testBasic.xml 2010-02-22 03:11:07 UTC (rev 101217)
@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<jboss-ra>
- <ra-config-property>
- <ra-config-property-name>StringRAR</ra-config-property-name>
- <ra-config-property-type>java.lang.String</ra-config-property-type>
- <ra-config-property-value>XMLOVERRIDE</ra-config-property-value>
- </ra-config-property>
-
- <ra-config-property override-element="connection-definition">
- <ra-config-property-name>
- BooleanRAR</ra-config-property-name>
-
- <ra-config-property-type>java.lang.Boolean</ra-config-property-type>
- <ra-config-property-value>False</ra-config-property-value>
- </ra-config-property>
- <ra-config-property override-element="resourceadapter">
- <ra-config-property-name>ByteRAR
- </ra-config-property-name>
- <ra-config-property-type>java.lang.Byte</ra-config-property-type>
- <ra-config-property-value>1</ra-config-property-value>
-
- </ra-config-property>
- <ra-config-property override-element="activationspec">
- <ra-config-property-name>
- CharacterRAR
- </ra-config-property-name>
- <ra-config-property-type>java.lang.Character</ra-config-property-type>
- <ra-config-property-value>A</ra-config-property-value>
- </ra-config-property>
- <ra-config-property override-element="adminobject">
-
- <ra-config-property-name>ShortRAR</ra-config-property-name>
- <ra-config-property-type>java.lang.Short</ra-config-property-type>
- <ra-config-property-value>2</ra-config-property-value>
- </ra-config-property>
- <ra-config-property override-element="authentication-mechanism">
- <ra-config-property-name>IntegerRAR</ra-config-property-name>
- <ra-config-property-type>java.lang.Integer</ra-config-property-type>
-
- <ra-config-property-value>3</ra-config-property-value>
- </ra-config-property>
- <ra-config-property>
- <ra-config-property-name>LongRAR</ra-config-property-name>
- <ra-config-property-type>java.lang.Long</ra-config-property-type>
- <ra-config-property-value>4</ra-config-property-value>
- </ra-config-property>
-
- <ra-config-property>
- <ra-config-property-name>FloatRAR</ra-config-property-name>
- <ra-config-property-type>java.lang.Float</ra-config-property-type>
- <ra-config-property-value>5e6</ra-config-property-value>
- </ra-config-property>
- <ra-config-property>
- <ra-config-property-name>DoubleRAR</ra-config-property-name>
-
- <ra-config-property-type>java.lang.Double</ra-config-property-type>
- <ra-config-property-value>7e8</ra-config-property-value>
- </ra-config-property>
-
- <bean-validation-groups>
- <bean-validation-group>com.mycompany.myproject.bv.Group1</bean-validation-group>
- <bean-validation-group>com.mycompany.myproject.bv.Group2</bean-validation-group>
- </bean-validation-groups>
-</jboss-ra>
\ No newline at end of file
Copied: projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20DefaultNS_testBasic.xml (from rev 101214, projects/metadata/rar/trunk/src/test/resources/org/jboss/test/metadata/rar/JbossRA20DefaultNS_testBasic.xml)
===================================================================
--- projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20DefaultNS_testBasic.xml (rev 0)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20DefaultNS_testBasic.xml 2010-02-22 03:11:07 UTC (rev 101217)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss-ra>
+ <ra-config-property>
+ <ra-config-property-name>StringRAR</ra-config-property-name>
+ <ra-config-property-type>java.lang.String</ra-config-property-type>
+ <ra-config-property-value>XMLOVERRIDE</ra-config-property-value>
+ </ra-config-property>
+
+ <ra-config-property override-element="connection-definition">
+ <ra-config-property-name>
+ BooleanRAR</ra-config-property-name>
+
+ <ra-config-property-type>java.lang.Boolean</ra-config-property-type>
+ <ra-config-property-value>False</ra-config-property-value>
+ </ra-config-property>
+ <ra-config-property override-element="resourceadapter">
+ <ra-config-property-name>ByteRAR
+ </ra-config-property-name>
+ <ra-config-property-type>java.lang.Byte</ra-config-property-type>
+ <ra-config-property-value>1</ra-config-property-value>
+
+ </ra-config-property>
+ <ra-config-property override-element="activationspec">
+ <ra-config-property-name>
+ CharacterRAR
+ </ra-config-property-name>
+ <ra-config-property-type>java.lang.Character</ra-config-property-type>
+ <ra-config-property-value>A</ra-config-property-value>
+ </ra-config-property>
+ <ra-config-property override-element="adminobject">
+
+ <ra-config-property-name>ShortRAR</ra-config-property-name>
+ <ra-config-property-type>java.lang.Short</ra-config-property-type>
+ <ra-config-property-value>2</ra-config-property-value>
+ </ra-config-property>
+ <ra-config-property override-element="authentication-mechanism">
+ <ra-config-property-name>IntegerRAR</ra-config-property-name>
+ <ra-config-property-type>java.lang.Integer</ra-config-property-type>
+
+ <ra-config-property-value>3</ra-config-property-value>
+ </ra-config-property>
+ <ra-config-property>
+ <ra-config-property-name>LongRAR</ra-config-property-name>
+ <ra-config-property-type>java.lang.Long</ra-config-property-type>
+ <ra-config-property-value>4</ra-config-property-value>
+ </ra-config-property>
+
+ <ra-config-property>
+ <ra-config-property-name>FloatRAR</ra-config-property-name>
+ <ra-config-property-type>java.lang.Float</ra-config-property-type>
+ <ra-config-property-value>5e6</ra-config-property-value>
+ </ra-config-property>
+ <ra-config-property>
+ <ra-config-property-name>DoubleRAR</ra-config-property-name>
+
+ <ra-config-property-type>java.lang.Double</ra-config-property-type>
+ <ra-config-property-value>7e8</ra-config-property-value>
+ </ra-config-property>
+
+ <bean-validation-groups>
+ <bean-validation-group>com.mycompany.myproject.bv.Group1</bean-validation-group>
+ <bean-validation-group>com.mycompany.myproject.bv.Group2</bean-validation-group>
+ </bean-validation-groups>
+
+ <bootstrap-context>High</bootstrap-context>
+</jboss-ra>
\ No newline at end of file
Deleted: projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20_testBasic.xml
===================================================================
--- projects/metadata/rar/trunk/src/test/resources/org/jboss/test/metadata/rar/JbossRA20_testBasic.xml 2010-02-22 01:18:51 UTC (rev 101213)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20_testBasic.xml 2010-02-22 03:11:07 UTC (rev 101217)
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<jboss-ra xmlns="http://www.jboss.org/schema/ra"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.jboss.org/schema/ra
- http://www.jboss.org/schema/jboss-ra_2_0.xsd">
- <ra-config-property>
- <ra-config-property-name>StringRAR</ra-config-property-name>
- <ra-config-property-type>java.lang.String</ra-config-property-type>
- <ra-config-property-value>XMLOVERRIDE</ra-config-property-value>
- </ra-config-property>
-
- <ra-config-property override-element="connection-definition">
- <ra-config-property-name>
- BooleanRAR</ra-config-property-name>
-
- <ra-config-property-type>java.lang.Boolean</ra-config-property-type>
- <ra-config-property-value>False</ra-config-property-value>
- </ra-config-property>
- <ra-config-property override-element="resourceadapter">
- <ra-config-property-name>ByteRAR
- </ra-config-property-name>
- <ra-config-property-type>java.lang.Byte</ra-config-property-type>
- <ra-config-property-value>1</ra-config-property-value>
-
- </ra-config-property>
- <ra-config-property override-element="activationspec">
- <ra-config-property-name>
- CharacterRAR
- </ra-config-property-name>
- <ra-config-property-type>java.lang.Character</ra-config-property-type>
- <ra-config-property-value>A</ra-config-property-value>
- </ra-config-property>
- <ra-config-property override-element="adminobject">
-
- <ra-config-property-name>ShortRAR</ra-config-property-name>
- <ra-config-property-type>java.lang.Short</ra-config-property-type>
- <ra-config-property-value>2</ra-config-property-value>
- </ra-config-property>
- <ra-config-property override-element="authentication-mechanism">
- <ra-config-property-name>IntegerRAR</ra-config-property-name>
- <ra-config-property-type>java.lang.Integer</ra-config-property-type>
-
- <ra-config-property-value>3</ra-config-property-value>
- </ra-config-property>
- <ra-config-property>
- <ra-config-property-name>LongRAR</ra-config-property-name>
- <ra-config-property-type>java.lang.Long</ra-config-property-type>
- <ra-config-property-value>4</ra-config-property-value>
- </ra-config-property>
-
- <ra-config-property>
- <ra-config-property-name>FloatRAR</ra-config-property-name>
- <ra-config-property-type>java.lang.Float</ra-config-property-type>
- <ra-config-property-value>5e6</ra-config-property-value>
- </ra-config-property>
- <ra-config-property>
- <ra-config-property-name>DoubleRAR</ra-config-property-name>
-
- <ra-config-property-type>java.lang.Double</ra-config-property-type>
- <ra-config-property-value>7e8</ra-config-property-value>
- </ra-config-property>
-
- <bean-validation-groups>
- <bean-validation-group>com.mycompany.myproject.bv.Group1</bean-validation-group>
- <bean-validation-group>com.mycompany.myproject.bv.Group2</bean-validation-group>
- </bean-validation-groups>
-</jboss-ra>
\ No newline at end of file
Copied: projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20_testBasic.xml (from rev 101214, projects/metadata/rar/trunk/src/test/resources/org/jboss/test/metadata/rar/JbossRA20_testBasic.xml)
===================================================================
--- projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20_testBasic.xml (rev 0)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20_testBasic.xml 2010-02-22 03:11:07 UTC (rev 101217)
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss-ra xmlns="http://www.jboss.org/schema/ra"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.org/schema/ra
+ http://www.jboss.org/schema/jboss-ra_2_0.xsd">
+ <ra-config-property>
+ <ra-config-property-name>StringRAR</ra-config-property-name>
+ <ra-config-property-type>java.lang.String</ra-config-property-type>
+ <ra-config-property-value>XMLOVERRIDE</ra-config-property-value>
+ </ra-config-property>
+
+ <ra-config-property override-element="connection-definition">
+ <ra-config-property-name>
+ BooleanRAR</ra-config-property-name>
+
+ <ra-config-property-type>java.lang.Boolean</ra-config-property-type>
+ <ra-config-property-value>False</ra-config-property-value>
+ </ra-config-property>
+ <ra-config-property override-element="resourceadapter">
+ <ra-config-property-name>ByteRAR
+ </ra-config-property-name>
+ <ra-config-property-type>java.lang.Byte</ra-config-property-type>
+ <ra-config-property-value>1</ra-config-property-value>
+
+ </ra-config-property>
+ <ra-config-property override-element="activationspec">
+ <ra-config-property-name>
+ CharacterRAR
+ </ra-config-property-name>
+ <ra-config-property-type>java.lang.Character</ra-config-property-type>
+ <ra-config-property-value>A</ra-config-property-value>
+ </ra-config-property>
+ <ra-config-property override-element="adminobject">
+
+ <ra-config-property-name>ShortRAR</ra-config-property-name>
+ <ra-config-property-type>java.lang.Short</ra-config-property-type>
+ <ra-config-property-value>2</ra-config-property-value>
+ </ra-config-property>
+ <ra-config-property override-element="authentication-mechanism">
+ <ra-config-property-name>IntegerRAR</ra-config-property-name>
+ <ra-config-property-type>java.lang.Integer</ra-config-property-type>
+
+ <ra-config-property-value>3</ra-config-property-value>
+ </ra-config-property>
+ <ra-config-property>
+ <ra-config-property-name>LongRAR</ra-config-property-name>
+ <ra-config-property-type>java.lang.Long</ra-config-property-type>
+ <ra-config-property-value>4</ra-config-property-value>
+ </ra-config-property>
+
+ <ra-config-property>
+ <ra-config-property-name>FloatRAR</ra-config-property-name>
+ <ra-config-property-type>java.lang.Float</ra-config-property-type>
+ <ra-config-property-value>5e6</ra-config-property-value>
+ </ra-config-property>
+ <ra-config-property>
+ <ra-config-property-name>DoubleRAR</ra-config-property-name>
+
+ <ra-config-property-type>java.lang.Double</ra-config-property-type>
+ <ra-config-property-value>7e8</ra-config-property-value>
+ </ra-config-property>
+
+ <bean-validation-groups>
+ <bean-validation-group>com.mycompany.myproject.bv.Group1</bean-validation-group>
+ <bean-validation-group>com.mycompany.myproject.bv.Group2</bean-validation-group>
+ </bean-validation-groups>
+
+ <bootstrap-context>High</bootstrap-context>
+</jboss-ra>
\ No newline at end of file
Copied: projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20_testBootstrapContextShouldBeNull.xml (from rev 101214, projects/metadata/rar/trunk/src/test/resources/org/jboss/test/metadata/rar/JbossRA20_testBootstrapContextShouldBeNull.xml)
===================================================================
--- projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20_testBootstrapContextShouldBeNull.xml (rev 0)
+++ projects/metadata/rar/tags/2.0.0.Alpha6/src/test/resources/org/jboss/test/metadata/rar/JbossRA20_testBootstrapContextShouldBeNull.xml 2010-02-22 03:11:07 UTC (rev 101217)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss-ra xmlns="http://www.jboss.org/schema/ra"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.org/schema/ra
+ http://www.jboss.org/schema/jboss-ra_2_0.xsd">
+ <ra-config-property>
+ <ra-config-property-name>DoubleRAR</ra-config-property-name>
+
+ <ra-config-property-type>java.lang.Double</ra-config-property-type>
+ <ra-config-property-value>7e8</ra-config-property-value>
+ </ra-config-property>
+
+ <bean-validation-groups>
+ <bean-validation-group>com.mycompany.myproject.bv.Group1</bean-validation-group>
+ <bean-validation-group>com.mycompany.myproject.bv.Group2</bean-validation-group>
+ </bean-validation-groups>
+
+ <!-- here no bootstrap-context element -->
+</jboss-ra>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list