Author: pete.muir(a)jboss.org
Date: 2008-09-11 08:46:52 -0400 (Thu, 11 Sep 2008)
New Revision: 105
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/EnterpriseComponentLifecycleTest.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerExpressionComponentLifecycleTest.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerMethodComponentLifecycleTest.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/RemoteComponentLifecycleTest.java
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ComponentDeploymentTest.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/DeploymentStrategyTest.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerExpressionComponentModelTest.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerMethodComponentModelTest.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/RemoteComponentModelTest.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleComponentLifecycleTest.java
ri/trunk/webbeans-ri/testng.xml
Log:
Add placeholders for Chapter 3 (section 1 - section 4)
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ComponentDeploymentTest.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ComponentDeploymentTest.java 2008-09-11
11:24:52 UTC (rev 104)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ComponentDeploymentTest.java 2008-09-11
12:46:52 UTC (rev 105)
@@ -34,6 +34,74 @@
assert false;
}
+ @Test(groups="specialization") @SpecAssertion(section="3.2.4")
+ public void testOnlySpecializedEnterpriseComponentDeployed()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+ @Test(groups="specialization") @SpecAssertion(section="3.2.4")
+ public void testSpecializedEnterpriseComponentExtends()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+ @Test(groups="specialization") @SpecAssertion(section="3.2.4")
+ public void testSpecializedEnterpriseComponentHasSameBindingAnnotations()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="specialization") @SpecAssertion(section="3.2.4")
+ public void testSpecializedEnterpriseComponentHasSameName()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="specialization") @SpecAssertion(section="3.2.4")
+ public void testSpecializedEnterpriseComponentAllLocalInterfaces()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="specialization") @SpecAssertion(section="3.2.4")
+ public void testSpecializedEnterpriseComponentSupportsBeanClassLocalView()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="specialization") @SpecAssertion(section="3.3.3")
+ public void testOnlySpecializedProducerMethodComponentDeployed()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="specialization") @SpecAssertion(section="3.3.3")
+ public void testSpecializedProducerMethodComponentDirectlyOverrides()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="specialization") @SpecAssertion(section="3.3.3")
+ public void testSpecializedProducerMethodComponentHasSameBindingAnnotations()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="specialization") @SpecAssertion(section="3.3.3")
+ public void testSpecializedProducerMethodComponentHasSameName()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
}
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/DeploymentStrategyTest.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/DeploymentStrategyTest.java 2008-09-11
11:24:52 UTC (rev 104)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/DeploymentStrategyTest.java 2008-09-11
12:46:52 UTC (rev 105)
@@ -10,7 +10,7 @@
public class DeploymentStrategyTest
{
- @Test
+ @Test(groups="deployment")
public void testDeploymentStrategy()
{
URL[] urls = {ClasspathUrlFinder.findClassBase(DeploymentStrategyTest.class)};
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/EnterpriseComponentLifecycleTest.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/EnterpriseComponentLifecycleTest.java
(rev 0)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/EnterpriseComponentLifecycleTest.java 2008-09-11
12:46:52 UTC (rev 105)
@@ -0,0 +1,22 @@
+package org.jboss.webbeans.test;
+
+import org.testng.annotations.Test;
+
+public class EnterpriseComponentLifecycleTest
+{
+
+ @Test(groups="componentLifecycle")
@SpecAssertion(section="3.2.3")
+ public void testInjectonOfParametersIntoRemoveMethod()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="specialization") @SpecAssertion(section="3.2.4")
+ public void testSpecializedComponentAlwaysUsed()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+}
Property changes on:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/EnterpriseComponentLifecycleTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerExpressionComponentLifecycleTest.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerExpressionComponentLifecycleTest.java
(rev 0)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerExpressionComponentLifecycleTest.java 2008-09-11
12:46:52 UTC (rev 105)
@@ -0,0 +1,29 @@
+package org.jboss.webbeans.test;
+
+import org.testng.annotations.Test;
+
+public class ProducerExpressionComponentLifecycleTest
+{
+
+ @Test(groups={"componentLifecycle", "producerExpression"})
@SpecAssertion(section="3.4")
+ public void testNonDependentProducerExpressionThatReturnsNull()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups={"componentLifecycle", "producerExpression"})
@SpecAssertion(section="3.4")
+ public void testDependentProducerExpressionThatReturnsNull()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups={"componentLifecycle", "producerExpression"})
@SpecAssertion(section="3.4")
+ public void testProducerExpressionHasValidRuntimeApiType()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+}
Property changes on:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerExpressionComponentLifecycleTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerExpressionComponentModelTest.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerExpressionComponentModelTest.java 2008-09-11
11:24:52 UTC (rev 104)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerExpressionComponentModelTest.java 2008-09-11
12:46:52 UTC (rev 105)
@@ -23,10 +23,29 @@
container = new MockContainerImpl(null);
}
- @Test
+ @Test(groups="producerExpression") @SpecAssertion(section="3.4")
public void testApiTypes()
{
-
+ assert false;
}
+ @Test(groups="producerExpression") @SpecAssertion(section="3.4")
+ public void testFinalProducerExpression()
+ {
+ assert false;
+ }
+
+ @Test(groups="producerExpression") @SpecAssertion(section="3.4")
+ public void testFinalDependentProducerExpression()
+ {
+ assert false;
+ }
+
+ @Test(groups="producerExpression")
@SpecAssertion(section="3.4.2")
+ public void testProducerExpressionCannotHaveDefaultName()
+ {
+ assert false;
+ }
+
+
}
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerMethodComponentLifecycleTest.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerMethodComponentLifecycleTest.java
(rev 0)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerMethodComponentLifecycleTest.java 2008-09-11
12:46:52 UTC (rev 105)
@@ -0,0 +1,43 @@
+package org.jboss.webbeans.test;
+
+import org.testng.annotations.Test;
+
+public class ProducerMethodComponentLifecycleTest
+{
+
+ @Test(groups="componentLifecycle") @SpecAssertion(section="3.3")
+ public void testNonDependentProducerMethodThatReturnsNull()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="componentLifecycle") @SpecAssertion(section="3.3")
+ public void testDependentProducerMethodThatReturnsNull()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="specialization") @SpecAssertion(section="3.3.3")
+ public void testSpecializedComponentAlwaysUsed()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups={"disposalMethod", "componentLifecycle"})
@SpecAssertion(section="3.3.4")
+ public void testDisposalMethodCalled()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups={"disposalMethod", "componentLifecycle"})
@SpecAssertion(section="3.3.4")
+ public void testDisposalMethodHasParametersInjected()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+}
Property changes on:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerMethodComponentLifecycleTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerMethodComponentModelTest.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerMethodComponentModelTest.java 2008-09-11
11:24:52 UTC (rev 104)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ProducerMethodComponentModelTest.java 2008-09-11
12:46:52 UTC (rev 105)
@@ -156,4 +156,64 @@
assert ladybirdSpiderModel.getName().equals("ladybirdSpider");
}
+ @Test(groups="disposalMethod") @SpecAssertion(section="3.3.4")
+ public void testDisposalMethodNonStatic()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="disposalMethod") @SpecAssertion(section="3.3.4")
+ public void testDisposalMethodMethodDeclaredOnWebBeanImplementationClass()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="disposalMethod") @SpecAssertion(section="3.3.4")
+ public void testDisposalMethodBindingAnnotations()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="disposalMethod") @SpecAssertion(section="3.3.4")
+ public void testDisposalMethodDefaultBindingAnnotations()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="disposalMethod") @SpecAssertion(section="3.3.4")
+ public void testDisposalMethodDoesNotResolveToProducerMethod()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="disposalMethod") @SpecAssertion(section="3.3.5")
+ public void testDisposalMethodDeclaredOnEnabledComponent()
+ {
+ // TODO Placeholder
+ // TODO Move this
+
+ assert false;
+ }
+
+ @Test(groups="disposalMethod") @SpecAssertion(section="3.3.4")
+ public void testComponentCanDeclareMultipleDisposalMethods()
+ {
+ // TODO move this
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="disposalMethod") @SpecAssertion(section="3.3.5")
+ public void testProducerMethodHasNoMoreThanOneDisposalMethod()
+ {
+ // TODO move this
+ // TODO Placeholder
+ assert false;
+ }
+
}
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/RemoteComponentLifecycleTest.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/RemoteComponentLifecycleTest.java
(rev 0)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/RemoteComponentLifecycleTest.java 2008-09-11
12:46:52 UTC (rev 105)
@@ -0,0 +1,22 @@
+package org.jboss.webbeans.test;
+
+import org.testng.annotations.Test;
+
+public class RemoteComponentLifecycleTest
+{
+
+ @Test(groups="componentLifecycle")
@SpecAssertion(section="3.2.3")
+ public void testInjectonOfParametersIntoRemoveMethod()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+ @Test(groups="specialization") @SpecAssertion(section="3.2.3")
+ public void testSpecializedComponentAlwaysUsed()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
+}
Property changes on:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/RemoteComponentLifecycleTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/RemoteComponentModelTest.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/RemoteComponentModelTest.java 2008-09-11
11:24:52 UTC (rev 104)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/RemoteComponentModelTest.java 2008-09-11
12:46:52 UTC (rev 105)
@@ -61,4 +61,10 @@
assert
tameApeModel.getBindingTypes().iterator().next().annotationType().equals(Tame.class);
}
+ @Test(groups="remoteComponentInXml")
@SpecAssertion(section="3.5.2")
+ public void testRemoteComponentDeclaredInXml()
+ {
+ assert false;
+ }
+
}
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleComponentLifecycleTest.java
===================================================================
---
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleComponentLifecycleTest.java 2008-09-11
11:24:52 UTC (rev 104)
+++
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/SimpleComponentLifecycleTest.java 2008-09-11
12:46:52 UTC (rev 105)
@@ -11,5 +11,12 @@
// TODO Placeholder
assert false;
}
-
+
+ @Test(groups="specialization") @SpecAssertion(section="3.1.4")
+ public void testSpecializedComponentAlwaysUsed()
+ {
+ // TODO Placeholder
+ assert false;
+ }
+
}
Modified: ri/trunk/webbeans-ri/testng.xml
===================================================================
--- ri/trunk/webbeans-ri/testng.xml 2008-09-11 11:24:52 UTC (rev 104)
+++ ri/trunk/webbeans-ri/testng.xml 2008-09-11 12:46:52 UTC (rev 105)
@@ -14,6 +14,7 @@
<run>
<exclude name="specialization" />
<exclude name="componentLifecycle" />
+ <exclude name="deployment" />
</run>
</groups>
<classes>
@@ -23,6 +24,13 @@
</test>
<test name="Component Model">
+ <groups>
+ <run>
+ <exclude name="disposalMethod" />
+ <exclude name="producerExpression" />
+ <exclude name="remoteComponentInXml" />
+ </run>
+ </groups>
<classes>
<class name="org.jboss.webbeans.test.SimpleComponentModelTest"
/>
<class name="org.jboss.webbeans.test.EnterpriseComponentModelTest"
/>
@@ -37,10 +45,15 @@
<groups>
<run>
<exclude name="componentLifecycle" />
+ <exclude name="specialization" />
+ <exclude name="disposalMethod" />
</run>
</groups>
<classes>
<class name="org.jboss.webbeans.test.SimpleComponentLifecycleTest"
/>
+ <class
name="org.jboss.webbeans.test.EnterpriseComponentLifecycleTest" />
+ <class
name="org.jboss.webbeans.test.ProducerMethodComponentLifecycleTest" />
+ <class
name="org.jboss.webbeans.test.ProducerExpressionComponentLifecycleTest" />
</classes>
</test>
Show replies by date