[seam-commits] Seam SVN: r12426 - in modules/xml/trunk/impl/src/test: java/org/jboss/seam/xml/test/xmlconfigured and 2 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Apr 9 19:06:00 EDT 2010


Author: swd847
Date: 2010-04-09 19:06:00 -0400 (Fri, 09 Apr 2010)
New Revision: 12426

Added:
   modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/xmlconfigured/
   modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/xmlconfigured/XmlConfiguredBean.java
   modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/xmlconfigured/XmlConfiguredNotInstalledBean.java
   modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/xmlconfigured/XmlConfiguredTest.java
   modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/xmlconfigured/
   modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/xmlconfigured/xmlconfigured-beans.xml
Log:
@XmlConfigured tests



Added: modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/xmlconfigured/XmlConfiguredBean.java
===================================================================
--- modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/xmlconfigured/XmlConfiguredBean.java	                        (rev 0)
+++ modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/xmlconfigured/XmlConfiguredBean.java	2010-04-09 23:06:00 UTC (rev 12426)
@@ -0,0 +1,8 @@
+package org.jboss.seam.xml.test.xmlconfigured;
+
+import org.jboss.seam.xml.annotations.XmlConfigured;
+
+ at XmlConfigured
+public class XmlConfiguredBean {
+
+}

Added: modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/xmlconfigured/XmlConfiguredNotInstalledBean.java
===================================================================
--- modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/xmlconfigured/XmlConfiguredNotInstalledBean.java	                        (rev 0)
+++ modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/xmlconfigured/XmlConfiguredNotInstalledBean.java	2010-04-09 23:06:00 UTC (rev 12426)
@@ -0,0 +1,8 @@
+package org.jboss.seam.xml.test.xmlconfigured;
+
+import org.jboss.seam.xml.annotations.XmlConfigured;
+
+ at XmlConfigured
+public class XmlConfiguredNotInstalledBean {
+
+}

Added: modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/xmlconfigured/XmlConfiguredTest.java
===================================================================
--- modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/xmlconfigured/XmlConfiguredTest.java	                        (rev 0)
+++ modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/xmlconfigured/XmlConfiguredTest.java	2010-04-09 23:06:00 UTC (rev 12426)
@@ -0,0 +1,34 @@
+package org.jboss.seam.xml.test.xmlconfigured;
+
+import java.util.Set;
+
+import javax.enterprise.inject.spi.Bean;
+
+import org.jboss.seam.xml.test.AbstractXMLTest;
+import org.testng.annotations.Test;
+
+public class XmlConfiguredTest extends AbstractXMLTest
+{
+
+	   @Override
+	   protected String getXmlFileName()
+	   {
+	      return "xmlconfigured-beans.xml";
+	   }
+
+	   @Test
+	   public void testXmlConfiguredBeanNotInstalled()
+	   {
+
+	      Set<Bean<?>> beans = manager.getBeans(XmlConfiguredNotInstalledBean.class);
+	      assert beans.isEmpty();
+	   }
+	   
+	   @Test(enabled = true)
+	   public void testXmlConfiguredBean()
+	   {
+
+	      Set<Bean<?>> beans = manager.getBeans(XmlConfiguredBean.class);
+	      assert beans.size() == 1;
+	   }
+}

Added: modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/xmlconfigured/xmlconfigured-beans.xml
===================================================================
--- modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/xmlconfigured/xmlconfigured-beans.xml	                        (rev 0)
+++ modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/xmlconfigured/xmlconfigured-beans.xml	2010-04-09 23:06:00 UTC (rev 12426)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="urn:java:seam:core"
+          xmlns:test="urn:java:org.jboss.seam.xml.test.xmlconfigured">
+
+	<test:XmlConfiguredBean>
+
+	</test:XmlConfiguredBean>
+ 
+</beans>
\ No newline at end of file



More information about the seam-commits mailing list