Author: dallen6
Date: 2009-03-16 14:30:10 -0400 (Mon, 16 Mar 2009)
New Revision: 2048
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/DogLocal.java
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/EnterpriseBeanDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/GiraffeLocal.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/Pitbull.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/PitbullLocal.java
Log:
A few more EJB tests.
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/DogLocal.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/DogLocal.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/DogLocal.java 2009-03-16
18:30:10 UTC (rev 2048)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.tests.implementation.enterprise.definition;
+
+import javax.ejb.Local;
+
+@Local
+public interface DogLocal
+{
+
+}
Property changes on:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/DogLocal.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/EnterpriseBeanDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/EnterpriseBeanDefinitionTest.java 2009-03-16
17:57:18 UTC (rev 2047)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/EnterpriseBeanDefinitionTest.java 2009-03-16
18:30:10 UTC (rev 2048)
@@ -1,5 +1,7 @@
package org.jboss.jsr299.tck.tests.implementation.enterprise.definition;
+import javax.inject.manager.Bean;
+
import org.hibernate.tck.annotations.SpecAssertion;
import org.hibernate.tck.annotations.SpecAssertions;
import org.jboss.jsr299.tck.AbstractJSR299Test;
@@ -45,12 +47,11 @@
assert false;
}
- @Test(groups = { "enterpriseBeans", "stub" })
+ @Test(groups = { "enterpriseBeans" })
@SpecAssertion(section = "3.3.2", id = "a")
public void testAnnotatedEnterpriseBean()
{
- // TODO: dupe?
- assert false;
+ assert getCurrentManager().resolveByType(GiraffeLocal.class).size() > 0;
}
@Test(groups = { "enterpriseBeans", "webbeansxml",
"stub" })
@@ -77,11 +78,13 @@
assert false;
}
- @Test(groups = { "enterpriseBeans", "stub" })
+ @Test(groups = { "enterpriseBeans" })
@SpecAssertion(section = "3.3.3", id = "a")
public void
testBeanTypesAreLocalInterfacesWithoutWildcardTypesOrTypeVariablesWithSuperInterfaces()
{
- assert false;
+ Bean<DogLocal> dogBean =
getCurrentManager().resolveByType(DogLocal.class).iterator().next();
+ assert dogBean.getTypes().contains(DogLocal.class);
+ assert dogBean.getTypes().contains(PitbullLocal.class);
}
@Test(groups = { "enterpriseBeans", "stub" })
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/GiraffeLocal.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/GiraffeLocal.java 2009-03-16
17:57:18 UTC (rev 2047)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/GiraffeLocal.java 2009-03-16
18:30:10 UTC (rev 2048)
@@ -1,5 +1,8 @@
package org.jboss.jsr299.tck.tests.implementation.enterprise.definition;
+import javax.ejb.Local;
+
+@Local
public interface GiraffeLocal
{
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/Pitbull.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/Pitbull.java 2009-03-16
17:57:18 UTC (rev 2047)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/Pitbull.java 2009-03-16
18:30:10 UTC (rev 2048)
@@ -8,7 +8,7 @@
@Stateful
@ApplicationScoped
@Named
-class Pitbull implements PitbullLocal
+class Pitbull implements PitbullLocal, DogLocal
{
public static boolean destructorCalled = false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/PitbullLocal.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/PitbullLocal.java 2009-03-16
17:57:18 UTC (rev 2047)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/PitbullLocal.java 2009-03-16
18:30:10 UTC (rev 2048)
@@ -1,5 +1,8 @@
package org.jboss.jsr299.tck.tests.implementation.enterprise.definition;
+import javax.ejb.Local;
+
+@Local
public interface PitbullLocal
{
Show replies by date