MultiTsData implements IProcResults { @Override public <T> T getData(String id, Class<T> tclass) { if (!tclass.equals(TsData.class)) { return null; } int i = decode(id); if (i < 0) { return null; } return (T) ts[i]; } MultiTsData(String name, TsData[] ts); String getName(); TsData[] getSeries(); @Override boolean contains(String id); @Override Map<String, Class> getDictionary(); @Override T getData(String id, Class<T> tclass); @Override List<ProcessingInformation> getProcessingInformation();  }
@Test public void testgetData() { Map<String, Class> dictionary = data.getDictionary(); dictionary.forEach((s, c) -> assertTrue(data.getData(s, c) != null)); }