Examples of Rides


Examples of com.drighetto.lmb.persistence.type.Rides

   * @throws Exception
   */
  @Test
  public void testDao01() throws Exception {
    long start = System.currentTimeMillis();
    Rides rs = Rides.BERTRANGE_HOWALD;
    Ride r = HowaldTunnelStatisticsDao.retrieveRideInformations(rs);
    Assert.assertNotNull(r);
    Assert.assertEquals(rs.getDriveWayCode(), r.getShortName());
    Assert.assertNotNull(r.getDisplayName());
    Assert.assertTrue(r.getCurrent() > 0);
    Assert.assertTrue(r.getAverage() > 0);
    Assert.assertTrue(r.getMaximum() > 0);
    System.out.printf("Test 'testDao01' performed in %s ms\n", (System.currentTimeMillis() - start));
View Full Code Here

Examples of com.drighetto.lmb.persistence.type.Rides

   * @throws Exception
   */
  @Test
  public void testDao02() throws Exception {
    long start = System.currentTimeMillis();
    Rides rs = Rides.BERCHEM_HOWALD;
    Ride r = HowaldTunnelStatisticsDao.retrieveRideInformations(rs);
    Assert.assertNotNull(r);
    Assert.assertEquals(rs.getDriveWayCode(), r.getShortName());
    Assert.assertNotNull(r.getDisplayName());
    Assert.assertTrue(r.getCurrent() > 0);
    Assert.assertTrue(r.getAverage() > 0);
    Assert.assertTrue(r.getMaximum() > 0);
    System.out.printf("Test 'testDao02' performed in %s ms\n", (System.currentTimeMillis() - start));
View Full Code Here

Examples of com.drighetto.lmb.persistence.type.Rides

   * @throws Exception
   */
  @Test
  public void testDao03() throws Exception {
    long start = System.currentTimeMillis();
    Rides rs = Rides.IRRGARTEN_HOWALD;
    Ride r = HowaldTunnelStatisticsDao.retrieveRideInformations(rs);
    Assert.assertNotNull(r);
    Assert.assertEquals(rs.getDriveWayCode(), r.getShortName());
    Assert.assertNotNull(r.getDisplayName());
    Assert.assertTrue(r.getCurrent() > 0);
    Assert.assertTrue(r.getAverage() > 0);
    Assert.assertTrue(r.getMaximum() > 0);
    System.out.printf("Test 'testDao03' performed in %s ms\n", (System.currentTimeMillis() - start));
View Full Code Here

Examples of com.drighetto.lmb.persistence.type.Rides

    /* Case for the TUNNEL HOWALD buddy */
    if (req.getRequestURI().toLowerCase().startsWith("/tunnelhowald/")) {
      try {
        // Get ride informations
        Rides rd = Rides.BERTRANGE_HOWALD;
        if (req.getParameter("ride") != null) {
          for (Rides r : Rides.values()) {
            if (r.getDriveWayCode().replaceAll(" > ", "").trim().equalsIgnoreCase(req.getParameter("ride"))) {
              rd = r;
              break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.