Пример #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());
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }