We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Purpose: to replace certain test blocks through the fluent API.
Text file testNote.xml
<note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>{note_body}</body> </note>
TestFile class
@Getter @Setter @Accessors(chain = true, fluent = true) public class NoteFile extends TestFile { public NoteFile() { super("testNote.xml"); } @Replace("{note_body}") private String body; }
Usage: API_CLI.addNote(new NoteFile().body("fooBar"));
API_CLI.addNote(new NoteFile().body("fooBar"));
The text was updated successfully, but these errors were encountered:
Template
@TemplateSource(type = RESOURCE, path = "Notes.xml") public static final class Notes { @TemplateReplaceAll(regex = "\\[note.to]") private String to; @TemplateReplaceAll(regex = "replace_note_from") private String from; @TemplateReplaceAll(regex = "\\{note_body_content}") private String bodyContent; }
@TemplateSource.path
@TemplateSource.type
@TemplateSource.charset
Add TemplateSourceConverter for requests. Register TemplateSourceConverter for @TemplateSource annotation
TemplateSourceConverter
@TemplateSource
Usage
final Notes notes = new Notes().to("1").from("2").bodyContent("3"); CLIENT.apiMethodPostCall(notes)
Sorry, something went wrong.
shaburov
Successfully merging a pull request may close this issue.
Purpose: to replace certain test blocks through the fluent API.
Text file testNote.xml
TestFile class
Usage:
API_CLI.addNote(new NoteFile().body("fooBar"));
The text was updated successfully, but these errors were encountered: