@Test public void classPath() { final String name = "Book"; MatcherAssert.assertThat( new JavaClass( name, new StickyList<>("Text"), new ObjectBody( new StickyList<>(), new StickyList<>(), new StickyList<>() ) ).path(), Matchers.equalTo( new UncheckedText( new FormattedText( "%s.java", name ) ).asString() ) ); }
@Override public String path() { return new UncheckedText( new FormattedText("%s.java", this.name) ).asString(); }
JavaClass implements JavaFile { @Override public String path() { return new UncheckedText( new FormattedText("%s.java", this.name) ).asString(); } }
JavaClass implements JavaFile { @Override public String path() { return new UncheckedText( new FormattedText("%s.java", this.name) ).asString(); } @SuppressWarnings("checkstyle:parameternumbercheck")  JavaClass(final String name, final Collection<String> ifaces,
        final ObjectBody body); }
JavaClass implements JavaFile { @Override public String path() { return new UncheckedText( new FormattedText("%s.java", this.name) ).asString(); } @SuppressWarnings("checkstyle:parameternumbercheck")  JavaClass(final String name, final Collection<String> ifaces,
        final ObjectBody body); @Override String path(); @Override Input code(); }
JavaClass implements JavaFile { @Override public String path() { return new UncheckedText( new FormattedText("%s.java", this.name) ).asString(); } @SuppressWarnings("checkstyle:parameternumbercheck")  JavaClass(final String name, final Collection<String> ifaces,
        final ObjectBody body); @Override String path(); @Override Input code();  }