@Test public void testFullyQualifiedName() { String script = "script"; FixNameStrategy nameStrategy = new FixNameStrategy("com.example.Test"); String fullName = nameStrategy.getFullName(script); assertThat(fullName).isEqualTo("com.example.Test"); assertThat(NameStrategy.extractSimpleName(fullName)).isEqualTo("Test"); assertThat(NameStrategy.extractPackageName(fullName)).isEqualTo("com.example"); }
@Override public String getFullName(String script) { return fullName; }
FixNameStrategy implements NameStrategy { @Override public String getFullName(String script) { return fullName; } }
FixNameStrategy implements NameStrategy { @Override public String getFullName(String script) { return fullName; } FixNameStrategy(String fullName); }
FixNameStrategy implements NameStrategy { @Override public String getFullName(String script) { return fullName; } FixNameStrategy(String fullName); @Override String getFullName(String script); }
FixNameStrategy implements NameStrategy { @Override public String getFullName(String script) { return fullName; } FixNameStrategy(String fullName); @Override String getFullName(String script);  }