Ignore:
Timestamp:
2018-08-05T21:43:31+02:00 (3 years ago)
Author:
Don-vip
Message:

drop unitils library. It was only added to avoid implementing hashCode/equals in template engine and search classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/template_engine/TemplateParserTest.java

    r13004 r14093  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.tools.template_engine;
     3
     4import static org.junit.Assert.assertEquals;
    35
    46import java.util.Arrays;
     
    1618import org.openstreetmap.josm.data.osm.search.SearchParseError;
    1719import org.openstreetmap.josm.testutils.DatasetFactory;
    18 import org.unitils.reflectionassert.ReflectionAssert;
    1920
    2021/**
     
    3839    public void testEmpty() throws ParseError {
    3940        TemplateParser parser = new TemplateParser("");
    40         ReflectionAssert.assertReflectionEquals(new StaticText(""), parser.parse());
     41        assertEquals(new StaticText(""), parser.parse());
    4142    }
    4243
     
    4849    public void testVariable() throws ParseError {
    4950        TemplateParser parser = new TemplateParser("abc{var}\\{ef\\$\\{g");
    50         ReflectionAssert.assertReflectionEquals(CompoundTemplateEntry.fromArray(new StaticText("abc"),
     51        assertEquals(CompoundTemplateEntry.fromArray(new StaticText("abc"),
    5152                new Variable("var"), new StaticText("{ef${g")), parser.parse());
    5253    }
     
    6364            new Variable("name"),
    6465            new Variable("desc")));
    65         ReflectionAssert.assertReflectionEquals(condition, parser.parse());
     66        assertEquals(condition, parser.parse());
    6667    }
    6768
     
    7778                new Variable("name"),
    7879                new Variable("desc")));
    79         ReflectionAssert.assertReflectionEquals(condition, parser.parse());
     80        assertEquals(condition, parser.parse());
    8081    }
    8182
     
    9697                new SearchExpressionCondition(compile("admin_level = 4"), new StaticText("NUTS 2")),
    9798                new Variable("admin_level")));
    98         ReflectionAssert.assertReflectionEquals(condition, parser.parse());
     99        TemplateEntry parse = parser.parse();
     100        assertEquals(condition, parse);
    99101    }
    100102
Note: See TracChangeset for help on using the changeset viewer.