@Test public void generatesJavaCode() throws Exception { MatcherAssert.assertThat( new Parameter( "dollars", "Cash" ).java(), Matchers.is( "final Cash dollars" ) ); }
public String java() { return new UncheckedText( new FormattedText( "final %s %s", this.type, this.name ) ).asString(); }
Parameter { public String java() { return new UncheckedText( new FormattedText( "final %s %s", this.type, this.name ) ).asString(); } }
Parameter { public String java() { return new UncheckedText( new FormattedText( "final %s %s", this.type, this.name ) ).asString(); } Parameter(final String arg, final String type); }
Parameter { public String java() { return new UncheckedText( new FormattedText( "final %s %s", this.type, this.name ) ).asString(); } Parameter(final String arg, final String type); String java(); Iterable<Directive> xml(); }
Parameter { public String java() { return new UncheckedText( new FormattedText( "final %s %s", this.type, this.name ) ).asString(); } Parameter(final String arg, final String type); String java(); Iterable<Directive> xml();  }