@Test void properties_set_shouldOverrideValues() { Properties properties = new Properties(); properties.setProperty("management.metrics.export.cloudwatch.namespace", "test"); properties.setProperty("management.metrics.export.cloudwatch.batch-size", "5"); AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(); applicationContext.getEnvironment().getPropertySources() .addLast(new PropertiesPropertySource("test", properties)); applicationContext.register(CloudWatchPropertiesConfiguration.class); applicationContext.refresh(); CloudWatchProperties cloudWatchProperties = applicationContext .getBean(CloudWatchProperties.class); assertThat(cloudWatchProperties.getNamespace()).isEqualTo("test"); assertThat(cloudWatchProperties.getBatchSize()).isEqualTo(5); }
public String getNamespace() { return this.namespace; }
CloudWatchProperties extends StepRegistryProperties { public String getNamespace() { return this.namespace; } }
CloudWatchProperties extends StepRegistryProperties { public String getNamespace() { return this.namespace; } CloudWatchProperties(); }
CloudWatchProperties extends StepRegistryProperties { public String getNamespace() { return this.namespace; } CloudWatchProperties(); String getNamespace(); void setNamespace(String namespace); }
CloudWatchProperties extends StepRegistryProperties { public String getNamespace() { return this.namespace; } CloudWatchProperties(); String getNamespace(); void setNamespace(String namespace);  }