@@ -0,0 +1,2207 @@
+package hu.supercluster.overpasser.library.query;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.util.Arrays;%0Aimport java.util.HashSet;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class OverpassQueryBuilderTest %7B%0A    OverpassQueryBuilder queryBuilder;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        queryBuilder = new OverpassQueryBuilder();%0A    %7D%0A%0A    @Test%0A    public void testBuild() throws Exception %7B%0A        final String s = queryBuilder.build();%0A%0A        assertEquals(%22%22, s);%0A    %7D%0A%0A    @Test%0A    public void testAppend() throws Exception %7B%0A        queryBuilder.append(%22foo%22);%0A%0A        assertEquals(%22foo%22, queryBuilder.build());%0A    %7D%0A%0A    @Test%0A    public void testBoundingBox() throws Exception %7B%0A        queryBuilder.boundingBox(1.01d, 2.002d, 3.003d, 4.0004d);%0A%0A        assertEquals(%22(1.01,2.002,3.003,4.0004)%22, queryBuilder.build());%0A    %7D%0A%0A    @Test%0A    public void testStandaloneParam() throws Exception %7B%0A        queryBuilder.standaloneParam(%22foo%22);%0A%0A        assertEquals(%22%5B%5C%22foo%5C%22%5D%22, queryBuilder.build());%0A    %7D%0A%0A    @Test%0A    public void testClause() throws Exception %7B%0A        queryBuilder.standaloneParam(%22foo%22);%0A%0A        assertEquals(%22%5B%5C%22foo%5C%22%5D%22, queryBuilder.build());%0A    %7D%0A%0A    @Test%0A    public void testEquals() throws Exception %7B%0A        queryBuilder.equals(%22foo%22, %22bar%22);%0A%0A        assertEquals(%22%5B%5C%22foo%5C%22=%5C%22bar%5C%22%5D%22, queryBuilder.build());%0A    %7D%0A%0A    @Test%0A    public void testMultipleValues() throws Exception %7B%0A        queryBuilder.multipleValues(%22foo%22, new HashSet%3C%3E(Arrays.asList(%22bar%22, %22baz%22)));%0A%0A        assertEquals(%22%5B%5C%22foo%5C%22~%5C%22bar%7Cbaz%5C%22%5D%22, queryBuilder.build());%0A    %7D%0A%0A    @Test%0A    public void testNotEquals() throws Exception %7B%0A        queryBuilder.notEquals(%22foo%22, %22bar%22);%0A%0A        assertEquals(%22%5B%5C%22foo%5C%22!=%5C%22bar%5C%22%5D%22, queryBuilder.build());%0A    %7D%0A%0A    @Test%0A    public void testRegexMatches() throws Exception %7B%0A        queryBuilder.regexMatches(%22foo%22, %22bar%22);%0A%0A        assertEquals(%22%5B%5C%22foo%5C%22~%5C%22bar%5C%22%5D%22, queryBuilder.build());%0A    %7D%0A%0A    @Test%0A    public void testRegexDoesntMatch() throws Exception %7B%0A        queryBuilder.regexDoesntMatch(%22foo%22, %22bar%22);%0A%0A        assertEquals(%22%5B%5C%22foo%5C%22!~%5C%22bar%5C%22%5D%22, queryBuilder.build());%0A    %7D%0A%7D

Add OverpassQueryBuilderTest