return getDeploySetup(CacheInvalidationUnitTestCase.class, "cmp2-cacheinvalidation.jar");
}
public void testBasicInvalidation() throws Exception
{
Facade facade = getFacadeHome().create();
try
{
facade.setup();
Long pk = new Long(1);
String cName = facade.readFirstName("CROLocal", pk);
assertEquals("Avoka", cName);
cName = facade.readFirstName("CRWLocal", pk);
assertEquals("Avoka", cName);
facade.writeFirstName("CRWLocal", pk, "Ataka");
cName = facade.readFirstName("CROLocal", pk);
assertEquals("Ataka", cName);
cName = facade.readFirstName("CRWLocal", pk);
assertEquals("Ataka", cName);
}
finally
{
facade.tearDown();
}
}