Search in sources :

Example 1 with Command

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()));
}
Also used : CustomCommand(com.spectralogic.ds3autogen.java.models.CustomCommand) Command(com.spectralogic.ds3autogen.java.models.Command) Ds3DocSpecEmptyImpl(com.spectralogic.ds3autogen.docspec.Ds3DocSpecEmptyImpl) Test(org.junit.Test)

Example 2 with Command

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()));
}
Also used : CustomCommand(com.spectralogic.ds3autogen.java.models.CustomCommand) Command(com.spectralogic.ds3autogen.java.models.Command) Test(org.junit.Test)

Aggregations

Command (com.spectralogic.ds3autogen.java.models.Command)2 CustomCommand (com.spectralogic.ds3autogen.java.models.CustomCommand)2 Test (org.junit.Test)2 Ds3DocSpecEmptyImpl (com.spectralogic.ds3autogen.docspec.Ds3DocSpecEmptyImpl)1