@Test public void generatePrefixFromBuildVersion() { Properties buildProperties = new Properties(); buildProperties.put("version", "1.0.0"); PrefixedKeyGenerator prefixedKeyGenerator = new PrefixedKeyGenerator(null, new BuildProperties(buildProperties)); assertThat(prefixedKeyGenerator.getPrefix()).isEqualTo("1.0.0"); }
String getPrefix() { return this.prefix; }
PrefixedKeyGenerator implements KeyGenerator { String getPrefix() { return this.prefix; } }
PrefixedKeyGenerator implements KeyGenerator { String getPrefix() { return this.prefix; } PrefixedKeyGenerator(GitProperties gitProperties, BuildProperties buildProperties); }
PrefixedKeyGenerator implements KeyGenerator { String getPrefix() { return this.prefix; } PrefixedKeyGenerator(GitProperties gitProperties, BuildProperties buildProperties); @Override Object generate(Object target, Method method, Object... params); }
PrefixedKeyGenerator implements KeyGenerator { String getPrefix() { return this.prefix; } PrefixedKeyGenerator(GitProperties gitProperties, BuildProperties buildProperties); @Override Object generate(Object target, Method method, Object... params);  }