Package com.google.eclipse.protobuf.protobuf

Examples of com.google.eclipse.protobuf.protobuf.Service


  // syntax = "proto2";
  //
  // service CallServer {}
  @Test public void should_return_name_of_Service() {
    Service service = xtext.find("CallServer", Service.class);
    String name = resolver.nameOf(service);
    assertThat(name, equalTo("CallServer"));
  }
View Full Code Here


  // syntax = "proto2";
  //
  // service PersonService {}
  @Test public void should_return_label_for_service() {
    Service service = xtext.findFirst(Service.class);
    Object label = labels.labelFor(service);
    assertThat(label, instanceOf(String.class));
    String labelText = (String) label;
    assertThat(labelText, equalTo("PersonService"));
  }
View Full Code Here

  //
  // service PersonService {
  //   rpc PersonRpc (Person) returns (Person);
  // }
  @Test public void should_return_image_for_service() {
    Service service = xtext.findFirst(Service.class);
    String image = images.imageFor(service);
    assertThat(image, equalTo("service.gif"));
    assertThat(image, existsInProject());
  }
View Full Code Here

TOP

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

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.