Package com.google.api.explorer.client.base.mock

Examples of com.google.api.explorer.client.base.mock.MockApiMethod


  @Override
  public void gwtSetUp() {
    schemaForm = new SchemaForm();
    schemaForm.setSchema(
        new MockApiService(), new MockApiMethod(), CustomSchema.objectSchema(null, null, false));
  }
View Full Code Here


  public void testDataBinding() {
    Map<String, Schema> properties =
        ImmutableMap.of("oneProp", CustomSchema.lockedStringField(null));
    Schema simpleSchema = CustomSchema.objectSchema(properties, null, false);

    ApiMethod apiMethodWithSchema = new MockApiMethod();
    mockService.schemaForMethod.put(apiMethodWithSchema, simpleSchema);

    ApiMethod apiMethodWithoutSchema = new MockApiMethod();
    mockService.schemaForMethod.put(apiMethodWithoutSchema, null);

    // Set the first method and some data in the editors.
    form.setContent(mockService, apiMethodWithSchema, simpleSchema, "");
    String value = "{\n  \"oneProp\": \"oneValue\"\n}";
View Full Code Here

TOP

Related Classes of com.google.api.explorer.client.base.mock.MockApiMethod

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.