Exemplo n.º 1
0
 @Test
 public void parserShouldComplyWithSpecs() throws ParseException {
   Parser parser = new Parser(testCase.getTemplate(), testCase.getData(), this);
   Assert.assertEquals(testCase.toString(), testCase.getExpected(), parser.merge());
 }
Exemplo n.º 2
0
 /**
  * Parse a text-format message from {@code input} and merge the contents
  * into {@code builder}.  Extensions will be recognized if they are
  * registered in {@code extensionRegistry}.
  */
 public static void merge(final CharSequence input,
                          final ExtensionRegistry extensionRegistry,
                          final Message.Builder builder)
                          throws ParseException {
   PARSER.merge(input, extensionRegistry, builder);
 }
Exemplo n.º 3
0
 /**
  * Parse a text-format message from {@code input} and merge the contents
  * into {@code builder}.
  */
 public static void merge(final CharSequence input,
                          final Message.Builder builder)
                          throws ParseException {
   PARSER.merge(input, builder);
 }
Exemplo n.º 4
0
 /**
  * Parse a text-format message from {@code input} and merge the contents
  * into {@code builder}.  Extensions will be recognized if they are
  * registered in {@code extensionRegistry}.
  */
 public static void merge(final Readable input,
                          final ExtensionRegistry extensionRegistry,
                          final Message.Builder builder)
                          throws IOException {
   PARSER.merge(input, extensionRegistry, builder);
 }
Exemplo n.º 5
0
 /**
  * Parse a text-format message from {@code input} and merge the contents
  * into {@code builder}.
  */
 public static void merge(final Readable input,
                          final Message.Builder builder)
                          throws IOException {
   PARSER.merge(input, builder);
 }