@Test public void generatePrefixFromShortCommitId() { Properties gitProperties = new Properties(); gitProperties.put("commit.id.abbrev", "1234"); PrefixedKeyGenerator prefixedKeyGenerator = new PrefixedKeyGenerator(new GitProperties(gitProperties), null); assertThat(prefixedKeyGenerator.getPrefix()).isEqualTo("1234"); }
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);  }