@Test public void testGetCurrentSenderValue() throws ColumnNotFoundException, SenderException { assertThrows(ColumnNotFoundException.class, () -> service.getCurrentSenderValue("unknown")); assertEquals(first.get("column"), service.getCurrentSenderValue("column")); service.selectedSender.dataset = null; assertEquals("", service.getCurrentSenderValue("column")); }
public String getCurrentSenderValue(String column) throws SenderException, ColumnNotFoundException { if (!getSchema().contains(column)) { throw new ColumnNotFoundException("Spalte existiert nicht"); } String value = getSelectedDatasetTransformed().get(column); if (value == null) value = ""; return value; }
SenderService implements XPALProvider { public String getCurrentSenderValue(String column) throws SenderException, ColumnNotFoundException { if (!getSchema().contains(column)) { throw new ColumnNotFoundException("Spalte existiert nicht"); } String value = getSelectedDatasetTransformed().get(column); if (value == null) value = ""; return value; } }
SenderService implements XPALProvider { public String getCurrentSenderValue(String column) throws SenderException, ColumnNotFoundException { if (!getSchema().contains(column)) { throw new ColumnNotFoundException("Spalte existiert nicht"); } String value = getSelectedDatasetTransformed().get(column); if (value == null) value = ""; return value; } SenderService(Datasource mainDatasource, ColumnTransformer columnTransformer,
      SenderCache cache, String overrideFragDbSpalte); }
SenderService implements XPALProvider { public String getCurrentSenderValue(String column) throws SenderException, ColumnNotFoundException { if (!getSchema().contains(column)) { throw new ColumnNotFoundException("Spalte existiert nicht"); } String value = getSelectedDatasetTransformed().get(column); if (value == null) value = ""; return value; } 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 String getCurrentSenderValue(String column) throws SenderException, ColumnNotFoundException { if (!getSchema().contains(column)) { throw new ColumnNotFoundException("Spalte existiert nicht"); } String value = getSelectedDatasetTransformed().get(column); if (value == null) value = ""; return value; } 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; }