MondrianFlushCacheComponent extends ComponentBase { public boolean executeAction() { MDXLookupRule mdxLookupRule = getLookupRule(); Connection conn = ( (MDXConnection) mdxLookupRule.shareConnection() ).getConnection(); CacheControl cacheControl = conn.getCacheControl( null ); Cube[] cubes = conn.getSchema().getCubes(); for ( Cube cube : cubes ) { cacheControl.flush( cacheControl.createMeasuresRegion( cube ) ); } cacheControl.flushSchema( conn.getSchema() ); return true; }  boolean executeAction(); @Override void done(); @Override boolean init(); @Override Log getLogger(); MDXLookupRule getLookupRule();  }
@Test public void testExecuteAction() { assertEquals( true, mfcc.executeAction() ); }