OverpassQueryBuilderImpl implements OverpassQueryBuilder { @Override public OverpassQueryBuilder regexDoesntMatch(String name, String value) { return paramRel(name, "!~", value); } OverpassQueryBuilderImpl(); @Override OverpassQueryBuilder append(String statement); @Override OverpassQueryBuilder boundingBox(double lat1, double lon1, double lat2, double lon2); @Override OverpassQueryBuilder around(double radius); @Override OverpassQueryBuilder around(double radius, double lat, double lon); @Override OverpassQueryBuilder setting(String name, String value); @Override OverpassQueryBuilder standaloneParam(String name); @Override OverpassQueryBuilder clause(String name, String value); @Override OverpassQueryBuilder equals(String name, String value); @Override OverpassQueryBuilder notEquals(String name, String value); @Override OverpassQueryBuilder regexMatches(String name, String value); @Override OverpassQueryBuilder regexDoesntMatch(String name, String value); @Override OverpassQueryBuilder multipleValues(String name, Set<String> values); @Override String build();  }
@Test public void testRegexDoesntMatch() throws Exception { queryBuilder.regexDoesntMatch("foo", "bar"); assertEquals("[\"foo\"!~\"bar\"]", queryBuilder.build()); }