Author: pete.muir(a)jboss.org
Date: 2010-01-22 11:43:33 -0500 (Fri, 22 Jan 2010)
New Revision: 5594
Modified:
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/enterprise/EnterpriseEventInheritenceTest.java
Log:
port CDITCK-74 to trunk
Modified:
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/enterprise/EnterpriseEventInheritenceTest.java
===================================================================
---
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/enterprise/EnterpriseEventInheritenceTest.java 2010-01-22
16:43:04 UTC (rev 5593)
+++
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/enterprise/EnterpriseEventInheritenceTest.java 2010-01-22
16:43:33 UTC (rev 5594)
@@ -52,7 +52,7 @@
// is a method only on Farmer, and not LazyFarmer
observers.iterator().next().notify(egg);
assert egg.getClassesVisited().size() == 1;
- assert egg.getClassesVisited().iterator().next().equals(Farmer.class);
+ assert
FarmerLocal.class.isAssignableFrom(egg.getClassesVisited().iterator().next());
}
@Test(groups = { "events", "inheritance" })
@@ -67,6 +67,6 @@
// is a method only on StockWatcher, and not IndirectStockWatcher
observers.iterator().next().notify(stockPrice);
assert stockPrice.getClassesVisited().size() == 1;
- assert
stockPrice.getClassesVisited().iterator().next().equals(StockWatcher.class);
+ assert
StockWatcherLocal.class.isAssignableFrom(stockPrice.getClassesVisited().iterator().next());
}
}
Show replies by date