[webbeans-commits] Webbeans SVN: r3510 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Sun Aug 16 05:43:33 EDT 2009
Author: pete.muir at jboss.org
Date: 2009-08-16 05:43:33 -0400 (Sun, 16 Aug 2009)
New Revision: 3510
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/FireEventTest.java
Log:
Fix test
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-08-16 09:42:55 UTC (rev 3509)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/FireEventTest.java 2009-08-16 09:43:33 UTC (rev 3510)
@@ -272,13 +272,12 @@
assert houseKeeping.getItemsMissing().iterator().next() == crackers;
}
- @Test(groups = {"events", "broken"}, expectedExceptions = IllegalArgumentException.class)
+ @Test(groups = {"events"}, 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
- public void testEventFireThrowsExceptionIfEventObjectContainsTypeVariable()
+ public <T> void testEventFireThrowsExceptionIfEventObjectContainsTypeVariable()
{
MiniBar miniBar = getInstanceByType(MiniBar.class);
- miniBar.itemEvent.fire(new Item_Illegal<Integer>("12 oz Beer", 5.50));
+ miniBar.itemEvent.fire(new Item_Illegal<T>("12 oz Beer", 5.50));
}
}
More information about the weld-commits
mailing list