use of com.spectralogic.ds3autogen.docspec.Ds3DocSpecEmptyImpl in project ds3_autogen by SpectraLogic.
the class NetDocGeneratorUtil_Test method toConstructorDocs_EmptyDocSpec_Test.
@Test
public void toConstructorDocs_EmptyDocSpec_Test() {
final String result = toConstructorDocs("RequestName", ImmutableList.of(), new Ds3DocSpecEmptyImpl(), 1);
assertThat(result, is(""));
}
use of com.spectralogic.ds3autogen.docspec.Ds3DocSpecEmptyImpl in project ds3_autogen by SpectraLogic.
the class NotificationRequestGenerator_Test method toConstructorList_Test.
@Test
public void toConstructorList_Test() {
final Ds3Request request = getRequestDeleteNotification();
final ImmutableList<RequestConstructor> result = generator.toConstructorList(request, "", new Ds3DocSpecEmptyImpl());
assertThat(result.size(), is(1));
final RequestConstructor constructor = result.get(0);
assertThat(constructor.getAdditionalLines().size(), is(0));
assertThat(constructor.isDeprecated(), is(false));
final ImmutableList<Arguments> constructorParams = constructor.getParameters();
assertThat(constructorParams.size(), is(1));
assertThat(constructorParams.get(0).getName(), is("NotificationId"));
assertThat(constructor.getAssignments().size(), is(0));
assertThat(constructor.getQueryParams().size(), is(0));
}
use of com.spectralogic.ds3autogen.docspec.Ds3DocSpecEmptyImpl in project ds3_autogen by SpectraLogic.
the class CommonRequestGeneratorUtils_Test method createInputStreamConstructor_Test.
@Test
public void createInputStreamConstructor_Test() {
final ImmutableList<Arguments> args = ImmutableList.of(new Arguments("Type1", "Arg1"));
final RequestConstructor result = createInputStreamConstructor(args, argsToQueryParams(args), "", new Ds3DocSpecEmptyImpl());
assertThat(result.getParameters().size(), is(2));
assertThat(result.getParameters().get(0).getName(), is("Arg1"));
assertThat(result.getParameters().get(1).getName(), is("Stream"));
assertThat(result.getAssignments().size(), is(2));
assertThat(result.getAssignments().get(0).getName(), is("Arg1"));
assertThat(result.getAssignments().get(1).getName(), is("Stream"));
assertThat(result.getQueryParams().size(), is(1));
assertThat(result.getQueryParams().get(0).getName(), is("Arg1"));
assertThat(result.getAdditionalLines().size(), is(0));
}
Aggregations