Author: dan.j.allen
Date: 2009-07-27 20:01:53 -0400 (Mon, 27 Jul 2009)
New Revision: 3297
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/resolve/ResolveEventObserversTest.java
Log:
fix assertion
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/resolve/ResolveEventObserversTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/resolve/ResolveEventObserversTest.java 2009-07-27
23:51:48 UTC (rev 3296)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/resolve/ResolveEventObserversTest.java 2009-07-28
00:01:53 UTC (rev 3297)
@@ -43,7 +43,7 @@
Set<ObserverMethod<?, Temperature>> temperatureObservers =
getCurrentManager().resolveObserverMethods(new Temperature(0d));
assert temperatureObservers.size() > 1;
ObserverMethod<?, Temperature> temperatureObserver =
temperatureObservers.iterator().next();
- assert temperatureObserver.getBean() == getUniqueBean(AirConditioner.class);
+ assert temperatureObserver.getBean().getBeanClass().equals(AirConditioner.class);
assert temperatureObserver.getObservedType().equals(Temperature.class);
Method method = AirConditioner.class.getMethod("temperatureChanged",
Temperature.class);
Show replies by date