@Test public void testLoadData() throws Exception { final Collection<HighlightData> data = dataStoreService.loadData(sBuild); assertThat(data.size(), is(TEST_MAP.size())); }
@Override public Collection<HighlightData> loadData(@NotNull SBuild sBuild) { final List<HighlightData> ret = new ArrayList<>(0); final CustomStorageMap customStorageMap = new CustomStorageMap(loadDataInternal(sBuild)); for (final String key : customStorageMap.keySet()) { final String[] keyData = parseData(key); ret.add(new HighlightData(keyData[KEY_INDEX], customStorageMap.getAsList(key), valueOfOrDefault(keyData[LEVEL_INDEX], Level.class, Level.info), valueOfOrDefault(keyData[BLOCK_INDEX], Block.class, Block.expanded), valueOfOrDefault(keyData[ORDER_INDEX], Order.class, Order.none))); } return ret; }
TeamCityCustomDataStoreService implements DataStoreService<HighlightData> { @Override public Collection<HighlightData> loadData(@NotNull SBuild sBuild) { final List<HighlightData> ret = new ArrayList<>(0); final CustomStorageMap customStorageMap = new CustomStorageMap(loadDataInternal(sBuild)); for (final String key : customStorageMap.keySet()) { final String[] keyData = parseData(key); ret.add(new HighlightData(keyData[KEY_INDEX], customStorageMap.getAsList(key), valueOfOrDefault(keyData[LEVEL_INDEX], Level.class, Level.info), valueOfOrDefault(keyData[BLOCK_INDEX], Block.class, Block.expanded), valueOfOrDefault(keyData[ORDER_INDEX], Order.class, Order.none))); } return ret; } }
TeamCityCustomDataStoreService implements DataStoreService<HighlightData> { @Override public Collection<HighlightData> loadData(@NotNull SBuild sBuild) { final List<HighlightData> ret = new ArrayList<>(0); final CustomStorageMap customStorageMap = new CustomStorageMap(loadDataInternal(sBuild)); for (final String key : customStorageMap.keySet()) { final String[] keyData = parseData(key); ret.add(new HighlightData(keyData[KEY_INDEX], customStorageMap.getAsList(key), valueOfOrDefault(keyData[LEVEL_INDEX], Level.class, Level.info), valueOfOrDefault(keyData[BLOCK_INDEX], Block.class, Block.expanded), valueOfOrDefault(keyData[ORDER_INDEX], Order.class, Order.none))); } return ret; }  }
TeamCityCustomDataStoreService implements DataStoreService<HighlightData> { @Override public Collection<HighlightData> loadData(@NotNull SBuild sBuild) { final List<HighlightData> ret = new ArrayList<>(0); final CustomStorageMap customStorageMap = new CustomStorageMap(loadDataInternal(sBuild)); for (final String key : customStorageMap.keySet()) { final String[] keyData = parseData(key); ret.add(new HighlightData(keyData[KEY_INDEX], customStorageMap.getAsList(key), valueOfOrDefault(keyData[LEVEL_INDEX], Level.class, Level.info), valueOfOrDefault(keyData[BLOCK_INDEX], Block.class, Block.expanded), valueOfOrDefault(keyData[ORDER_INDEX], Order.class, Order.none))); } return ret; }  @Override void saveData(@NotNull SBuild sBuild, HighlightData data); @Override Collection<HighlightData> loadData(@NotNull SBuild sBuild); }
TeamCityCustomDataStoreService implements DataStoreService<HighlightData> { @Override public Collection<HighlightData> loadData(@NotNull SBuild sBuild) { final List<HighlightData> ret = new ArrayList<>(0); final CustomStorageMap customStorageMap = new CustomStorageMap(loadDataInternal(sBuild)); for (final String key : customStorageMap.keySet()) { final String[] keyData = parseData(key); ret.add(new HighlightData(keyData[KEY_INDEX], customStorageMap.getAsList(key), valueOfOrDefault(keyData[LEVEL_INDEX], Level.class, Level.info), valueOfOrDefault(keyData[BLOCK_INDEX], Block.class, Block.expanded), valueOfOrDefault(keyData[ORDER_INDEX], Order.class, Order.none))); } return ret; }  @Override void saveData(@NotNull SBuild sBuild, HighlightData data); @Override Collection<HighlightData> loadData(@NotNull SBuild sBuild);  }