assertEquals("prod value", config.evaluateToString("stagedKey"));
}
@Test
public void whenResetingTagsItResolvesBackToOriginalTags() {
ConstrettoConfiguration configuration = new ConstrettoBuilder()
.createPropertiesStore().addResource(new ClassPathResource("dynamic.properties")).done()
.addCurrentTag("test")
.getConfiguration();
assertEquals("test value", configuration.evaluateToString("stagedKey"));
configuration.prependTag("prod");
assertEquals("prod value", configuration.evaluateToString("stagedKey"));
configuration.resetTags(true);
assertEquals("test value", configuration.evaluateToString("stagedKey"));
}