@Test public void testGetDataVersion() throws Exception { ViewConfig config = getConfig(); Assert.assertEquals(42, config.getDataVersion()); config = getConfig(minimal_xml); Assert.assertEquals(0, config.getDataVersion()); }
public int getDataVersion() { return (dataVersion == null) ? 0 : Integer.valueOf(dataVersion); }
ViewConfig { public int getDataVersion() { return (dataVersion == null) ? 0 : Integer.valueOf(dataVersion); } }
ViewConfig { public int getDataVersion() { return (dataVersion == null) ? 0 : Integer.valueOf(dataVersion); }  }
ViewConfig { public int getDataVersion() { return (dataVersion == null) ? 0 : Integer.valueOf(dataVersion); }  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 int getDataVersion() { return (dataVersion == null) ? 0 : Integer.valueOf(dataVersion); }  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();  }