@Test public void testGetResources() throws Exception { ViewConfig config = getConfig(); List<ResourceConfig> resources = config.getResources(); Assert.assertEquals(2, resources.size()); Assert.assertEquals("resource", resources.get(0).getName()); Assert.assertEquals("subresource", resources.get(1).getName()); config = getConfig(minimal_xml); resources = config.getResources(); Assert.assertNotNull(resources); Assert.assertEquals(0, resources.size()); }
public List<ResourceConfig> getResources() { return resources == null ? Collections.<ResourceConfig>emptyList() : resources; }
ViewConfig { public List<ResourceConfig> getResources() { return resources == null ? Collections.<ResourceConfig>emptyList() : resources; } }
ViewConfig { public List<ResourceConfig> getResources() { return resources == null ? Collections.<ResourceConfig>emptyList() : resources; }  }
ViewConfig { public List<ResourceConfig> getResources() { return resources == null ? Collections.<ResourceConfig>emptyList() : resources; }  String getName(); String getLabel(); String getDescription(); String getVersion(); String getBuild(); String getMinAmbariVersion(); String getMaxAmbariVersion(); String getIcon(); String getIcon64(); boolean isSystem(); String getExtraClasspath(); String getView(); Class<? extends View> getViewClass(ClassLoader cl); String getDataMigrator(); Class<? extends ViewDataMigrator> getDataMigratorClass(ClassLoader cl); int getDataVersion(); String getValidator(); Class<? extends Validator> getValidatorClass(ClassLoader cl); String getMasker(); Class<? extends Masker> getMaskerClass(ClassLoader cl); List<ParameterConfig> getParameters(); List<ResourceConfig> getResources(); AutoInstanceConfig getAutoInstance(); List<InstanceConfig> getInstances(); PersistenceConfig getPersistence(); List<PermissionConfig> getPermissions(); String getClusterConfigOptions(); }
ViewConfig { public List<ResourceConfig> getResources() { return resources == null ? Collections.<ResourceConfig>emptyList() : resources; }  String getName(); String getLabel(); String getDescription(); String getVersion(); String getBuild(); String getMinAmbariVersion(); String getMaxAmbariVersion(); String getIcon(); String getIcon64(); boolean isSystem(); String getExtraClasspath(); String getView(); Class<? extends View> getViewClass(ClassLoader cl); String getDataMigrator(); Class<? extends ViewDataMigrator> getDataMigratorClass(ClassLoader cl); int getDataVersion(); String getValidator(); Class<? extends Validator> getValidatorClass(ClassLoader cl); String getMasker(); Class<? extends Masker> getMaskerClass(ClassLoader cl); List<ParameterConfig> getParameters(); List<ResourceConfig> getResources(); AutoInstanceConfig getAutoInstance(); List<InstanceConfig> getInstances(); PersistenceConfig getPersistence(); List<PermissionConfig> getPermissions(); String getClusterConfigOptions();  }