assertEquals(5, caChildren.size());
// Load cell data and check it is in cache
executeQuery(
"select {[Measures].[Unit Sales]} on columns, {[Retail].[CA].[Alameda]} on rows from [Sales]");
final AggregationManager aggMgr =
((RolapConnection) conn).getServer().getAggregationManager();
assertEquals(
Double.valueOf("2117"),
aggMgr.getCellFromAllCaches(
AggregationManager.makeRequest(cacheRegionMembers)));
// Now tell the cache that [CA].[San Francisco] has been removed.
final CacheControl.MemberEditCommand command =
cc.createDeleteCommand(sfCubeMember);
cc.execute(command);
// Children of CA should be 4
assertEquals(
4,
memberCache.getChildrenFromCache(caMember, null).size());
// test that cells have been removed
assertNull(
aggMgr.getCellFromAllCaches(
AggregationManager.makeRequest(cacheRegionMembers)));
// The list of children should be updated.
tc.assertAxisReturns(
"[Retail].[CA].Children",