[webbeans-commits] Webbeans SVN: r3289 - in ri/trunk/impl/src/main/java/org/jboss/webbeans: event and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: dallen6
Date: 2009-07-27 15:59:32 -0400 (Mon, 27 Jul 2009)
New Revision: 3289
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/BeanManagerImpl.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/event/ObserverMethodImpl.java
Log:
Fixed WBRI-313, and removed older checks in fireEvent() method
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/BeanManagerImpl.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/BeanManagerImpl.java 2009-07-27 19:44:22 UTC (rev 3288)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/BeanManagerImpl.java 2009-07-27 19:59:32 UTC (rev 3289)
@@ -791,27 +791,6 @@
*/
public void fireEvent(Object event, Annotation... bindings)
{
- // Make sure the event object above is not parameterized with a type
- // variable
- if (Reflections.isParameterizedType(event.getClass()))
- {
- for (Type type : Reflections.getActualTypeArguments(event.getClass()))
- {
- if (type instanceof TypeVariable<?>)
- {
- throw new IllegalArgumentException("Cannot use a type variable " + type + " in an parameterized type " + toString());
- }
- }
- }
- // Also check that the binding types are truly binding types
- for (Annotation binding : bindings)
- {
- if (!Reflections.isBindings(binding))
- {
- throw new IllegalArgumentException("Event type " + event.getClass().getName() + " cannot be fired with non-binding type " + binding.getClass().getName() + " specified");
- }
- }
-
notifyObservers(event, resolveObserverMethods(event, bindings));
}
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/event/ObserverMethodImpl.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/event/ObserverMethodImpl.java 2009-07-27 19:44:22 UTC (rev 3288)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/event/ObserverMethodImpl.java 2009-07-27 19:59:32 UTC (rev 3289)
@@ -84,7 +84,6 @@
this.eventType = observerMethod.getAnnotatedParameters(Observes.class).get(0).getBaseType();
this.bindings = new HashSet<Annotation>(Arrays.asList(observerMethod.getAnnotatedParameters(Observes.class).get(0).getBindingsAsArray()));
- this.bindings.add(new AnyLiteral()); // Always add the Any annotation in case it is not there yet
Observes observesAnnotation = observerMethod.getAnnotatedParameters(Observes.class).get(0).getAnnotation(Observes.class);
this.notifyType = observesAnnotation.notifyObserver();
transactionPhase = TransactionPhase.IN_PROGRESS;
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3288 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer: dependentIsConditionalObserver and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-07-27 15:44:22 -0400 (Mon, 27 Jul 2009)
New Revision: 3288
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/dependentIsConditionalObserver/
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/dependentIsConditionalObserver/AlarmSystem.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/dependentIsConditionalObserver/BreakIn.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/dependentIsConditionalObserver/DependentIsConditionalObserverTest.java
Log:
dependent is conditional observer test
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/dependentIsConditionalObserver/AlarmSystem.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/dependentIsConditionalObserver/AlarmSystem.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/dependentIsConditionalObserver/AlarmSystem.java 2009-07-27 19:44:22 UTC (rev 3288)
@@ -0,0 +1,12 @@
+package org.jboss.jsr299.tck.tests.event.broken.observer.dependentIsConditionalObserver;
+
+import javax.enterprise.event.Notify;
+import javax.enterprise.event.Observes;
+
+class AlarmSystem
+{
+ public void onBreakInAttempt(@Observes(notifyObserver = Notify.IF_EXISTS) BreakIn breakIn)
+ {
+ assert false;
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/dependentIsConditionalObserver/BreakIn.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/dependentIsConditionalObserver/BreakIn.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/dependentIsConditionalObserver/BreakIn.java 2009-07-27 19:44:22 UTC (rev 3288)
@@ -0,0 +1,6 @@
+package org.jboss.jsr299.tck.tests.event.broken.observer.dependentIsConditionalObserver;
+
+class BreakIn
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/dependentIsConditionalObserver/DependentIsConditionalObserverTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/dependentIsConditionalObserver/DependentIsConditionalObserverTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/dependentIsConditionalObserver/DependentIsConditionalObserverTest.java 2009-07-27 19:44:22 UTC (rev 3288)
@@ -0,0 +1,23 @@
+package org.jboss.jsr299.tck.tests.event.broken.observer.dependentIsConditionalObserver;
+
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.DefinitionError;
+import org.jboss.test.audit.annotations.SpecAssertion;
+import org.jboss.test.audit.annotations.SpecVersion;
+import org.jboss.testharness.impl.packaging.Artifact;
+import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
+import org.testng.annotations.Test;
+
+@Artifact
+(a)ExpectedDeploymentException(DefinitionError.class)
+@SpecVersion("20090625")
+public class DependentIsConditionalObserverTest extends AbstractJSR299Test
+{
+ // WBRI-315
+ @Test(groups = { "events", "ri-broken" })
+ @SpecAssertion(section = "10.4.4", id = "b")
+ public void testDependentBeanWithConditionalObserverMethodIsDefinitionError()
+ {
+ assert false;
+ }
+}
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3287 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event: fires and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-07-27 15:29:57 -0400 (Mon, 27 Jul 2009)
New Revision: 3287
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/DoggiePoints.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/Praise.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/TamingCommand.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/DogWhisperer.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/DoggiePoints.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Praise.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Role.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Tame.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/TamingCommand.java
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/DogWhisperer.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/LargeDog.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/MagicString.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/MultiBindingEvent.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/ShowDog.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/SmallDog.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/Spitz.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/SweeWaxbill.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/TransactionalObservers.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/FireEventTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Housekeeping.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/MiniBar.java
Log:
migrate fire-related event tests from EventTest to FireEventTest
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/DogWhisperer.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/DogWhisperer.java 2009-07-27 18:46:26 UTC (rev 3286)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/DogWhisperer.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -5,10 +5,17 @@
class DogWhisperer
{
- private @Any Event<MultiBindingEvent> event;
+ @Any @Tame @Role("Admin") Event<TamingCommand> tamingEvent;
+ @Any Event<Praise> praiseEvent;
+
public void issueTamingCommand()
{
- event.select(new TameAnnotationLiteral(), new RoleBinding("Admin")).fire(new MultiBindingEvent());
+ tamingEvent.fire(new TamingCommand());
}
+
+ public void givePraise()
+ {
+ praiseEvent.fire(new Praise());
+ }
}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/DoggiePoints.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/DoggiePoints.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/DoggiePoints.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -0,0 +1,38 @@
+package org.jboss.jsr299.tck.tests.event;
+
+import javax.enterprise.context.RequestScoped;
+import javax.enterprise.event.Observes;
+import javax.enterprise.inject.Any;
+
+@RequestScoped class DoggiePoints
+{
+ private int numPraiseReceived;
+
+ private int numTamed;
+
+ public void praiseReceived(@Observes @Any Praise praise)
+ {
+ numPraiseReceived++;
+ }
+
+ public void tamed(@Observes @Tame @Role("Admin") TamingCommand tamed)
+ {
+ numTamed++;
+ }
+
+ public int getNumPraiseReceived()
+ {
+ return numPraiseReceived;
+ }
+
+ public int getNumTamed()
+ {
+ return numTamed;
+ }
+
+ public void reset()
+ {
+ numPraiseReceived = 0;
+ numTamed = 0;
+ }
+}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java 2009-07-27 18:46:26 UTC (rev 3286)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -6,16 +6,14 @@
import javax.enterprise.event.Notify;
import javax.enterprise.event.TransactionPhase;
-import javax.enterprise.inject.AnnotationLiteral;
-import javax.enterprise.inject.spi.BeanManager;
import javax.enterprise.inject.spi.ObserverMethod;
-import org.jboss.test.audit.annotations.SpecAssertion;
-import org.jboss.test.audit.annotations.SpecAssertions;
-import org.jboss.test.audit.annotations.SpecVersion;
import org.jboss.jsr299.tck.AbstractJSR299Test;
import org.jboss.jsr299.tck.literals.AnyLiteral;
import org.jboss.jsr299.tck.literals.CurrentLiteral;
+import org.jboss.test.audit.annotations.SpecAssertion;
+import org.jboss.test.audit.annotations.SpecAssertions;
+import org.jboss.test.audit.annotations.SpecVersion;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.jsr299.BeansXml;
import org.testng.annotations.Test;
@@ -31,123 +29,12 @@
@SpecVersion("20090625")
public class EventTest extends AbstractJSR299Test
{
- private static final String FIRE_EVENT_METHOD_NAME = "fireEvent";
private static final String RESOLVE_OBSERVERS_METHOD_NAME = "resolveObserverMethods";
-
- public static class AnEventType
- {
- }
- public static class ATemplatedEventType<T>
- {
- }
+ // --------- Below this line are tests that need to be evaluated to determine if they need to be moved
- /**
- * An event binding type is a Java annotation defined as @Target({FIELD,
- * PARAMETER}) ~or @Target({METHOD, FIELD, PARAMETER, TYPE}) and
- * @Retention(RUNTIME)~. All event binding types must specify the
- * @BindingType meta-annotation.
- */
@Test(groups = { "events" })
- @SpecAssertion(section = "10.1", id = "d")
- public void testEventBindingTypeTargetMostAndRuntime()
- {
- getCurrentManager().fireEvent("string event", new TameAnnotationLiteral());
- }
-
- /**
- * An event binding type is a Java annotation defined as ~@Target({FIELD,
- * PARAMETER}) or~ @Target({METHOD, FIELD, PARAMETER, TYPE}) ~and
- * @Retention(RUNTIME)~. All event binding types must specify the
- * @BindingType meta-annotation.
- */
- @Test(groups = { "events" })
- @SpecAssertion(section = "10.1", id = "e")
- public void testEventBindingTypeTargetsFieldParameterAndRuntime()
- {
- getCurrentManager().fireEvent("string event", new RoleBinding("Admin"));
- }
-
- /**
- * An event binding type is a Java annotation defined as ~@Target({FIELD,
- * PARAMETER}) or @Target({METHOD, FIELD, PARAMETER, TYPE}) and
- * ~@Retention(RUNTIME)
- */
- @Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class } )
- @SpecAssertion(section = "10.1", id = "f")
- public void testEventBindingTypeNotRuntime()
- {
- getCurrentManager().fireEvent("string event", new AnnotationLiteral<BindingTypeNotRuntime>(){});
- }
-
- @Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class } )
@SpecAssertions({
- @SpecAssertion(section = "10.1", id = "g"),
- @SpecAssertion(section = "11.3.10", id = "e")
- })
- public void testManagerFireEventWithNonBindingAnnotationsFails()
- {
- getCurrentManager().fireEvent("string event", new AnnotationLiteral<NotABindingType>(){});
- }
-
- @Test(groups = { "events", "broken" }, expectedExceptions = { IllegalArgumentException.class })
- @SpecAssertions({
- @SpecAssertion(section = "10.1", id = "aa"),
- @SpecAssertion(section = "11.3.10", id = "c")
- })
- //TODO This test does not have a template variable nor is there a way to write that in Java
- public void testManagerFireEventWithEventTypeParametersFails()
- {
- ATemplatedEventType<String> anEvent = new ATemplatedEventType<String>();
- getCurrentManager().fireEvent(anEvent);
- }
-
-// @Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
-// @SpecAssertions({
-// @SpecAssertion(section = "10.1", id = "aa"),
-// @SpecAssertion(section = "11.3.10", id = "c")
-// })
- // The spec no longer prohibits wildcards
- public void testBeanManagerFireEventWithEventTypeWildcardsFails()
- {
- ATemplatedEventType<?> anEventOnAnyType = new ATemplatedEventType<String>();
- getCurrentManager().fireEvent(anEventOnAnyType);
- }
-
- @Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
- @SpecAssertion(section = "11.3.10", id = "d")
- public void testDuplicateBindingsToFireEventFails() throws Exception
- {
- getCurrentManager().fireEvent("string event", new TameAnnotationLiteral(), new TameAnnotationLiteral());
- }
-
- @Test(groups = { "events" })
- @SpecAssertions({
- @SpecAssertion(section = "11.3.10", id = "a"),
- @SpecAssertion(section = "11.3.10", id = "b")
- })
- public void testBeanManagerInterfaceForFireEventMethod() throws Exception
- {
- assert BeanManager.class.getDeclaredMethod(FIRE_EVENT_METHOD_NAME, Object.class, Annotation[].class) != null;
- }
-
- /**
- * The BeanManager interface provides a method for firing events:
- */
- @Test(groups = { "events" })
- @SpecAssertion(section = "11.3.10", id = "a")
- public void testBeanManagerFireEvent()
- {
- // First a simple event with no bindings is fired
- AnEventType anEvent = new AnEventType();
- getCurrentManager().fireEvent(anEvent);
-
- // Next an event with some event bindings is fired
- getCurrentManager().fireEvent(anEvent, new RoleBinding("Admin"));
- }
-
- @Test(groups = { "events" })
- @SpecAssertions({
@SpecAssertion(section = "11.3.11", id = "a"),
@SpecAssertion(section = "11.3.11", id = "b")
})
@@ -336,25 +223,7 @@
//TODO How can we assert that the exception was logged?
}
- @Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
- @SpecAssertion(section = "11.3.10", id = "d")
- public void testDuplicateBindingsToFireFails()
- {
- SweeWaxbill bean = getInstanceByType(SweeWaxbill.class);
- bean.methodThatFiresEvent();
- }
- @Test(groups = { "events" })
- @SpecAssertion(section = "10.3.1", id = "eda")
- public void testEventFireFiresEvent()
- {
- BullTerrier.reset();
- getInstanceByType(DogWhisperer.class).issueTamingCommand();
- assert BullTerrier.isMultiBindingEventObserved();
- assert BullTerrier.isSingleBindingEventObserved();
- BullTerrier.reset();
- }
-
@Test(groups = { "events", "underInvestigation" })
@SpecAssertion(section = "11.2.7", id = "review") // removed from spec?
public void testObserverMethodCallsManagerAddObserverWithObserverObject()
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/LargeDog.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/LargeDog.java 2009-07-27 18:46:26 UTC (rev 3286)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/LargeDog.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -1,6 +1,6 @@
package org.jboss.jsr299.tck.tests.event;
-public class LargeDog
+class LargeDog
{
}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/MagicString.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/MagicString.java 2009-07-27 18:46:26 UTC (rev 3286)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/MagicString.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -1,6 +1,6 @@
package org.jboss.jsr299.tck.tests.event;
-public class MagicString
+class MagicString
{
private static boolean equalsUsed = false;
private final String value;
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/MultiBindingEvent.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/MultiBindingEvent.java 2009-07-27 18:46:26 UTC (rev 3286)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/MultiBindingEvent.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -2,5 +2,4 @@
class MultiBindingEvent
{
-
}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/Praise.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/Praise.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/Praise.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -0,0 +1,5 @@
+package org.jboss.jsr299.tck.tests.event;
+
+class Praise
+{
+}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/ShowDog.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/ShowDog.java 2009-07-27 18:46:26 UTC (rev 3286)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/ShowDog.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -1,6 +1,6 @@
package org.jboss.jsr299.tck.tests.event;
-public class ShowDog
+class ShowDog
{
}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/SmallDog.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/SmallDog.java 2009-07-27 18:46:26 UTC (rev 3286)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/SmallDog.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -1,6 +1,6 @@
package org.jboss.jsr299.tck.tests.event;
-public class SmallDog
+class SmallDog
{
}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/Spitz.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/Spitz.java 2009-07-27 18:46:26 UTC (rev 3286)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/Spitz.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -4,10 +4,11 @@
import javax.enterprise.event.Observes;
import javax.enterprise.inject.Named;
+public
@Stateful
@Tame
@Named("Teddy")
-public class Spitz implements PomeranianInterface
+class Spitz implements PomeranianInterface
{
public void observeSimpleEvent(@Observes EJBEvent someEvent)
{
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/SweeWaxbill.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/SweeWaxbill.java 2009-07-27 18:46:26 UTC (rev 3286)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/SweeWaxbill.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -5,10 +5,9 @@
class SweeWaxbill
{
- @Any @Role("Admin")
- private Event<String> simpleEvent;
+ private @Any @Role("Admin") Event<String> simpleEvent;
- public void methodThatFiresEvent()
+ public void methodThatReselectsAndFiresEvent()
{
simpleEvent.select(new RoleBinding("Admin")).fire("string event");
}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/TamingCommand.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/TamingCommand.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/TamingCommand.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -0,0 +1,5 @@
+package org.jboss.jsr299.tck.tests.event;
+
+class TamingCommand
+{
+}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/TransactionalObservers.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/TransactionalObservers.java 2009-07-27 18:46:26 UTC (rev 3286)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/TransactionalObservers.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -1,13 +1,13 @@
package org.jboss.jsr299.tck.tests.event;
-import static javax.enterprise.event.TransactionPhase.BEFORE_COMPLETION;
import static javax.enterprise.event.TransactionPhase.AFTER_COMPLETION;
import static javax.enterprise.event.TransactionPhase.AFTER_FAILURE;
import static javax.enterprise.event.TransactionPhase.AFTER_SUCCESS;
+import static javax.enterprise.event.TransactionPhase.BEFORE_COMPLETION;
import javax.enterprise.event.Observes;
-public class TransactionalObservers
+class TransactionalObservers
{
public void train(@Observes(during=BEFORE_COMPLETION) DisobedientDog dog)
{
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/DogWhisperer.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/DogWhisperer.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/DogWhisperer.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -0,0 +1,21 @@
+package org.jboss.jsr299.tck.tests.event.fires;
+
+import javax.enterprise.event.Event;
+import javax.enterprise.inject.Any;
+
+class DogWhisperer
+{
+ @Any @Tame @Role("Master") Event<TamingCommand> tamingEvent;
+
+ @Any Event<Praise> praiseEvent;
+
+ public void issueTamingCommand()
+ {
+ tamingEvent.fire(new TamingCommand());
+ }
+
+ public void givePraise()
+ {
+ praiseEvent.fire(new Praise());
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/DoggiePoints.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/DoggiePoints.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/DoggiePoints.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -0,0 +1,38 @@
+package org.jboss.jsr299.tck.tests.event.fires;
+
+import javax.enterprise.context.RequestScoped;
+import javax.enterprise.event.Observes;
+import javax.enterprise.inject.Any;
+
+@RequestScoped class DoggiePoints
+{
+ private int numPraiseReceived;
+
+ private int numTamed;
+
+ public void praiseReceived(@Observes @Any Praise praise)
+ {
+ numPraiseReceived++;
+ }
+
+ public void tamed(@Observes @Tame @Role("Master") TamingCommand tamed)
+ {
+ numTamed++;
+ }
+
+ public int getNumPraiseReceived()
+ {
+ return numPraiseReceived;
+ }
+
+ public int getNumTamed()
+ {
+ return numTamed;
+ }
+
+ public void reset()
+ {
+ numPraiseReceived = 0;
+ numTamed = 0;
+ }
+}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/FireEventTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/FireEventTest.java 2009-07-27 18:46:26 UTC (rev 3286)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/FireEventTest.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -1,5 +1,6 @@
package org.jboss.jsr299.tck.tests.event.fires;
+import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
@@ -10,13 +11,14 @@
import javax.enterprise.event.Event;
import javax.enterprise.inject.AnnotationLiteral;
import javax.enterprise.inject.spi.Bean;
+import javax.enterprise.inject.spi.BeanManager;
import javax.enterprise.inject.spi.InjectionPoint;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.literals.AnyLiteral;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecAssertions;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.literals.AnyLiteral;
import org.jboss.testharness.impl.packaging.Artifact;
import org.testng.annotations.Test;
@@ -30,6 +32,41 @@
@SpecVersion("20090625")
public class FireEventTest extends AbstractJSR299Test
{
+ private static final String BEAN_MANAGER_FIRE_EVENT_METHOD_NAME = "fireEvent";
+
+ @Test(groups = { "events" })
+ @SpecAssertions({
+ // These two assertions combine to create a testable assertion
+ @SpecAssertion(section = "11.3.10", id = "a"),
+ @SpecAssertion(section = "11.3.10", id = "b")
+ })
+ public void testBeanManagerInterfaceForFireEventMethod() throws Exception
+ {
+ assert BeanManager.class.getDeclaredMethod(BEAN_MANAGER_FIRE_EVENT_METHOD_NAME, Object.class, Annotation[].class) != null;
+ }
+
+ @Test(groups = { "events" })
+ @SpecAssertion(section = "11.3.10", id = "a")
+ public void testBeanManagerFireEvent()
+ {
+ Billing billing = getInstanceByType(Billing.class);
+ billing.reset();
+ MiniBar miniBar = new MiniBar();
+ miniBar.stockNoNotify();
+ getCurrentManager().fireEvent(miniBar);
+ assert billing.isActive();
+ Item chocolate = miniBar.getItemByName("Chocolate");
+ getCurrentManager().fireEvent(chocolate, new AnnotationLiteral<Lifted>() {});
+ assert billing.getCharge() == 5.00d;
+ }
+
+ @Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
+ @SpecAssertion(section = "11.3.10", id = "d")
+ public void testDuplicateBindingsToFireEventFails() throws Exception
+ {
+ getCurrentManager().fireEvent(new Object(), new AnnotationLiteral<Lifted>() {}, new AnnotationLiteral<Lifted>() {});
+ }
+
/**
* This test verifies that the {@link Event} object capable of firing
* {@link Item} objects can be injected with the {@link @Any} binding type
@@ -199,6 +236,42 @@
assert housekeeping.getItemsTainted().contains(water);
}
+ @Test(groups = "events")
+ @SpecAssertion(section = "10.3.1", id = "ca")
+ public void testEventProvidesMethodForFiringEventsWithCombinationOfTypeAndBindings()
+ {
+ DoggiePoints points = getInstanceByType(DoggiePoints.class);
+ points.reset();
+ DogWhisperer master = getInstanceByType(DogWhisperer.class);
+ master.issueTamingCommand();
+ assert points.getNumTamed() == 1;
+ assert points.getNumPraiseReceived() == 0;
+ master.givePraise();
+ assert points.getNumTamed() == 1;
+ assert points.getNumPraiseReceived() == 1;
+ }
+
+ @Test(groups = "events")
+ @SpecAssertion(section = "10.3.1", id = "eda")
+ public void testEventSelectedFiresAndObserversNotified()
+ {
+ Housekeeping houseKeeping = getInstanceByType(Housekeeping.class);
+ houseKeeping.reset();
+ MiniBar miniBar = getInstanceByType(MiniBar.class);
+ Item chocolate = new Item("Chocolate", 5.00d);
+ Item crackers = new Item("Crackers", 2.50d);
+
+ miniBar.getItemEvent().fire(chocolate);
+ assert houseKeeping.getItemActivity().size() == 1;
+ assert houseKeeping.getItemActivity().get(0) == chocolate;
+
+ miniBar.getItemEvent().select(new AnnotationLiteral<Lifted>() {}).fire(crackers);
+ assert houseKeeping.getItemActivity().size() == 2;
+ assert houseKeeping.getItemActivity().get(1) == crackers;
+ assert houseKeeping.getItemsMissing().size() == 1;
+ assert houseKeeping.getItemsMissing().iterator().next() == crackers;
+ }
+
@Test(groups = {"events", "broken"}, expectedExceptions = IllegalArgumentException.class)
@SpecAssertion(section = "10.3.1", id = "f")
//TODO There does not seem to be any way to write code that compiles and tests this assertion
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Housekeeping.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Housekeeping.java 2009-07-27 18:46:26 UTC (rev 3286)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Housekeeping.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -1,6 +1,8 @@
package org.jboss.jsr299.tck.tests.event.fires;
+import java.util.ArrayList;
import java.util.HashSet;
+import java.util.List;
import java.util.Set;
import javax.enterprise.context.RequestScoped;
@@ -13,6 +15,8 @@
private Set<Item> itemsMissing = new HashSet<Item>();
+ private List<Item> itemActivity = new ArrayList<Item>();
+
public void onItemRemoved(@Observes @Lifted Item item)
{
itemsMissing.add(item);
@@ -25,6 +29,11 @@
itemsTainted.add(item);
}
+ public void onItemActivity(@Observes @Any Item item)
+ {
+ itemActivity.add(item);
+ }
+
public Set<Item> getItemsTainted()
{
return itemsTainted;
@@ -35,8 +44,19 @@
return itemsMissing;
}
+ public List<Item> getItemActivity()
+ {
+ return itemActivity;
+ }
+
public void minibarStocked(@Observes @Any MiniBar minibar)
{
+ reset();
+ }
+
+ public void reset()
+ {
+ itemActivity.clear();
itemsMissing.clear();
itemsTainted.clear();
}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/MiniBar.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/MiniBar.java 2009-07-27 18:46:26 UTC (rev 3286)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/MiniBar.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -17,6 +17,11 @@
@Any Event<Item> itemEvent;
+ Event<Item> getItemEvent()
+ {
+ return itemEvent;
+ }
+
public Set<Item> getItems()
{
return items;
@@ -68,9 +73,14 @@
public void stock()
{
+ stockNoNotify();
+ miniBarEvent.fire(this);
+ }
+
+ public void stockNoNotify()
+ {
items.add(new Item("Chocolate", 5.00));
items.add(new Item("16 oz Water", 1.00));
items.add(new Item("Disposable Camera", 10.00));
- miniBarEvent.fire(this);
}
}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Praise.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Praise.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Praise.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -0,0 +1,5 @@
+package org.jboss.jsr299.tck.tests.event.fires;
+
+class Praise
+{
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Role.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Role.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Role.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -0,0 +1,18 @@
+package org.jboss.jsr299.tck.tests.event.fires;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.enterprise.inject.BindingType;
+
+@Target( { FIELD, PARAMETER })
+@Retention(RUNTIME)
+@BindingType
+@interface Role
+{
+ String value();
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Tame.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Tame.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/Tame.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -0,0 +1,22 @@
+package org.jboss.jsr299.tck.tests.event.fires;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.enterprise.inject.BindingType;
+
+@Target( { TYPE, METHOD, PARAMETER, FIELD })
+@Retention(RUNTIME)
+@Documented
+@BindingType
+@interface Tame
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/TamingCommand.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/TamingCommand.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/TamingCommand.java 2009-07-27 19:29:57 UTC (rev 3287)
@@ -0,0 +1,5 @@
+package org.jboss.jsr299.tck.tests.event.fires;
+
+class TamingCommand
+{
+}
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3286 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/failsDuringValidation.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-07-27 14:46:26 -0400 (Mon, 27 Jul 2009)
New Revision: 3286
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/failsDuringValidation/AfterBeanDiscoveryFailureTest.java
Log:
versions
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/failsDuringValidation/AfterBeanDiscoveryFailureTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/failsDuringValidation/AfterBeanDiscoveryFailureTest.java 2009-07-27 18:43:35 UTC (rev 3285)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/failsDuringValidation/AfterBeanDiscoveryFailureTest.java 2009-07-27 18:46:26 UTC (rev 3286)
@@ -17,11 +17,11 @@
package org.jboss.jsr299.tck.tests.deployment.lifecycle.broken.failsDuringValidation;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.DeploymentError;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecAssertions;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.DeploymentError;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
import org.testng.annotations.Test;
@@ -36,13 +36,13 @@
*/
@Artifact
@ExpectedDeploymentException(DeploymentError.class)
-@SpecVersion("20090519")
+@SpecVersion("20090625")
public class AfterBeanDiscoveryFailureTest extends AbstractJSR299Test
{
// TODO make this an integration test using Extension
- @Test(groups="incontainer-broken")
+ @Test(groups={"incontainer-broken", "rewrite"} )
@SpecAssertions({
@SpecAssertion(section = "11.5.2", id = "a"),
@SpecAssertion(section = "12.2", id = "e"),
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3285 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests: inheritance/specialization/enterprise/broken/sameName and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-07-27 14:43:35 -0400 (Mon, 27 Jul 2009)
New Revision: 3285
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/producer/field/definition/enterprise/EnterpriseProducerFieldDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/inheritance/specialization/enterprise/broken/sameName/SameNameTest.java
Log:
versions
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/producer/field/definition/enterprise/EnterpriseProducerFieldDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/producer/field/definition/enterprise/EnterpriseProducerFieldDefinitionTest.java 2009-07-27 18:42:12 UTC (rev 3284)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/producer/field/definition/enterprise/EnterpriseProducerFieldDefinitionTest.java 2009-07-27 18:43:35 UTC (rev 3285)
@@ -4,9 +4,9 @@
import javax.enterprise.inject.AnnotationLiteral;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.IntegrationTest;
import org.jboss.testharness.impl.packaging.Packaging;
@@ -18,7 +18,7 @@
@IntegrationTest
@Packaging(PackagingType.EAR)
@BeansXml("beans.xml")
-@SpecVersion("20090519")
+@SpecVersion("20090625")
public class EnterpriseProducerFieldDefinitionTest extends AbstractJSR299Test
{
private static final Annotation FOO_LITERAL = new AnnotationLiteral<Foo>() {};
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/inheritance/specialization/enterprise/broken/sameName/SameNameTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/inheritance/specialization/enterprise/broken/sameName/SameNameTest.java 2009-07-27 18:42:12 UTC (rev 3284)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/inheritance/specialization/enterprise/broken/sameName/SameNameTest.java 2009-07-27 18:43:35 UTC (rev 3285)
@@ -1,10 +1,10 @@
package org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.broken.sameName;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
import org.jboss.testharness.impl.packaging.Packaging;
@@ -16,7 +16,7 @@
@ExpectedDeploymentException(DefinitionError.class)
@Packaging(PackagingType.EAR)
@BeansXml("beans.xml")
-@SpecVersion("20090519")
+@SpecVersion("20090625")
public class SameNameTest extends AbstractJSR299Test
{
@Test
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3284 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken: exceptionInAfterBeanDiscoveryObserver and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-07-27 14:42:12 -0400 (Mon, 27 Jul 2009)
New Revision: 3284
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/addDeploymentProblem/AddDeploymentProblemTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/exceptionInAfterBeanDiscoveryObserver/AfterBeanDiscoveryObserverExecutionFailureTest.java
Log:
versions, mark rewrite, not broken
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/addDeploymentProblem/AddDeploymentProblemTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/addDeploymentProblem/AddDeploymentProblemTest.java 2009-07-27 18:41:11 UTC (rev 3283)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/addDeploymentProblem/AddDeploymentProblemTest.java 2009-07-27 18:42:12 UTC (rev 3284)
@@ -17,10 +17,10 @@
package org.jboss.jsr299.tck.tests.deployment.lifecycle.broken.addDeploymentProblem;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.DeploymentError;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.DeploymentError;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
import org.testng.annotations.Test;
@@ -35,10 +35,10 @@
*/
@Artifact
@ExpectedDeploymentException(DeploymentError.class)
-@SpecVersion("20090519")
+@SpecVersion("20090625")
public class AddDeploymentProblemTest extends AbstractJSR299Test
{
- @Test(groups={"broken", "incontainer-ri-broken"})
+ @Test(groups={"rewrite", "incontainer-ri-broken"})
// TODO Needs Extension stuff adding
// WBRI-312
@SpecAssertion(section = "11.5.3", id = "b")
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/exceptionInAfterBeanDiscoveryObserver/AfterBeanDiscoveryObserverExecutionFailureTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/exceptionInAfterBeanDiscoveryObserver/AfterBeanDiscoveryObserverExecutionFailureTest.java 2009-07-27 18:41:11 UTC (rev 3283)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/exceptionInAfterBeanDiscoveryObserver/AfterBeanDiscoveryObserverExecutionFailureTest.java 2009-07-27 18:42:12 UTC (rev 3284)
@@ -20,7 +20,7 @@
@SpecVersion("20090625")
public class AfterBeanDiscoveryObserverExecutionFailureTest extends AbstractJSR299Test
{
- @Test(groups={"incontainer-ri-broken", "broken"})
+ @Test(groups={"incontainer-ri-broken", "rewrite"})
//TODO Needs Extension stuff adding
// WBRI-312
@SpecAssertion(section = "11.5.2", id = "g")
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3283 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests: deployment/lifecycle/broken/exceptionInAfterBeanDiscoveryObserver and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-07-27 14:41:11 -0400 (Mon, 27 Jul 2009)
New Revision: 3283
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/RequestContextTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/exceptionInAfterBeanDiscoveryObserver/AfterBeanDiscoveryObserverExecutionFailureTest.java
Log:
versions
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/RequestContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/RequestContextTest.java 2009-07-27 18:36:18 UTC (rev 3282)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/RequestContextTest.java 2009-07-27 18:41:11 UTC (rev 3283)
@@ -1,8 +1,8 @@
package org.jboss.jsr299.tck.tests.context.request;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.IntegrationTest;
import org.jboss.testharness.impl.packaging.Resource;
@@ -19,7 +19,7 @@
@Resource(destination=WarArtifactDescriptor.WEB_XML_DESTINATION, source="web.xml"),
@Resource(destination="SimplePage.html", source="SimplePage.html")
})
-@SpecVersion("20090519")
+@SpecVersion("20090625")
public class RequestContextTest extends AbstractJSR299Test
{
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/exceptionInAfterBeanDiscoveryObserver/AfterBeanDiscoveryObserverExecutionFailureTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/exceptionInAfterBeanDiscoveryObserver/AfterBeanDiscoveryObserverExecutionFailureTest.java 2009-07-27 18:36:18 UTC (rev 3282)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/exceptionInAfterBeanDiscoveryObserver/AfterBeanDiscoveryObserverExecutionFailureTest.java 2009-07-27 18:41:11 UTC (rev 3283)
@@ -17,7 +17,7 @@
*/
@Artifact
@ExpectedDeploymentException(DefinitionError.class)
-@SpecVersion("20090519")
+@SpecVersion("20090625")
public class AfterBeanDiscoveryObserverExecutionFailureTest extends AbstractJSR299Test
{
@Test(groups={"incontainer-ri-broken", "broken"})
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3282 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests: inheritance/specialization/enterprise and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-07-27 14:36:18 -0400 (Mon, 27 Jul 2009)
New Revision: 3282
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/withBindingType/StereoTypeWithBindingTypesTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/inheritance/specialization/enterprise/EnterpriseBeanSpecializationTest.java
Log:
versions
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/withBindingType/StereoTypeWithBindingTypesTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/withBindingType/StereoTypeWithBindingTypesTest.java 2009-07-27 18:33:58 UTC (rev 3281)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/withBindingType/StereoTypeWithBindingTypesTest.java 2009-07-27 18:36:18 UTC (rev 3282)
@@ -1,17 +1,17 @@
package org.jboss.jsr299.tck.tests.definition.stereotype.broken.withBindingType;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
import org.testng.annotations.Test;
@Artifact
@ExpectedDeploymentException(DefinitionError.class)
-@SpecVersion("20090519")
+@SpecVersion("20090625")
public class StereoTypeWithBindingTypesTest extends AbstractJSR299Test
{
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/inheritance/specialization/enterprise/EnterpriseBeanSpecializationTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/inheritance/specialization/enterprise/EnterpriseBeanSpecializationTest.java 2009-07-27 18:33:58 UTC (rev 3281)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/inheritance/specialization/enterprise/EnterpriseBeanSpecializationTest.java 2009-07-27 18:36:18 UTC (rev 3282)
@@ -6,10 +6,10 @@
import javax.enterprise.inject.Any;
import javax.enterprise.inject.spi.Bean;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecAssertions;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.Packaging;
import org.jboss.testharness.impl.packaging.PackagingType;
@@ -19,7 +19,7 @@
@Artifact
@Packaging(PackagingType.EAR)
@BeansXml("beans.xml")
-@SpecVersion("20090519")
+@SpecVersion("20090625")
public class EnterpriseBeanSpecializationTest extends AbstractJSR299Test
{
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3281 - in tck/trunk/impl/src/main: java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/tooManyScopes and 2 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-07-27 14:33:58 -0400 (Mon, 27 Jul 2009)
New Revision: 3281
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken11/EnterpriseBeanWithIllegalDependencyTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/tooManyScopes/TooManyScopeTypesTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/exceptionInAfterBeanDiscoveryObserver/AfterBeanDiscoveryObserverExecutionFailureTest.java
tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
versioning, split out assertion
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken11/EnterpriseBeanWithIllegalDependencyTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken11/EnterpriseBeanWithIllegalDependencyTest.java 2009-07-27 18:25:16 UTC (rev 3280)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken11/EnterpriseBeanWithIllegalDependencyTest.java 2009-07-27 18:33:58 UTC (rev 3281)
@@ -2,9 +2,9 @@
import javax.enterprise.inject.IllegalProductException;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
import org.jboss.testharness.impl.packaging.IntegrationTest;
@@ -16,7 +16,7 @@
@IntegrationTest
@Packaging(PackagingType.EAR)
@ExpectedDeploymentException(IllegalProductException.class)
-@SpecVersion("unknown")
+@SpecVersion("20090625")
public class EnterpriseBeanWithIllegalDependencyTest extends AbstractJSR299Test
{
@Test(groups = { "contexts", "passivation", "integration"})
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/tooManyScopes/TooManyScopeTypesTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/tooManyScopes/TooManyScopeTypesTest.java 2009-07-27 18:25:16 UTC (rev 3280)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/tooManyScopes/TooManyScopeTypesTest.java 2009-07-27 18:33:58 UTC (rev 3281)
@@ -1,22 +1,22 @@
package org.jboss.jsr299.tck.tests.definition.stereotype.broken.tooManyScopes;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
import org.testng.annotations.Test;
@Artifact
@ExpectedDeploymentException(DefinitionError.class)
-@SpecVersion("20090519")
+@SpecVersion("20090625")
public class TooManyScopeTypesTest extends AbstractJSR299Test
{
@Test
- @SpecAssertion(section = "2.7.1.1", id = "aa")
+ @SpecAssertion(section = "2.7.1.1", id = "ab")
public void testStereotypeWithTooManyScopeTypes()
{
assert false;
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/exceptionInAfterBeanDiscoveryObserver/AfterBeanDiscoveryObserverExecutionFailureTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/exceptionInAfterBeanDiscoveryObserver/AfterBeanDiscoveryObserverExecutionFailureTest.java 2009-07-27 18:25:16 UTC (rev 3280)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/deployment/lifecycle/broken/exceptionInAfterBeanDiscoveryObserver/AfterBeanDiscoveryObserverExecutionFailureTest.java 2009-07-27 18:33:58 UTC (rev 3281)
@@ -1,9 +1,9 @@
package org.jboss.jsr299.tck.tests.deployment.lifecycle.broken.exceptionInAfterBeanDiscoveryObserver;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
import org.testng.annotations.Test;
@@ -23,7 +23,7 @@
@Test(groups={"incontainer-ri-broken", "broken"})
//TODO Needs Extension stuff adding
// WBRI-312
- @SpecAssertion(section = "11.5.2", id = "d")
+ @SpecAssertion(section = "11.5.2", id = "g")
public void testObserverFailureTreatedAsDefinitionError()
{
assert false;
Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml 2009-07-27 18:25:16 UTC (rev 3280)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml 2009-07-27 18:33:58 UTC (rev 3281)
@@ -417,9 +417,15 @@
<section id="2.7.1.1" title="Declaring the default scope for a stereotype">
<assertion id="aa">
- <text>A stereotype may declare at most one scope. If a stereotype declares more than one scope, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the
-container".</text>
+ <text>A stereotype may declare at most one scope. ~If a stereotype declares more than one scope, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the
+container".~</text>
</assertion>
+
+ <assertion id="ab">
+ <text>A stereotype may declare at most one scope. _If a stereotype declares more than one scope, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the
+container"._</text>
+ </assertion>
+
</section>
<section id="2.7.1.2" title="Specifying interceptor bindings for a stereotype">
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3280 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests: decorators/definition/broken/multipleDelegateInjectionPoints and 4 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-07-27 14:25:16 -0400 (Mon, 27 Jul 2009)
New Revision: 3280
Removed:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/producer/method/broken/parameterizedTypeWithWildcard/PamaterizedTypeWithWildcardTest.java
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/finalBeanMethod/FinalBeanMethodTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/multipleDelegateInjectionPoints/MultipleDelegateInjectionPointsTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/noDelegateInjectionPoints/NoDelegateInjectionPointsTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/notAllDecoratedTypesImplemented/NotAllDecoratedTypesImplementedTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injectionpoint/InjectableReferenceTest.java
Log:
versions
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/finalBeanMethod/FinalBeanMethodTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/finalBeanMethod/FinalBeanMethodTest.java 2009-07-27 18:04:58 UTC (rev 3279)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/finalBeanMethod/FinalBeanMethodTest.java 2009-07-27 18:25:16 UTC (rev 3280)
@@ -16,10 +16,10 @@
*/
package org.jboss.jsr299.tck.tests.decorators.definition.broken.finalBeanMethod;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
import org.jboss.testharness.impl.packaging.jsr299.BeansXml;
@@ -32,7 +32,7 @@
@Artifact
@ExpectedDeploymentException(DefinitionError.class)
@BeansXml("beans.xml")
-@SpecVersion("unknown")
+@SpecVersion("20090625")
public class FinalBeanMethodTest extends AbstractJSR299Test
{
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/multipleDelegateInjectionPoints/MultipleDelegateInjectionPointsTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/multipleDelegateInjectionPoints/MultipleDelegateInjectionPointsTest.java 2009-07-27 18:04:58 UTC (rev 3279)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/multipleDelegateInjectionPoints/MultipleDelegateInjectionPointsTest.java 2009-07-27 18:25:16 UTC (rev 3280)
@@ -16,10 +16,10 @@
*/
package org.jboss.jsr299.tck.tests.decorators.definition.broken.multipleDelegateInjectionPoints;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
import org.jboss.testharness.impl.packaging.jsr299.BeansXml;
@@ -32,7 +32,7 @@
@Artifact
@ExpectedDeploymentException(DefinitionError.class)
@BeansXml("beans.xml")
-@SpecVersion("unknown")
+@SpecVersion("20090625")
public class MultipleDelegateInjectionPointsTest extends AbstractJSR299Test
{
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/noDelegateInjectionPoints/NoDelegateInjectionPointsTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/noDelegateInjectionPoints/NoDelegateInjectionPointsTest.java 2009-07-27 18:04:58 UTC (rev 3279)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/noDelegateInjectionPoints/NoDelegateInjectionPointsTest.java 2009-07-27 18:25:16 UTC (rev 3280)
@@ -16,10 +16,10 @@
*/
package org.jboss.jsr299.tck.tests.decorators.definition.broken.noDelegateInjectionPoints;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
import org.jboss.testharness.impl.packaging.jsr299.BeansXml;
@@ -32,7 +32,7 @@
@Artifact
@ExpectedDeploymentException(DefinitionError.class)
@BeansXml("beans.xml")
-@SpecVersion("unknown")
+@SpecVersion("20090625")
public class NoDelegateInjectionPointsTest extends AbstractJSR299Test
{
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/notAllDecoratedTypesImplemented/NotAllDecoratedTypesImplementedTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/notAllDecoratedTypesImplemented/NotAllDecoratedTypesImplementedTest.java 2009-07-27 18:04:58 UTC (rev 3279)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/notAllDecoratedTypesImplemented/NotAllDecoratedTypesImplementedTest.java 2009-07-27 18:25:16 UTC (rev 3280)
@@ -16,10 +16,10 @@
*/
package org.jboss.jsr299.tck.tests.decorators.definition.broken.notAllDecoratedTypesImplemented;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.DefinitionError;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
import org.jboss.testharness.impl.packaging.jsr299.BeansXml;
@@ -32,7 +32,7 @@
@Artifact
@ExpectedDeploymentException(DefinitionError.class)
@BeansXml("beans.xml")
-@SpecVersion("unknown")
+@SpecVersion("20090625")
public class NotAllDecoratedTypesImplementedTest extends AbstractJSR299Test
{
Deleted: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/producer/method/broken/parameterizedTypeWithWildcard/PamaterizedTypeWithWildcardTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/producer/method/broken/parameterizedTypeWithWildcard/PamaterizedTypeWithWildcardTest.java 2009-07-27 18:04:58 UTC (rev 3279)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/producer/method/broken/parameterizedTypeWithWildcard/PamaterizedTypeWithWildcardTest.java 2009-07-27 18:25:16 UTC (rev 3280)
@@ -1,25 +0,0 @@
-package org.jboss.jsr299.tck.tests.implementation.producer.method.broken.parameterizedTypeWithWildcard;
-
-
-import org.jboss.test.audit.annotations.SpecAssertion;
-import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.DefinitionError;
-import org.jboss.testharness.impl.packaging.Artifact;
-import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
-import org.testng.annotations.Test;
-
-@Artifact
-(a)ExpectedDeploymentException(DefinitionError.class)
-@SpecVersion("20090519")
-public class PamaterizedTypeWithWildcardTest extends AbstractJSR299Test
-{
-
- @Test(groups = "producerMethod")
- @SpecAssertion(section = "3.4", id = "ha")
- public void testParameterizedReturnTypeWithWildcard() throws Exception
- {
- assert false;
- }
-
-}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injectionpoint/InjectableReferenceTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injectionpoint/InjectableReferenceTest.java 2009-07-27 18:04:58 UTC (rev 3279)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injectionpoint/InjectableReferenceTest.java 2009-07-27 18:25:16 UTC (rev 3280)
@@ -21,11 +21,11 @@
import javax.enterprise.inject.spi.Bean;
import javax.enterprise.inject.spi.InjectionPoint;
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.literals.CurrentLiteral;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecAssertions;
import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.literals.CurrentLiteral;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.jsr299.BeansXml;
import org.testng.annotations.Test;
@@ -40,7 +40,7 @@
*/
@Artifact
@BeansXml("beans.xml")
-@SpecVersion("unknown")
+@SpecVersion("20090625")
public class InjectableReferenceTest extends AbstractJSR299Test
{
@SuppressWarnings("unchecked")
15 years, 4 months