Package jodd.json.model.cat

Examples of jodd.json.model.cat.Performance


    List<Performance> performances = catalog.getPerformances();
    assertNotNull(performances);
    assertEquals(243, performances.size());

    Performance performance = performances.get(0);
    assertEquals(138586341, performance.getEventId().longValue());
    assertEquals(339887544, performance.getId().longValue());
    assertNull(performance.getLogo());
    assertNull(performance.getName());
    List<Price> prices = performance.getPrices();
    assertEquals(2, prices.size());
    Price price = prices.get(0);
    assertEquals(90250, price.getAmount());
    assertEquals(337100890, price.getAudienceSubCategoryId().longValue());
    assertEquals(338937295, price.getSeatCategoryId().longValue());
    List<SeatCategory> seatCategories = performance.getSeatCategories();
    assertEquals(2, seatCategories.size());
    SeatCategory seatCategory = seatCategories.get(0);
    assertEquals(338937295, seatCategory.getSeatCategoryId().longValue());
    List<Area> areas = seatCategory.getAreas();
    assertEquals(11, areas.size());
    Area area = areas.get(0);
    assertEquals(205705999, area.getAreaId().longValue());
    assertEquals(0, area.getBlockIds().length);
    JDateTime start = performance.getStart();
    assertEquals(1372701600000L, start.getTimeInMillis());
    assertEquals("PLEYEL_PLEYEL", performance.getVenueCode());

    // seatCategoryNames

    map = catalog.getSeatCategoryNames();
    assertEquals(64, map.size());
View Full Code Here

TOP

Related Classes of jodd.json.model.cat.Performance

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.