[jbosscache-dev] o.j.c.statetransfer.VersionedTestBase

Manik Surtani manik at jboss.org
Mon Sep 11 13:51:57 EDT 2006


All,

Any idea why VersionedTestBase.testPartialStateTferWithClassLoader()  
is implemented the way it is?

Line 293 has:

	assertNull("/a/b not transferred to loader", loader.get(A_B));

and soon after that (no more mods to the caches except some  
assertions) on line 302:

	assertEquals("Correct state from loader for /a/b", ben.toString(),  
loader.get(A_B).get("person").toString());

This basically throws an NPE on loader.get(A_B).get("person") but  
this NPE is *expected*, based on the assertion before... ?  Am I  
missing something here?

Cheers,
--
Manik Surtani

Lead, JBoss Cache
JBoss, a division of Red Hat

Email: manik at jboss.org
Telephone: +44 7786 702 706
MSN: manik at surtani.org
Yahoo/AIM/Skype: maniksurtani





More information about the jbosscache-dev mailing list