@Test public void testAsSandboxTypeStatic() { AddServerOptions options = asSandboxType(); assertEquals(options.buildQueryParameters().get("isSandbox"), ImmutableList.of("true")); }
@Test public void testWithDescriptionStatic() { AddServerOptions options = withDescription("test"); assertEquals(options.buildQueryParameters().get("description"), ImmutableList.of("test")); }
@Test public void testNullWithDescription() { AddServerOptions options = new AddServerOptions(); assertEquals(options.buildQueryParameters().get("description"), ImmutableList.of()); }
@Test public void testWithDescriptionStatic() { AddServerOptions options = withDescription("test"); assertEquals(options.buildQueryParameters().get("description"), ImmutableList.of("test")); }
@Test public void testAsSandboxTypeStatic() { AddServerOptions options = asSandboxType(); assertEquals(options.buildQueryParameters().get("isSandbox"), ImmutableList.of("true")); }
@Test public void testNullWithDescription() { AddServerOptions options = new AddServerOptions(); assertEquals(options.buildQueryParameters().get("description"), ImmutableList.of()); }
@Test public void testWith500LengthDescription() { AddServerOptions options = new AddServerOptions(); StringBuilder builder = new StringBuilder(); for (int i = 0; i < 1 * 500; i++) builder.append('a'); String description = builder.toString(); options.withDescription(description); assertEquals(options.buildQueryParameters().get("description"), ImmutableList.of(description)); }
@Test public void testAsSandboxType() { AddServerOptions options = new AddServerOptions(); options.asSandboxType(); assertEquals(options.buildQueryParameters().get("isSandbox"), ImmutableList.of("true")); }
@Test public void testWith500LengthDescription() { AddServerOptions options = new AddServerOptions(); StringBuilder builder = new StringBuilder(); for (int i = 0; i < 1 * 500; i++) builder.append('a'); String description = builder.toString(); options.withDescription(description); assertEquals(options.buildQueryParameters().get("description"), ImmutableList.of(description)); }
@Test public void testAsSandboxType() { AddServerOptions options = new AddServerOptions(); options.asSandboxType(); assertEquals(options.buildQueryParameters().get("isSandbox"), ImmutableList.of("true")); }
@Test public void testWithDescription() { AddServerOptions options = new AddServerOptions(); options.withDescription("test"); assertEquals(options.buildQueryParameters().get("description"), ImmutableList.of("test")); }
@Test public void testWithDescription() { AddServerOptions options = new AddServerOptions(); options.withDescription("test"); assertEquals(options.buildQueryParameters().get("description"), ImmutableList.of("test")); }