use of com.spectralogic.ds3autogen.java.models.Command in project ds3_autogen by SpectraLogic.
the class ClientConverter_Test method toCommand_EmptyDocSped_Test.
@Test
public void toCommand_EmptyDocSped_Test() {
final Command result = toCommand(getTestRequest(), new Ds3DocSpecEmptyImpl());
assertThat(result.getName(), is("Test"));
assertThat(result.getRequestName(), is("TestRequest"));
assertThat(result.getResponseName(), is("TestResponse"));
assertThat(result.getDocumentation(), is(""));
assertThat(result.getAnnotationInfo(), is(nullValue()));
}
use of com.spectralogic.ds3autogen.java.models.Command in project ds3_autogen by SpectraLogic.
the class ClientConverter_Test method toCommand_Test.
@Test
public void toCommand_Test() {
final String expectedDocs = "/**\n" + " * This is how you use test request\n" + " */";
final Command result = toCommand(getTestRequest(), getTestDocSpec());
assertThat(result.getName(), is("Test"));
assertThat(result.getRequestName(), is("TestRequest"));
assertThat(result.getResponseName(), is("TestResponse"));
assertThat(result.getDocumentation(), is(expectedDocs));
assertThat(result.getAnnotationInfo(), is(nullValue()));
}
Aggregations