@Test @SuppressWarnings("PMD.AvoidDuplicateLiterals") public void java() { MatcherAssert.assertThat( new Ctor( new StickyList<>( new Parameter("name", "Text"), new Parameter("age", "Int") ), new StickyList<>( new Argument.Fake("name"), new Argument.Fake("age"), new Argument.Fake("new color(\"black\")") ) ).java("cat"), Matchers.stringContainsInOrder( new StickyList<>( "public", "cat(", "final Text name,", "final Int age", ")", "{", "this(", "name,", "age,", "new color(\"black\")", ")", "}" ) ) ); }
public String java(final String name) { return new UncheckedText( new FormattedText(this.template, name) ).asString(); }
Ctor { public String java(final String name) { return new UncheckedText( new FormattedText(this.template, name) ).asString(); } }
Ctor { public String java(final String name) { return new UncheckedText( new FormattedText(this.template, name) ).asString(); } Ctor(
        final List<Parameter> parameters,
        final Collection<Argument> arguments
    ); }
Ctor { public String java(final String name) { return new UncheckedText( new FormattedText(this.template, name) ).asString(); } Ctor(
        final List<Parameter> parameters,
        final Collection<Argument> arguments
    ); String java(final String name); }
Ctor { public String java(final String name) { return new UncheckedText( new FormattedText(this.template, name) ).asString(); } Ctor(
        final List<Parameter> parameters,
        final Collection<Argument> arguments
    ); String java(final String name);  }