@Test public void generateFilename() { final PatternNamingScheme namingScheme = new PatternNamingScheme(pattern, mockCounter, mockFileNamingScheme); final String actual = namingScheme.generate("feature_file"); assertThat(actual).isEqualTo(output); }
public String generate(final String featureFileName) { String className = pattern.replace("{f}", featureFileNamingScheme.generate(featureFileName)); className = className.replace("{c}", String.format("%02d", counter.next())); return className; }
PatternNamingScheme implements ClassNamingScheme { public String generate(final String featureFileName) { String className = pattern.replace("{f}", featureFileNamingScheme.generate(featureFileName)); className = className.replace("{c}", String.format("%02d", counter.next())); return className; } }
PatternNamingScheme implements ClassNamingScheme { public String generate(final String featureFileName) { String className = pattern.replace("{f}", featureFileNamingScheme.generate(featureFileName)); className = className.replace("{c}", String.format("%02d", counter.next())); return className; } PatternNamingScheme(final String pattern, final Counter counter,
			final ClassNamingScheme featureFileNamingScheme); }
PatternNamingScheme implements ClassNamingScheme { public String generate(final String featureFileName) { String className = pattern.replace("{f}", featureFileNamingScheme.generate(featureFileName)); className = className.replace("{c}", String.format("%02d", counter.next())); return className; } PatternNamingScheme(final String pattern, final Counter counter,
			final ClassNamingScheme featureFileNamingScheme); String generate(final String featureFileName); }
PatternNamingScheme implements ClassNamingScheme { public String generate(final String featureFileName) { String className = pattern.replace("{f}", featureFileNamingScheme.generate(featureFileName)); className = className.replace("{c}", String.format("%02d", counter.next())); return className; } PatternNamingScheme(final String pattern, final Counter counter,
			final ClassNamingScheme featureFileNamingScheme); String generate(final String featureFileName);  }