Author: dallen6
Date: 2009-03-25 11:00:44 -0400 (Wed, 25 Mar 2009)
New Revision: 2202
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java
Log:
Fixed test groups based on current success of various event tests
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-03-25
14:06:36 UTC (rev 2201)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java 2009-03-25
15:00:44 UTC (rev 2202)
@@ -93,7 +93,7 @@
@SpecAssertions( { @SpecAssertion(section = "7.1", id = "d") })
public void testEventBindingTypeTargetMostAndRuntime()
{
-
+ assert false;
}
/**
@@ -106,7 +106,7 @@
@SpecAssertions( { @SpecAssertion(section = "7.1", id = "e") })
public void testEventBindingTypeTargetsFieldParameterAndRuntime()
{
-
+ assert false;
}
/**
@@ -115,19 +115,19 @@
* ~@Retention(RUNTIME) TODO If the binding does not have RUNTIME retention,
* it cannot be tested
*/
- @Test(groups = { "events", "broken" })
+ @Test(groups = { "events", "stub" })
@SpecAssertions( { @SpecAssertion(section = "7.1", id = "f") })
public void testEventBindingTypeNotRuntime()
{
-
+ assert false;
}
// TODO How to test all annotations w/o BindingType are not event bindings
- @Test(groups = { "events", "broken" })
+ @Test(groups = { "events", "underInvestigation" })
@SpecAssertions( { @SpecAssertion(section = "7.1", id = "g") })
public void testEventBindingTypesSpecifyBinding()
{
-
+ assert false;
}
@Test(groups = { "events" }, expectedExceptions = {
IllegalArgumentException.class })
@@ -217,24 +217,19 @@
assert false;
}
- @Test(groups = { "events", "broken" }, expectedExceptions = {
IllegalArgumentException.class })
+ @Test(groups = { "events", "underInvestigation" },
expectedExceptions = { IllegalArgumentException.class })
@SpecAssertions( { @SpecAssertion(section = "7.3", id = "h") })
public void testManagerRemoveObserverWithEventTypeParametersFails()
{
+ //TODO This requires passing a Class<T> corresponding to Event<T> which
is not possible
assert false;
- // ATemplatedEventType<String> anEvent = new
- // ATemplatedEventType<String>();
- // Observer<AnEventType> observer = new AnObserver();
- // getCurrentManager().addObserver(observer, anEvent.getClass());
}
- @Test(groups = { "events", "stub" }, expectedExceptions = {
IllegalArgumentException.class })
+ @Test(groups = { "events", "underInvestigation" },
expectedExceptions = { IllegalArgumentException.class })
@SpecAssertions( { @SpecAssertion(section = "7.3", id = "i") })
public void testManagerRemoveObserverWithEventTypeWildcardsFails()
{
- // Although the above test is really the same as with a wildcard,
- // we will test it anyhow since the specification calls it out separately.
- ATemplatedEventType<?> anEventOnAnyType = new
ATemplatedEventType<String>();
+ //TODO This requires passing a Class<T> corresponding to Event<?> which
is not possible
assert false;
}
@@ -585,7 +580,7 @@
}.run();
}
- @Test(groups = { "events", "broken" })
+ @Test(groups = { "events" })
@SpecAssertions( { @SpecAssertion(section = "7.6", id = "n") } )
public void testImplicitEventBeanMatchesAPITypeOfInectionPoint() throws Exception
{
@@ -604,7 +599,7 @@
}.run();
}
- @Test(groups = { "events", "broken" })
+ @Test(groups = { "events" })
@SpecAssertions( { @SpecAssertion(section = "7.6", id = "n") } )
public void testImplicitEventBeanMatchesBindingAnnotationsOfInjectionPoint() throws
Exception
{
@@ -623,7 +618,7 @@
}.run();
}
- @Test(groups = { "events", "broken" })
+ @Test(groups = { "events" })
@SpecAssertion(section = "7.6", id = "o")
public void testImplicitEventBeanHasStandardDeploymentType() throws Exception
{
@@ -644,7 +639,7 @@
}.run();
}
- @Test(groups = { "events", "broken" })
+ @Test(groups = { "events" })
@SpecAssertion(section = "7.6", id = "p")
public void testImplicitEventBeanHasDependentScope() throws Exception
{
@@ -663,7 +658,7 @@
}.run();
}
- @Test(groups = { "events", "broken" })
+ @Test(groups = { "events" })
@SpecAssertion(section = "7.6", id = "q")
public void testImplicitEventBeanHasNoName() throws Exception
{
@@ -682,7 +677,7 @@
}.run();
}
- @Test(groups = { "events", "broken" })
+ @Test(groups = { "events" })
@SpecAssertions( { @SpecAssertion(section = "7.6", id = "a"),
@SpecAssertion(section = "7.6", id = "r") } )
public void testImplicitEventBeanProvidedByContainer() throws Exception
{
@@ -755,7 +750,7 @@
getCurrentManager().resolveObservers(eventToFire);
}
- @Test(groups = { "broken", "events" }, expectedExceptions = {
IllegalArgumentException.class })
+ @Test(groups = { "events" }, expectedExceptions = {
IllegalArgumentException.class })
@SpecAssertion(section = "7.7", id = "c")
public void testEventObjectContainsWildcardsWhenResolvingFails()
{
@@ -764,7 +759,6 @@
private void eventObjectContainsWildcards(ArrayList<?> eventToFire)
{
- // TODO There does not seem to be a way to get wildcarded types passed
getCurrentManager().resolveObservers(eventToFire);
}