Package com.google.eclipse.protobuf.protobuf

Examples of com.google.eclipse.protobuf.protobuf.CustomOption


  //   optional Custom custom = 1000;
  // }
  //
  // option (custom).count = 6;
  @Test public void should_return_option_field() {
    CustomOption option = xtext.find("custom", ")", CustomOption.class);
    List<OptionField> fields = option.getFields();
    assertThat(options.fieldsOf(option), equalTo(fields));
  }
View Full Code Here


  //   optional int32 info = 1001;
  // }
  //
  // option (code) = 68;
  @Test public void should_return_image_for_custom_option() {
    CustomOption option = xtext.find("code", ")", CustomOption.class);
    String image = images.imageFor(option);
    assertThat(image, equalTo("option.gif"));
    assertThat(image, existsInProject());
  }
View Full Code Here

  //   optional Custom custom = 1000;
  // }
  //
  // option (custom).count = 6;
  @Test public void should_return_option_field() {
    CustomOption option = xtext.find("custom", ")", CustomOption.class);
    MessageField field = (MessageField) options.sourceOfLastFieldIn(option);
    assertThat(field.getName(), equalTo("count"));
  }
View Full Code Here

TOP

Related Classes of com.google.eclipse.protobuf.protobuf.CustomOption

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.