예제 #1
0
 protected static Venue createTestVenue(Category category) {
   Venue venue = new Venue();
   venue.setName(generateRandomString());
   venue.setLocation(generateRandomString());
   venue.setCategory(category);
   venue.setUrl(generateRandomString());
   venue.setUrl(generateRandomString());
   venue.setFoursquareId(generateRandomString());
   venue.setFoursquareUrl(generateRandomString());
   venue.setApproved(RANDOM.nextBoolean());
   return venue;
 }
예제 #2
0
 protected void assertVenuesEquals(Venue expected, Venue actual) {
   assertEquals("Venue 'id' is wrong", expected.getId(), actual.getId());
   assertEquals("Venue 'name' is wrong", expected.getName(), actual.getName());
   assertEquals("Venue 'location' is wrong", expected.getLocation(), actual.getLocation());
   assertEquals("Venue 'url' is wrong", expected.getUrl(), actual.getUrl());
   assertEquals(
       "Venue 'foursquareId' is wrong", expected.getFoursquareId(), actual.getFoursquareId());
   assertEquals(
       "Venue 'foursquareUrl' is wrong", expected.getFoursquareUrl(), actual.getFoursquareUrl());
   assertEquals("Venue 'approved' is wrong", expected.isApproved(), actual.isApproved());
   assertEquals(
       "Venue 'category' is wrong",
       expected.getCategory().getName(),
       actual.getCategory().getName());
 }