@Test public void testGetCurrentSenderValues() { assertEquals(Map.of("column", "value1", "column2", "value2"), service.getCurrentSenderValues()); service.selectedSender.dataset = null; assertEquals(Collections.emptyMap(), service.getCurrentSenderValues()); service.selectedSender = null; assertEquals(Collections.emptyMap(), service.getCurrentSenderValues()); }
public Map<String, String> getCurrentSenderValues() { Map<String, String> values = new HashMap<>(); try { Sender ds = getSelectedDatasetTransformed(); getSchema().forEach(key -> { String val = ds.get(key); if (val != null) { values.put(key, val); } }); } catch (SenderException x) { LOGGER.trace("", x); } return values; }
SenderService implements XPALProvider { public Map<String, String> getCurrentSenderValues() { Map<String, String> values = new HashMap<>(); try { Sender ds = getSelectedDatasetTransformed(); getSchema().forEach(key -> { String val = ds.get(key); if (val != null) { values.put(key, val); } }); } catch (SenderException x) { LOGGER.trace("", x); } return values; } }
SenderService implements XPALProvider { public Map<String, String> getCurrentSenderValues() { Map<String, String> values = new HashMap<>(); try { Sender ds = getSelectedDatasetTransformed(); getSchema().forEach(key -> { String val = ds.get(key); if (val != null) { values.put(key, val); } }); } catch (SenderException x) { LOGGER.trace("", x); } return values; } SenderService(Datasource mainDatasource, ColumnTransformer columnTransformer,
      SenderCache cache, String overrideFragDbSpalte); }
SenderService implements XPALProvider { public Map<String, String> getCurrentSenderValues() { Map<String, String> values = new HashMap<>(); try { Sender ds = getSelectedDatasetTransformed(); getSchema().forEach(key -> { String val = ds.get(key); if (val != null) { values.put(key, val); } }); } catch (SenderException x) { LOGGER.trace("", x); } return values; } SenderService(Datasource mainDatasource, ColumnTransformer columnTransformer,
      SenderCache cache, String overrideFragDbSpalte); static SenderService getInstance(); @SuppressWarnings("java:S2629") long searchDefaultSender(); @Override String getCurrentSender(); void addPALChangeEventListener(XPALChangeEventListener listener); void removePALChangeEventListener(XPALChangeEventListener listener); @Override String[] getPALEntries(); void selectSender(String senderName, int idx); Map<String, String> getCurrentSenderValues(); String getCurrentSenderValue(String column); ConfigThingy getCurrentOverrideFragMap(); void showManageSenderListDialog(); void select(Sender sender); Sender createNewSender(); List<Sender> getSenderListSorted(String column); List<String> getSchema(); CompletableFuture<List<Sender>> find(Map<String, String> searchQuery); }
SenderService implements XPALProvider { public Map<String, String> getCurrentSenderValues() { Map<String, String> values = new HashMap<>(); try { Sender ds = getSelectedDatasetTransformed(); getSchema().forEach(key -> { String val = ds.get(key); if (val != null) { values.put(key, val); } }); } catch (SenderException x) { LOGGER.trace("", x); } return values; } SenderService(Datasource mainDatasource, ColumnTransformer columnTransformer,
      SenderCache cache, String overrideFragDbSpalte); static SenderService getInstance(); @SuppressWarnings("java:S2629") long searchDefaultSender(); @Override String getCurrentSender(); void addPALChangeEventListener(XPALChangeEventListener listener); void removePALChangeEventListener(XPALChangeEventListener listener); @Override String[] getPALEntries(); void selectSender(String senderName, int idx); Map<String, String> getCurrentSenderValues(); String getCurrentSenderValue(String column); ConfigThingy getCurrentOverrideFragMap(); void showManageSenderListDialog(); void select(Sender sender); Sender createNewSender(); List<Sender> getSenderListSorted(String column); List<String> getSchema(); CompletableFuture<List<Sender>> find(Map<String, String> searchQuery); static final String OVERRIDE_FRAG_DB_SPALTE; static final String SENDER_KEY_SEPARATOR; }