@Test public void testData() throws URISyntaxException { FileCache cache = new FileCache(Paths.get(file.toURI()).toFile(), null); List<SenderConf> dataList = cache.getData(); assertEquals(1, dataList.size()); SenderConf data = dataList.get(0); assertEquals("ds", data.getKey()); assertEquals(Map.of("column", "value1", "column2", "value2"), data.getCachedValues()); assertEquals(Map.of("column2", "override2"), data.getOverriddenValues()); }
@Override public List<SenderConf> getData() { return data; }
FileCache implements SenderCache { @Override public List<SenderConf> getData() { return data; } }
FileCache implements SenderCache { @Override public List<SenderConf> getData() { return data; } FileCache(File cacheFile, URL context); }
FileCache implements SenderCache { @Override public List<SenderConf> getData() { return data; } FileCache(File cacheFile, URL context); @Override List<String> getSchema(); @Override int getSelectedSameKeyIndex(); @Override String getSelectedKey(); @Override List<SenderConf> getData(); @Override void updateContent(EventObject event); @Override void disposing(EventObject event); }
FileCache implements SenderCache { @Override public List<SenderConf> getData() { return data; } FileCache(File cacheFile, URL context); @Override List<String> getSchema(); @Override int getSelectedSameKeyIndex(); @Override String getSelectedKey(); @Override List<SenderConf> getData(); @Override void updateContent(EventObject event); @Override void disposing(EventObject event);  }