MemorizeSchedulingLocationListener { public void shutdown() { this.locationMap.clear(); }  void recordOutputFile( final PentahoAsyncExecutor.CompositeKey key, final Serializable fileId ); Serializable lookupOutputFile( final PentahoAsyncExecutor.CompositeKey key ); void shutdown(); void onLogout( final String sessionId ); void lock(); void unlock();  }
@Test public void testShutdown() throws Exception { final MemorizeSchedulingLocationListener memorizeSchedulingLocationListener = new MemorizeSchedulingLocationListener(); final PentahoAsyncExecutor.CompositeKey mock = mock( PentahoAsyncExecutor.CompositeKey.class ); final String path = "test.prpt"; memorizeSchedulingLocationListener.recordOutputFile( mock, path ); assertEquals( path, memorizeSchedulingLocationListener.lookupOutputFile( mock ) ); memorizeSchedulingLocationListener.shutdown(); assertNull( memorizeSchedulingLocationListener.lookupOutputFile( mock ) ); }