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% 9.343

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.111
1 0 0 0 100% 1
fr.paris.lutece.plugins.appointment.service 63 1 1 0 96.825% 8.232

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.004
WeekDefinitionTest 2 0 0 0 100% 0.005
AppointmentTest 3 0 0 0 100% 0.038
UserTest 1 0 0 0 100% 0.001
DisplayTest 2 0 0 0 100% 0.004
SlotTest 4 0 0 0 100% 0.013
ReservationRuleTest 2 0 0 0 100% 0.008
TimeSlotTest 2 0 0 0 100% 0.01
FormTest 2 0 0 0 100% 0.01
CalendarTemplateTest 1 0 0 0 100% 0.002
ClosingDayTest 2 0 0 0 100% 0.005
WorkingDayTest 2 0 0 0 100% 0.004
FormMessageTest 2 0 0 0 100% 0.004
CategoryTest 1 0 0 0 100% 0.003

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.343
ReservationRuleServiceTest 1 1 0 0 0% 6.078
FormServiceTest 2 0 1 0 50% 0.059
ClosingDayServiceTest 1 0 0 0 100% 0.123
TimeSlotServiceTest 3 0 0 0 100% 0.108
AppointmentUtilitiesTest 17 0 0 0 100% 0.425
UtilitiesTest 3 0 0 0 100% 0.022
AppointmentServiceTest 19 0 0 0 100% 0.42
SlotServiceTest 3 0 0 0 100% 0.132
WorkingDayServiceTest 7 0 0 0 100% 0.522

Test Cases

[Summary] [Package List] [Test Cases]

WeekDefinitionServiceTest

testGetMinStartingTimeOfAListOfWeekDefinition 0.058
testGetMinDurationTimeSlotOfAListOfWeekDefinition 0.078
testGetMaxEndingTimeOfAWeekDefinition 0.023
testGetMinStartingTimeOfAWeekDefinition 0.026
testGetOpenDaysOfWeek 0.016
testFindWeekDefinitionByIdFormAndClosestToDateOfApply 0.09
testGetMaxEndingTimeOfAListOfWeekDefinition 0.051

ReservationRuleServiceTest

testFindReservationRuleByIdFormAndClosestToDateOfApply 6.026

FormRuleTest

testFindByIdForm 0.001
testFormRule 0.001

FormServiceTest

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

WeekDefinitionTest

testFindByIdForm 0.001
testWeekDefinition 0.001

AppointmentTest

testAppointment 0.027
testFindByIdSlot 0.003
testFindByIdUser 0.003

UserTest

testUser 0.001

DisplayTest

testFindByIdForm 0.001
testDisplay 0.002

SlotTest

testFindByIdFormAndDateRange 0.006
testFindOpenSlotsByIdFormAndDateRange 0.001
testSlot 0.003
testFindOpenSlotsByIdForm 0.002

ClosingDayServiceTest

testFindListDateOfClosingDayByIdFormAndDateRange 0.123

TimeSlotServiceTest

testFindListTimeSlotAfterThisTimeSlot 0.034
testGetNextTimeSlotsInAListOfTimeSlotAfterALocalTime 0.033
testGetTimeSlotInListOfTimeSlotWithStartingTime 0.04

ReservationRuleTest

testFindByIdForm 0.001
testReservationRule 0.004

TimeSlotTest

testTimeSlot 0.007
testFindByIdWorkingDay 0.002

AppointmentUtilitiesTest

testNbDaysBetweenTwoAppointments2 0.046
testNbDaysBetweenTwoAppointments3 0.028
testNbDaysBetweenTwoAppointments4 0.033
testNbDaysBetweenTwoAppointments5 0.026
testGetMinTimeToDisplay 0
testGetMaxTimeToDisplay 0
testCheckNoValidatedAppointmentsOnThisSlot2 0.037
testCheckNbMaxAppointmentsOnAGivenPeriod2 0.027
testFindSlotsImpactedByThisTimeSlot 0.025
testCheckNoAppointmentsImpacted2 0.033
testNbDaysBetweenTwoAppointments 0.031
testCheckAndReturnNbBookedSeats2 0.036
testCheckAndReturnNbBookedSeats 0.02
testCheckNoValidatedAppointmentsOnThisSlot 0.023
testCheckNoAppointmentsImpacted 0.027
testSetAppointmentPhoneNumberValuesFromResponse 0.007
testCheckNbMaxAppointmentsOnAGivenPeriod 0.023

FormTest

testForm 0.002
testWeekDefinition 0.004

antrunsql

antrunsql 1

CalendarTemplateTest

testCalendarTemplate 0.001

ClosingDayTest

testFindByIdFormAndDateOfCLosingDay 0.001
testClosingDay 0.002

WorkingDayTest

testWorkingDay 0.002
testFindByIdWeekDefinition 0.001

FormMessageTest

testFindByIdForm 0.001
testFormMessage 0.001

UtilitiesTest

testGetClosestDateTimeInFuture 0.003
testGetFormatter 0
testGetClosestDateInPast 0.001

AppointmentServiceTest

testAppointmentAndNbPotentialRemainingPlaces2 0.023
testAppointmentAndNbPotentialRemainingPlaces3 0.025
testRemoveAppointmentAndCheckNbRemainingPlaces2 0.033
testRemoveAppointmentAndCheckNbRemainingPlaces3 0.023
testRemoveAppointmentAndCheckNbRemainingPlaces4 0.018
testAppointmentAndNbRemainingPlaces2 0.017
testAppointmentAndNbRemainingPlaces3 0.021
testAppointmentAndNbPlacesTaken2 0.015
testAppointmentAndNbPlacesTaken3 0.026
testAppointmentAndNbRemainingPlaces 0.02
testAppointmentAndNbPlacesTaken 0.014
testCancelAppointment2 0.031
testCancelAppointment3 0.025
testRemoveAppointmentAndCheckNbRemainingPlaces 0.017
testMultipleAppointmentsOnSameSlot2 0.018
testMultipleAppointmentsOnSameSlot3 0.018
testAppointmentAndNbPotentialRemainingPlaces 0.015
testMultipleAppointmentsOnSameSlot 0.021
testCancelAppointment 0.014

SlotServiceTest

testOpenSlots 0.068
testOpenSlotsWithSpecificSlotsClosed 0.037
testOpenSlotsWithSpecificLargeSlots 0.026

WorkingDayServiceTest

testGetMinDurationTimeSlotOfAWorkingDay 0.097
testGetMaxEndingTimeOfAListOfWorkingDay 0.134
testGetMinStartingTimeOfAListOfWorkingDay 0.087
testGetMinStartingTimeOfAWorkingDay 0.041
testGetMaxEndingTimeOfAWorkingDay 0.034
testGetOpenDays 0.034
testGetMinDurationTimeSlotOfAListOfWorkingDay 0.095

CategoryTest

testCategory 0.003

Failure Details

[Summary] [Package List] [Test Cases]


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