Author: pete.muir(a)jboss.org
Date: 2009-07-25 14:48:31 -0400 (Sat, 25 Jul 2009)
New Revision: 3226
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/Retriever.java
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/EnterpriseBeanDefinitionTest.java
Log:
Fix this no-interface view test to actually use a no-interface EJB
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-07-25
18:42:46 UTC (rev 3225)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/EnterpriseBeanDefinitionTest.java 2009-07-25
18:48:31 UTC (rev 3226)
@@ -61,18 +61,13 @@
assert !dogBean.getTypes().contains(Pitbull.class);
}
- /**
- * If the EJB has a bean class local view and the bean class is not a
- * parameterized type, the set of bean types contains the bean class and all
- * superclasses.
- */
@Test(groups = { "ejb 3.1", "ri-broken" })
@SpecAssertion(section = "3.2.2", id = "ba")
- public void
testEnterpriseBeanWithLocalViewAndNotParameterizedTypeHasClassAndSuperclassesAsBeanTypes()
+ public void testEnterpriseBeanClassLocalView()
{
//TODO We need a 3.1 compliant container for this test
- Bean<DogLocal> dogBean = getBeans(DogLocal.class).iterator().next();
- assert dogBean.getTypes().contains(Pitbull.class);
+ Bean<Retriever> dogBean = getBeans(Retriever.class).iterator().next();
+ assert dogBean.getTypes().contains(Retriever.class);
}
@Test(groups = "enterpriseBeans")
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/Retriever.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/Retriever.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/Retriever.java 2009-07-25
18:48:31 UTC (rev 3226)
@@ -0,0 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.jboss.jsr299.tck.tests.implementation.enterprise.definition;
+
+import javax.ejb.LocalBean;
+
+import com.sun.xml.internal.ws.developer.Stateful;
+
+/**
+ * @author pmuir
+ *
+ */
+@Stateful
+@LocalBean
+public class Retriever
+{
+
+}
Property changes on:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/Retriever.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain