@Test public void testInterfacePropertySpec() { assertThat( validateQuery(InterfacePropertySpecifier.DESCRIPTION, Type.INTERFACE_PROPERTY_SPEC), equalTo(new InputValidationNotes(Validity.VALID, ImmutableList.of()))); assertThat( validateQuery("dumdum", Type.INTERFACE_PROPERTY_SPEC), equalTo( new InputValidationNotes( Validity.INVALID, getErrorMessage(Grammar.INTERFACE_PROPERTY_SPECIFIER.getFriendlyName(), 6), 6))); }
public static String getErrorMessage(String grammarName, int startIndex) { return String.format("Cannot parse input as %s at index %d", grammarName, startIndex); }
InputValidationUtils { public static String getErrorMessage(String grammarName, int startIndex) { return String.format("Cannot parse input as %s at index %d", grammarName, startIndex); } }
InputValidationUtils { public static String getErrorMessage(String grammarName, int startIndex) { return String.format("Cannot parse input as %s at index %d", grammarName, startIndex); }  }
InputValidationUtils { public static String getErrorMessage(String grammarName, int startIndex) { return String.format("Cannot parse input as %s at index %d", grammarName, startIndex); }  @Nonnull static InputValidationNotes validate(
      Variable.Type varType,
      String query,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary); static String getErrorMessage(String grammarName, int startIndex); static String getErrorMessage(IllegalArgumentException exception); static String getErrorMessageEmptyNameRegex(String nameRegex, String nameType); static String getErrorMessageMissingName(String name, String nameType); static String getErrorMessageMissingGroup(
      String group, String groupType, String book, String bookType); static String getErrorMessageMissingBook(String book, String bookType); }
InputValidationUtils { public static String getErrorMessage(String grammarName, int startIndex) { return String.format("Cannot parse input as %s at index %d", grammarName, startIndex); }  @Nonnull static InputValidationNotes validate(
      Variable.Type varType,
      String query,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary); static String getErrorMessage(String grammarName, int startIndex); static String getErrorMessage(IllegalArgumentException exception); static String getErrorMessageEmptyNameRegex(String nameRegex, String nameType); static String getErrorMessageMissingName(String name, String nameType); static String getErrorMessageMissingGroup(
      String group, String groupType, String book, String bookType); static String getErrorMessageMissingBook(String book, String bookType);  }