@Test public void testGetEntities() throws Exception { ViewConfig config = ViewConfigTest.getConfig(xml); PersistenceConfig persistenceConfig = config.getPersistence(); Assert.assertEquals(2, persistenceConfig.getEntities().size()); config = ViewConfigTest.getConfig(xml_no_entities); persistenceConfig = config.getPersistence(); Assert.assertTrue(persistenceConfig.getEntities().isEmpty()); config = ViewConfigTest.getConfig(xml_no_persistence); persistenceConfig = config.getPersistence(); Assert.assertTrue(persistenceConfig.getEntities().isEmpty()); }
public List<EntityConfig> getEntities() { return entities == null ? Collections.<EntityConfig>emptyList() : entities; }
PersistenceConfig { public List<EntityConfig> getEntities() { return entities == null ? Collections.<EntityConfig>emptyList() : entities; } }
PersistenceConfig { public List<EntityConfig> getEntities() { return entities == null ? Collections.<EntityConfig>emptyList() : entities; }  }
PersistenceConfig { public List<EntityConfig> getEntities() { return entities == null ? Collections.<EntityConfig>emptyList() : entities; }  List<EntityConfig> getEntities(); }
PersistenceConfig { public List<EntityConfig> getEntities() { return entities == null ? Collections.<EntityConfig>emptyList() : entities; }  List<EntityConfig> getEntities();  }