@Test public void defaultUserName() throws Exception { final String[] data = { "io.fabric8", "fabric8", "io.FABRIC8", "fabric8", "io.fabric8.", "fabric8", "io.fabric8", "fabric8", "fabric8....", "fabric8", "io.fabric8___", "fabric8__" }; for (int i = 0; i < data.length; i+=2) { final int finalI = i; new Expectations() {{ project.getProperties(); result = new Properties(); project.getGroupId(); result = data[finalI]; }}; String value = formatter.format("%g"); assertThat("Idx. " + i / 2,value, equalTo(data[i+1])); } }
@Override public String format(String name) { if (name == null) { return null; } return formatParamReplacer.replace(name); }
ImageNameFormatter implements ConfigHelper.NameFormatter { @Override public String format(String name) { if (name == null) { return null; } return formatParamReplacer.replace(name); } }
ImageNameFormatter implements ConfigHelper.NameFormatter { @Override public String format(String name) { if (name == null) { return null; } return formatParamReplacer.replace(name); } ImageNameFormatter(MavenProject project, Date now); }
ImageNameFormatter implements ConfigHelper.NameFormatter { @Override public String format(String name) { if (name == null) { return null; } return formatParamReplacer.replace(name); } ImageNameFormatter(MavenProject project, Date now); @Override String format(String name); }
ImageNameFormatter implements ConfigHelper.NameFormatter { @Override public String format(String name) { if (name == null) { return null; } return formatParamReplacer.replace(name); } ImageNameFormatter(MavenProject project, Date now); @Override String format(String name);  }