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;
+ }
+}