SGF-189 - Can make local regions persistent

This commit is contained in:
David Turanski
2013-08-06 07:28:53 -04:00
parent cb45af775f
commit c303decbc5
3 changed files with 13 additions and 5 deletions

View File

@@ -109,4 +109,12 @@ public class LocalRegionNamespaceTest {
assertEquals("existing", TestUtils.readField("name", lfb));
assertEquals(existing, context.getBean("lookup"));
}
@SuppressWarnings("rawtypes")
@Test
public void testLocalPersistent() {
Region region = context.getBean("persistent", Region.class);
RegionAttributes attrs = region.getAttributes();
assertTrue(attrs.getDataPolicy().withPersistence());
}
}