Announcement Announcement Module
Collapse
No announcement yet.
Problem running unit tests for airline sample Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem running unit tests for airline sample

    I'm getting an error running the unit tests for the Airline sample.
    I am using spring-ws-2.1.0.RELEASE samples, on OSX 10.7.

    Results of mvn package:

    Code:
    -------------------------------------------------------
     T E S T S
    -------------------------------------------------------
    Running org.springframework.ws.samples.airline.ws.AirlineEndpointTest
    2012-06-22 16:40:06,455 DEBUG [org.springframework.ws.samples.airline.ws.AirlineEndpoint] - Received BookingFlightRequest 'ABC1234' on '2007-06-13T12:00:00.000Z' for [john]
    2012-06-22 16:40:06,462 DEBUG [org.springframework.ws.samples.airline.ws.AirlineEndpoint] - Received GetFlightsRequest 'ABC' to 'DEF' on 2007-06-13
    2012-06-22 16:40:06,481 DEBUG [org.springframework.ws.samples.airline.ws.AirlineEndpoint] - Received BookingFlightRequest 'ABC1234' on '2007-06-13T12:00:00.000Z' for [org.springframework.ws.samples.airline.schema.Name@2802bd3a]
    2012-06-22 16:40:06,482 DEBUG [org.springframework.ws.samples.airline.ws.AirlineEndpoint] - Received GetFrequentFlyerMileageRequest
    Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.123 sec
    Running org.springframework.ws.samples.airline.dao.jpa.JpaTicketDaoTest
    2012-06-22 16:40:07,003 WARN [openjpa.Runtime] - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'airline', root URL [file:/Users/jevogel2/Downloads/spring-ws-2.1.0.RELEASE/samples/airline/server/target/classes/]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
    2012-06-22 16:40:07,044 INFO [openjpa.Runtime] - Starting OpenJPA 2.2.0
    2012-06-22 16:40:07,071 INFO [openjpa.jdbc.JDBC] - Using dictionary class "org.apache.openjpa.jdbc.sql.HSQLDictionary".
    2012-06-22 16:40:07,383 INFO [org.springframework.ws.samples.airline.dao.jpa.DatabaseInitializer] - Initializing Database
    2012-06-22 16:40:07,399 INFO [openjpa.Runtime] - The Entity "org.springframework.ws.samples.airline.domain.Airport" was enhanced at level "2", but the current level of enhancement is "1,241,207". 
    2012-06-22 16:40:07,400 INFO [openjpa.Runtime] - A down level Entity was detected and logged. Please enable RUNTIME trace to see all down level Entities.
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.994 sec
    Running org.springframework.ws.samples.airline.dao.jpa.JpaFrequentFlyerDaoTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.085 sec
    Running org.springframework.ws.samples.airline.dao.jpa.JpaFlightDaoTest
    Tests run: 4, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.033 sec <<< FAILURE!
    Running org.springframework.ws.samples.airline.web.FlightsControllerTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
    Running org.springframework.ws.samples.airline.security.SpringFrequentFlyerSecurityServiceTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
    Running org.springframework.ws.samples.airline.service.impl.AirlineServiceImplTest
    2012-06-22 16:40:07,632 DEBUG [org.springframework.ws.samples.airline.service.impl.AirlineServiceImpl] - Booking flight 'AB1234' on '2012-06-22T16:40:07.631-05:00' for [John Doe]
    2012-06-22 16:40:07,633 DEBUG [org.springframework.ws.samples.airline.service.impl.AirlineServiceImpl] - Booking flight 'AB1234' on '2012-06-22T16:40:07.632-05:00' for [john]
    2012-06-22 16:40:07,633 DEBUG [org.springframework.ws.samples.airline.service.impl.AirlineServiceImpl] - Booking flight 'AB1234' on '2012-06-22T16:40:07.633-05:00' for [null null]
    2012-06-22 16:40:07,634 DEBUG [org.springframework.ws.samples.airline.service.impl.AirlineServiceImpl] - Booking flight 'AB1234' on '2012-06-22T16:40:07.634-05:00' for [null null]
    2012-06-22 16:40:07,634 DEBUG [org.springframework.ws.samples.airline.service.impl.AirlineServiceImpl] - Getting flights from 'from' to 'to' on 2006-01-31
    2012-06-22 16:40:07,634 DEBUG [org.springframework.ws.samples.airline.service.impl.AirlineServiceImpl] - Returning 1 flights
    2012-06-22 16:40:07,635 DEBUG [org.springframework.ws.samples.airline.service.impl.AirlineServiceImpl] - Getting flights from 'from' to 'to' on 2006-01-31
    2012-06-22 16:40:07,635 DEBUG [org.springframework.ws.samples.airline.service.impl.AirlineServiceImpl] - Returning 1 flights
    Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
    
    Results :
    
    Tests in error: 
      getFlightsOutOfPeriod(org.springframework.ws.samples.airline.dao.jpa.JpaFlightDaoTest)
      noSuchFlight(org.springframework.ws.samples.airline.dao.jpa.JpaFlightDaoTest)
    
    Tests run: 20, Failures: 0, Errors: 2, Skipped: 0
    Any suggestions on how to resolve?
    Thanks
    Jim
Working...
X