Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
92 1 1 0 97,826% 7,375

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
fr.paris.lutece.plugins.appointment.business 28 0 0 0 100% 0,042
1 0 0 0 100% 1
fr.paris.lutece.plugins.appointment.service 63 1 1 0 96,825% 6,333

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

fr.paris.lutece.plugins.appointment.business

Class Tests Errors Failures Skipped Success Rate Time
FormRuleTest 2 0 0 0 100% 0
WeekDefinitionTest 2 0 0 0 100% 0
AppointmentTest 3 0 0 0 100% 0,002
UserTest 1 0 0 0 100% 0
DisplayTest 2 0 0 0 100% 0
SlotTest 4 0 0 0 100% 0,004
ReservationRuleTest 2 0 0 0 100% 0
TimeSlotTest 2 0 0 0 100% 0,032
FormTest 2 0 0 0 100% 0,002
CalendarTemplateTest 1 0 0 0 100% 0,001
ClosingDayTest 2 0 0 0 100% 0,001
WorkingDayTest 2 0 0 0 100% 0
FormMessageTest 2 0 0 0 100% 0
CategoryTest 1 0 0 0 100% 0

Class Tests Errors Failures Skipped Success Rate Time
antrunsql 1 0 0 0 100% 1

fr.paris.lutece.plugins.appointment.service

Class Tests Errors Failures Skipped Success Rate Time
WeekDefinitionServiceTest 7 0 0 0 100% 0,289
ReservationRuleServiceTest 1 1 0 0 0% 4,656
FormServiceTest 2 0 1 0 50% 0,005
ClosingDayServiceTest 1 0 0 0 100% 0,075
TimeSlotServiceTest 3 0 0 0 100% 0,076
AppointmentUtilitiesTest 17 0 0 0 100% 0,475
UtilitiesTest 3 0 0 0 100% 0,004
AppointmentServiceTest 19 0 0 0 100% 0,305
SlotServiceTest 3 0 0 0 100% 0,099
WorkingDayServiceTest 7 0 0 0 100% 0,349

Test Cases

[Summary] [Package List] [Test Cases]

WeekDefinitionServiceTest

testGetMinStartingTimeOfAListOfWeekDefinition 0,051
testGetMinDurationTimeSlotOfAListOfWeekDefinition 0,083
testGetMaxEndingTimeOfAWeekDefinition 0,023
testGetMinStartingTimeOfAWeekDefinition 0,021
testGetOpenDaysOfWeek 0,016
testFindWeekDefinitionByIdFormAndClosestToDateOfApply 0,056
testGetMaxEndingTimeOfAListOfWeekDefinition 0,039

ReservationRuleServiceTest

testFindReservationRuleByIdFormAndClosestToDateOfApply 4,59

FormRuleTest

testFindByIdForm 0
testFormRule 0

FormServiceTest

testCreateAppointmentForm 0
testCopyForm 0,004
expected:<[MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY]> but was:<[]>

WeekDefinitionTest

testFindByIdForm 0
testWeekDefinition 0

AppointmentTest

testAppointment 0
testFindByIdSlot 0,001
testFindByIdUser 0,001

UserTest

testUser 0

DisplayTest

testFindByIdForm 0
testDisplay 0

SlotTest

testFindByIdFormAndDateRange 0
testFindOpenSlotsByIdFormAndDateRange 0
testSlot 0
testFindOpenSlotsByIdForm 0,002

ClosingDayServiceTest

testFindListDateOfClosingDayByIdFormAndDateRange 0,075

TimeSlotServiceTest

testFindListTimeSlotAfterThisTimeSlot 0,026
testGetNextTimeSlotsInAListOfTimeSlotAfterALocalTime 0,024
testGetTimeSlotInListOfTimeSlotWithStartingTime 0,026

ReservationRuleTest

testFindByIdForm 0
testReservationRule 0

TimeSlotTest

testTimeSlot 0,029
testFindByIdWorkingDay 0,003

AppointmentUtilitiesTest

testNbDaysBetweenTwoAppointments2 0,053
testNbDaysBetweenTwoAppointments3 0,031
testNbDaysBetweenTwoAppointments4 0,031
testNbDaysBetweenTwoAppointments5 0,03
testGetMinTimeToDisplay 0
testGetMaxTimeToDisplay 0,001
testCheckNoValidatedAppointmentsOnThisSlot2 0,031
testCheckNbMaxAppointmentsOnAGivenPeriod2 0,049
testFindSlotsImpactedByThisTimeSlot 0,027
testCheckNoAppointmentsImpacted2 0,038
testNbDaysBetweenTwoAppointments 0,027
testCheckAndReturnNbBookedSeats2 0,032
testCheckAndReturnNbBookedSeats 0,024
testCheckNoValidatedAppointmentsOnThisSlot 0,023
testCheckNoAppointmentsImpacted 0,031
testSetAppointmentPhoneNumberValuesFromResponse 0,009
testCheckNbMaxAppointmentsOnAGivenPeriod 0,038

FormTest

testForm 0
testWeekDefinition 0,001

antrunsql

antrunsql 1

CalendarTemplateTest

testCalendarTemplate 0,001

ClosingDayTest

testFindByIdFormAndDateOfCLosingDay 0
testClosingDay 0,001

WorkingDayTest

testWorkingDay 0
testFindByIdWeekDefinition 0

FormMessageTest

testFindByIdForm 0
testFormMessage 0

UtilitiesTest

testGetClosestDateTimeInFuture 0,001
testGetFormatter 0
testGetClosestDateInPast 0

AppointmentServiceTest

testAppointmentAndNbPotentialRemainingPlaces2 0,016
testAppointmentAndNbPotentialRemainingPlaces3 0,015
testRemoveAppointmentAndCheckNbRemainingPlaces2 0,025
testRemoveAppointmentAndCheckNbRemainingPlaces3 0,02
testRemoveAppointmentAndCheckNbRemainingPlaces4 0,019
testAppointmentAndNbRemainingPlaces2 0,015
testAppointmentAndNbRemainingPlaces3 0,015
testAppointmentAndNbPlacesTaken2 0,016
testAppointmentAndNbPlacesTaken3 0,011
testAppointmentAndNbRemainingPlaces 0,022
testAppointmentAndNbPlacesTaken 0,014
testCancelAppointment2 0,021
testCancelAppointment3 0,01
testRemoveAppointmentAndCheckNbRemainingPlaces 0,016
testMultipleAppointmentsOnSameSlot2 0,013
testMultipleAppointmentsOnSameSlot3 0,015
testAppointmentAndNbPotentialRemainingPlaces 0,014
testMultipleAppointmentsOnSameSlot 0,014
testCancelAppointment 0,014

SlotServiceTest

testOpenSlots 0,031
testOpenSlotsWithSpecificSlotsClosed 0,039
testOpenSlotsWithSpecificLargeSlots 0,029

WorkingDayServiceTest

testGetMinDurationTimeSlotOfAWorkingDay 0,047
testGetMaxEndingTimeOfAListOfWorkingDay 0,084
testGetMinStartingTimeOfAListOfWorkingDay 0,038
testGetMinStartingTimeOfAWorkingDay 0,026
testGetMaxEndingTimeOfAWorkingDay 0,024
testGetOpenDays 0,049
testGetMinDurationTimeSlotOfAListOfWorkingDay 0,081

CategoryTest

testCategory 0

Failure Details

[Summary] [Package List] [Test Cases]


testFindReservationRuleByIdFormAndClosestToDateOfApply
java.lang.NullPointerException
testCopyForm
junit.framework.AssertionFailedError: expected:<[MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY]> but was:<[]>