Author: manik.surtani(a)jboss.com
Date: 2008-01-09 17:24:49 -0500 (Wed, 09 Jan 2008)
New Revision: 5107
Modified:
core/trunk/src/test/java/org/jboss/cache/notifications/RemoteCacheListenerTest.java
Log:
Fixed broken test
Modified:
core/trunk/src/test/java/org/jboss/cache/notifications/RemoteCacheListenerTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/notifications/RemoteCacheListenerTest.java 2008-01-09
16:30:05 UTC (rev 5106)
+++
core/trunk/src/test/java/org/jboss/cache/notifications/RemoteCacheListenerTest.java 2008-01-09
22:24:49 UTC (rev 5107)
@@ -658,6 +658,10 @@
List<Event> expected = new ArrayList<Event>();
// public EventImpl(boolean pre, Cache cache, ModificationType modificationType,
Map data, Fqn fqn,
// Transaction transaction, boolean originLocal, Fqn targetFqn, boolean successful,
View newView, Type type)
+ if (optLocking)
+ expected.add(new EventImpl(false, cache2, null, null, null, null, true, null,
false, null, TRANSACTION_REGISTERED));
+ if (optLocking)
+ expected.add(new EventImpl(false, cache2, null, null, null, null, true, null,
true, null, TRANSACTION_COMPLETED));
expected.add(new EventImpl(true, cache2, null, null, Fqn.ROOT, null, false, null,
false, null, NODE_CREATED));
expected.add(new EventImpl(false, cache2, null, null, Fqn.ROOT, null, false, null,
false, null, NODE_CREATED));
@@ -672,6 +676,9 @@
expected.add(new EventImpl(true, cache2,
NodeModifiedEvent.ModificationType.PUT_MAP, Collections.emptyMap(), fqnB, null, false,
null, false, null, NODE_MODIFIED));
expected.add(new EventImpl(false, cache2,
NodeModifiedEvent.ModificationType.PUT_MAP, data, fqnB, null, false, null, false, null,
NODE_MODIFIED));
+
+ scrubTransactions(expected);
+ if (optLocking) eventLog2.scrubImplicitTransactions();
assertEquals(expected, eventLog2.events);
}