.getServers() : null; if (servers != null && !servers.isEmpty())
: null; List<Server> servers = dataStore != null && dataStore.getConnection() != null ? dataStore.getConnection() .getServers() : null;
public List<Server> getConnectionServers() { DataStore ds = getDataStore(dataStoreName); List<Server> servers = new ArrayList<Server>(); if (ds != null && ds.getConnection() != null) { servers = ds.getConnection().getServers(); return servers; } return servers; }
.getServers() : null; if (servers != null && !servers.isEmpty())
public List<Server> getConnectionServers() { DataStore ds = getDataStore(dataStoreName); List<Server> servers = new ArrayList<Server>(); if (ds != null && ds.getConnection() != null) { servers = ds.getConnection().getServers(); return servers; } return servers; } }
Assert.assertNotNull(store.getConnection()); Assert.assertNotNull(store.getConnection().getProperties()); Assert.assertNull(store.getConnection().getServers()); Assert.assertEquals(2, store.getConnection().getProperties().size()); Assert.assertNotNull(store.getConnection().getProperties()); Assert.assertEquals(2, store.getConnection().getProperties().size()); Assert.assertNotNull(store.getConnection().getServers()); Assert.assertEquals(2, store.getConnection().getServers().size());
public List<Server> getConnectionServers() { DataStore ds = getDataStore(); List<Server> servers = new ArrayList<Server>(); if (ds != null && ds.getConnection() != null) { servers = ds.getConnection().getServers(); return servers; } return servers; } }