/** * Sets up the fixture, for example, open a network connection. This method is called before a * test is executed. */ protected void setUp() throws Exception { super.setUp(); cacheModel = new CacheModel(); ibatisCacheFactory = new TestIbatisCacheFactory(); controller = new IBatisCacheController(ibatisCacheFactory); controller.configure(makeConfigurationProperties()); controller.flush(cacheModel); assertEquals(0, controller.size()); }