use of de.westnordost.osmapi.user.UserDao in project StreetComplete by westnordost.
the class UserChangesetsDaoTest method testAmount.
public void testAmount() {
OsmConnection osm = new OsmConnection("https://master.apis.dev.openstreetmap.org/api/0.6/", "StreetComplete test case", null);
long userId = 12;
UserDao userDao = new UserDao(osm);
UserInfo info = userDao.get(userId);
UserChangesetsDao dao = new UserChangesetsDao(new ChangesetsDao(osm));
Counter counter = new Counter();
dao.findAll(counter, userId, new Date(0));
assertEquals(info.changesetsCount, counter.count);
}
Aggregations