@Test public void testIsValid() { assertTrue(config.isValid()); assertFalse(invalidConfig.isValid()); }
@Override public boolean isValid() { try { getXconnects().forEach(this::getPorts); } catch (IllegalArgumentException e) { return false; } return true; }
XConnectConfig extends Config<ApplicationId> { @Override public boolean isValid() { try { getXconnects().forEach(this::getPorts); } catch (IllegalArgumentException e) { return false; } return true; } }
XConnectConfig extends Config<ApplicationId> { @Override public boolean isValid() { try { getXconnects().forEach(this::getPorts); } catch (IllegalArgumentException e) { return false; } return true; }  }
XConnectConfig extends Config<ApplicationId> { @Override public boolean isValid() { try { getXconnects().forEach(this::getPorts); } catch (IllegalArgumentException e) { return false; } return true; }  @Override boolean isValid(); Set<XConnectStoreKey> getXconnects(); Set<XConnectStoreKey> getXconnects(DeviceId deviceId); Set<PortNumber> getPorts(XConnectStoreKey xconnect); }
XConnectConfig extends Config<ApplicationId> { @Override public boolean isValid() { try { getXconnects().forEach(this::getPorts); } catch (IllegalArgumentException e) { return false; } return true; }  @Override boolean isValid(); Set<XConnectStoreKey> getXconnects(); Set<XConnectStoreKey> getXconnects(DeviceId deviceId); Set<PortNumber> getPorts(XConnectStoreKey xconnect);  }