Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
623 0 0 0 100% 230.7 s

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
io.github.marcopaglio.booking.validator.restricted 145 0 0 0 100% 0.415 s
io.github.marcopaglio.booking.service.transactional 49 0 0 0 100% 6.712 s
io.github.marcopaglio.booking.transaction.manager.postgres 21 0 0 0 100% 0.307 s
io.github.marcopaglio.booking.repository.factory 10 0 0 0 100% 16.24 s
io.github.marcopaglio.booking.transaction.manager.mongo 21 0 0 0 100% 0.495 s
io.github.marcopaglio.booking.view.swing 164 0 0 0 100% 128.3 s
io.github.marcopaglio.booking.transaction.handler.mongo 9 0 0 0 100% 3.374 s
io.github.marcopaglio.booking.transaction.handler.factory 5 0 0 0 100% 5.037 s
io.github.marcopaglio.booking.repository.mongo 73 0 0 0 100% 53.56 s
io.github.marcopaglio.booking.presenter.served 49 0 0 0 100% 6.637 s
io.github.marcopaglio.booking.transaction.handler.postgres 8 0 0 0 100% 1.782 s
io.github.marcopaglio.booking.repository.postgres 69 0 0 0 100% 7.829 s

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

io.github.marcopaglio.booking.validator.restricted

- Class Tests Errors Failures Skipped Success Rate Time
RestrictedClientValidatorTest$ValidateFirstNameTest 0 0 0 0 0% 0.040 s
RestrictedClientValidatorTest$ValidateLastNameTest 0 0 0 0 0% 0.047 s
RestrictedReservationValidatorTest$ValidateDateTest$InvalidDatesTest 58 0 0 0 100% 0.050 s
RestrictedReservationValidatorTest$ValidateDateTest 1 0 0 0 100% 0.001 s
RestrictedClientValidatorTest$ValidateFirstNameTest$InvalidNamesTest 12 0 0 0 100% 0.012 s
RestrictedClientValidatorTest$ValidateLastNameTest$SurnamesFixedTest 7 0 0 0 100% 0.011 s
RestrictedReservationValidatorTest$ValidateDateTest 0 0 0 0 0% 0.052 s
RestrictedClientValidatorTest$ValidateFirstNameTest$ValidNamesTest 23 0 0 0 100% 0.017 s
RestrictedClientValidatorTest$ValidateFirstNameTest$NamesFixedTest 7 0 0 0 100% 0.007 s
RestrictedClientValidatorTest 0 0 0 0 0% 0.089 s
RestrictedReservationValidatorTest$ValidateClientIdTest 2 0 0 0 100% 0.001 s
RestrictedReservationValidatorTest 0 0 0 0 0% 0.056 s
RestrictedClientValidatorTest$ValidateLastNameTest$InvalidSurnamesTest 12 0 0 0 100% 0.013 s
RestrictedClientValidatorTest$ValidateLastNameTest$ValidSurnamesTest 23 0 0 0 100% 0.019 s

io.github.marcopaglio.booking.service.transactional

- Class Tests Errors Failures Skipped Success Rate Time
TransactionalBookingServiceTest$ClientRepositoryTest 0 0 0 0 0% 0.133 s
TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionSuccessfulTest$FindAllReservationsTest 2 0 0 0 100% 0.010 s
TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionSuccessfulTest$RescheduleReservationTest 3 0 0 0 100% 0.045 s
TransactionalBookingServiceTest$ReservationRepositoryTest 0 0 0 0 0% 0.156 s
TransactionalBookingServiceTest$ClientRepositoryTest$TransactionSuccessfulTest$RenameClientTest 3 0 0 0 100% 0.039 s
TransactionalBookingServiceTest$ClientRepositoryTest$TransactionSuccessfulTest$FindClientTest 2 0 0 0 100% 0.008 s
TransactionalBookingServiceTest$BothRepositoriesTest$TransactionSuccessfulTest$RemoveClientNamedTest 4 0 0 0 100% 0.047 s
TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionSuccessfulTest$RemoveReservationOnTest 2 0 0 0 100% 0.013 s
TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionSuccessfulTest$RemoveReservationTest 2 0 0 0 100% 0.011 s
TransactionalBookingServiceTest 0 0 0 0 0% 2.142 s
TransactionalBookingServiceTest$ClientRepositoryTest$TransactionSuccessfulTest$FindAllClientsTest 2 0 0 0 100% 0.007 s
TransactionalBookingServiceTest$BothRepositoriesTest$TransactionSuccessfulTest$InsertNewReservationTest 3 0 0 0 100% 0.117 s
TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionSuccessfulTest$FindReservationOnTest 2 0 0 0 100% 0.010 s
TransactionalBookingServiceTest$BothRepositoriesTest$TransactionSuccessfulTest$RemoveClientTest 4 0 0 0 100% 0.031 s
TransactionalBookingServiceTest$ClientRepositoryTest$TransactionSuccessfulTest$FindClientNamedTest 2 0 0 0 100% 0.008 s
TransactionalBookingServiceTest$ClientRepositoryTest$TransactionSuccessfulTest 0 0 0 0 0% 0.103 s
TransactionalBookingServiceTest$ClientRepositoryTest$TransactionFailureTest 5 0 0 0 100% 0.025 s
TransactionalBookingServiceTest$BothRepositoriesTest$TransactionFailureTest 3 0 0 0 100% 1.595 s
TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionFailureTest 6 0 0 0 100% 0.034 s
TransactionalBookingServiceTest$BothRepositoriesTest$TransactionSuccessfulTest 0 0 0 0 0% 0.208 s
TransactionalBookingServiceTest$ClientRepositoryTest$TransactionSuccessfulTest$InsertNewClientTest 2 0 0 0 100% 0.019 s
TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionSuccessfulTest 0 0 0 0 0% 0.115 s
TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionSuccessfulTest$FindReservationTest 2 0 0 0 100% 0.011 s
TransactionalBookingServiceTest$BothRepositoriesTest 0 0 0 0 0% 1.825 s

io.github.marcopaglio.booking.transaction.manager.postgres

- Class Tests Errors Failures Skipped Success Rate Time
TransactionPostgresManagerTest$ReservationTransactionCodeTest 7 0 0 0 100% 0.022 s
TransactionPostgresManagerTest$ClientTransactionCodeTest 7 0 0 0 100% 0.023 s
TransactionPostgresManagerTest 0 0 0 0 0% 0.158 s
TransactionPostgresManagerTest$ClientReservationTransactionCodeTest 7 0 0 0 100% 0.104 s

io.github.marcopaglio.booking.repository.factory

- Class Tests Errors Failures Skipped Success Rate Time
ReservationRepositoryFactoryTest 0 0 0 0 0% 12.18 s
ReservationRepositoryFactoryTest$CreateReservationRepositoryTest 0 0 0 0 0% 0.082 s
ClientRepositoryFactoryTest 0 0 0 0 0% 3.810 s
ClientRepositoryFactoryTest$CreateClientRepositoryTest$ClientMongoRepositoryTest 3 0 0 0 100% 0.031 s
ClientRepositoryFactoryTest$CreateClientRepositoryTest 0 0 0 0 0% 0.047 s
ClientRepositoryFactoryTest$CreateClientRepositoryTest$ClientPostgresRepositoryTest 2 0 0 0 100% 0.010 s
ReservationRepositoryFactoryTest$CreateReservationRepositoryTest$ReservationPostgreSQLRepositoryTest 2 0 0 0 100% 0.051 s
ReservationRepositoryFactoryTest$CreateReservationRepositoryTest$ReservationMongoRepositoryTest 3 0 0 0 100% 0.027 s

io.github.marcopaglio.booking.transaction.manager.mongo

- Class Tests Errors Failures Skipped Success Rate Time
TransactionMongoManagerTest$ClientReservationTransactionCodeTest 7 0 0 0 100% 0.194 s
TransactionMongoManagerTest 0 0 0 0 0% 0.249 s
TransactionMongoManagerTest$ClientTransactionCodeTest 7 0 0 0 100% 0.026 s
TransactionMongoManagerTest$ReservationTransactionCodeTest 7 0 0 0 100% 0.026 s

io.github.marcopaglio.booking.view.swing

- Class Tests Errors Failures Skipped Success Rate Time
BookingSwingViewTest 164 0 0 0 100% 128.3 s

io.github.marcopaglio.booking.transaction.handler.mongo

- Class Tests Errors Failures Skipped Success Rate Time
TransactionMongoHandlerTest$StartTransactionTest 3 0 0 0 100% 0.005 s
TransactionMongoHandlerTest$CommitTransactionTest 2 0 0 0 100% 0.004 s
TransactionMongoHandlerTest$RollbackTransactionTest 2 0 0 0 100% 0.008 s
TransactionMongoHandlerTest$CloseHandlerTest 2 0 0 0 100% 0.026 s
TransactionMongoHandlerTest 0 0 0 0 0% 3.331 s

io.github.marcopaglio.booking.transaction.handler.factory

- Class Tests Errors Failures Skipped Success Rate Time
TransactionHandlerFactoryTest$CreateTransactionHandlerTest 0 0 0 0 0% 0.051 s
TransactionHandlerFactoryTest$CreateTransactionHandlerTest$PostgreSQLHandlerTest 2 0 0 0 100% 0.037 s
TransactionHandlerFactoryTest$CreateTransactionHandlerTest$MongoDBHandlerTest 3 0 0 0 100% 0.011 s
TransactionHandlerFactoryTest 0 0 0 0 0% 4.938 s

io.github.marcopaglio.booking.repository.mongo

- Class Tests Errors Failures Skipped Success Rate Time
ReservationMongoRepositoryTest$UsingEntitiesTest$ModifyDBTest$DeleteTest 4 0 0 0 100% 1.365 s
ReservationMongoRepositoryTest 0 0 0 0 0% 19.09 s
ClientMongoRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByNameTest 5 0 0 0 100% 0.556 s
ClientMongoRepositoryTest 0 0 0 0 0% 6.168 s
ReservationMongoRepositoryTest$NullInputTest 5 0 0 0 100% 0.546 s
ReservationMongoRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByDate 3 0 0 0 100% 0.330 s
ClientMongoRepositoryTest$NullInputTest 4 0 0 0 100% 0.437 s
ClientMongoRepositoryTest$UsingEntitiesTest$ModifyDBTest$DeleteTest 4 0 0 0 100% 0.368 s
ClientMongoRepositoryTest$UsingEntitiesTest$ModifyDBTest$SaveTest 17 0 0 0 100% 1.985 s
ReservationMongoRepositoryTest$UsingEntitiesTest$ReadDBTest 0 0 0 0 0% 1.564 s
ReservationMongoRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByClientTest 5 0 0 0 100% 0.559 s
ClientMongoRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByIdTest 3 0 0 0 100% 0.335 s
ClientMongoRepositoryTest$UsingEntitiesTest$ModifyDBTest 0 0 0 0 0% 2.356 s
ReservationMongoRepositoryTest$UsingEntitiesTest$ReadDBTest$FindAllTest 3 0 0 0 100% 0.336 s
ReservationMongoRepositoryTest$UsingEntitiesTest$ModifyDBTest$SaveTest 14 0 0 0 100% 2.587 s
ClientMongoRepositoryTest$UsingEntitiesTest$ReadDBTest$FindAllTest 3 0 0 0 100% 0.335 s
ClientMongoRepositoryTest$UsingEntitiesTest$ReadDBTest 0 0 0 0 0% 1.229 s
ClientMongoRepositoryTest$UsingEntitiesTest 0 0 0 0 0% 3.588 s
ReservationMongoRepositoryTest$UsingEntitiesTest$ModifyDBTest 0 0 0 0 0% 3.960 s
ReservationMongoRepositoryTest$UsingEntitiesTest 0 0 0 0 0% 5.532 s
ReservationMongoRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByIdTest 3 0 0 0 100% 0.331 s

io.github.marcopaglio.booking.presenter.served

- Class Tests Errors Failures Skipped Success Rate Time
ServedBookingPresenterTest$DeleteClientTest 5 0 0 0 100% 0.124 s
ServedBookingPresenterTest$RenameClientTest$ValidationFailureTest 2 0 0 0 100% 0.013 s
ServedBookingPresenterTest$RenameClientTest 1 0 0 0 100% 0.005 s
ServedBookingPresenterTest$AddClientTest$ValidationFailureTest 2 0 0 0 100% 0.009 s
ServedBookingPresenterTest$RenameClientTest 0 0 0 0 0% 0.187 s
ServedBookingPresenterTest$AddReservationTest$ValidationFailureTest 2 0 0 0 100% 0.013 s
ServedBookingPresenterTest$AddReservationTest 1 0 0 0 100% 0.004 s
ServedBookingPresenterTest$RescheduleReservationTest 0 0 0 0 0% 1.530 s
ServedBookingPresenterTest$DeleteReservationTest 5 0 0 0 100% 0.125 s
ServedBookingPresenterTest$AddClientTest$ValidationSuccessfulTest 4 0 0 0 100% 0.149 s
ServedBookingPresenterTest$AddReservationTest 0 0 0 0 0% 0.154 s
ServedBookingPresenterTest$RenameClientTest$ValidationSuccessfulTest 8 0 0 0 100% 0.160 s
ServedBookingPresenterTest$AddReservationTest$ValidationSuccessfulTest 5 0 0 0 100% 0.131 s
ServedBookingPresenterTest 0 0 0 0 0% 2.342 s
ServedBookingPresenterTest$AllClientsTest 3 0 0 0 100% 0.009 s
ServedBookingPresenterTest$AddClientTest 0 0 0 0 0% 0.164 s
ServedBookingPresenterTest$AllReservationsTest 3 0 0 0 100% 0.010 s
ServedBookingPresenterTest$RescheduleReservationTest$ValidationSuccessfulTest 6 0 0 0 100% 0.187 s
ServedBookingPresenterTest$RescheduleReservationTest 2 0 0 0 100% 1.321 s

io.github.marcopaglio.booking.transaction.handler.postgres

- Class Tests Errors Failures Skipped Success Rate Time
TransactionPostgresHandlerTest 0 0 0 0 0% 1.743 s
TransactionPostgresHandlerTest$CloseHandlerTest 2 0 0 0 100% 0.010 s
TransactionPostgresHandlerTest$StartTransactionTest 2 0 0 0 100% 0.008 s
TransactionPostgresHandlerTest$RollbackTransactionTest 2 0 0 0 100% 0.011 s
TransactionPostgresHandlerTest$CommitTransactionTest 2 0 0 0 100% 0.010 s

io.github.marcopaglio.booking.repository.postgres

- Class Tests Errors Failures Skipped Success Rate Time
ClientPostgresRepositoryTest 0 0 0 0 0% 1.972 s
ReservationPostgresRepositoryTest$NullInputTest 5 0 0 0 100% 0.015 s
ReservationPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByClientTest 5 0 0 0 100% 0.057 s
ReservationPostgresRepositoryTest$UsingEntitiesTest$ModifyDBTest$DeleteTest 4 0 0 0 100% 0.487 s
ClientPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByIdTest 3 0 0 0 100% 0.017 s
ReservationPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByDate 3 0 0 0 100% 0.065 s
ReservationPostgresRepositoryTest$UsingEntitiesTest$ModifyDBTest$SaveTest 12 0 0 0 100% 0.152 s
ReservationPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest$FindAllTest 3 0 0 0 100% 0.018 s
ClientPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest$FindAllTest 3 0 0 0 100% 0.018 s
ReservationPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest 0 0 0 0 0% 0.170 s
ClientPostgresRepositoryTest$UsingEntitiesTest 0 0 0 0 0% 0.309 s
ClientPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByNameTest 5 0 0 0 100% 0.077 s
ReservationPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByIdTest 3 0 0 0 100% 0.024 s
ClientPostgresRepositoryTest$UsingEntitiesTest$ModifyDBTest$SaveTest 15 0 0 0 100% 0.139 s
ClientPostgresRepositoryTest$UsingEntitiesTest$ModifyDBTest 0 0 0 0 0% 0.191 s
ReservationPostgresRepositoryTest$UsingEntitiesTest$ModifyDBTest 0 0 0 0 0% 0.643 s
ReservationPostgresRepositoryTest 0 0 0 0 0% 2.488 s
ClientPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest 0 0 0 0 0% 0.116 s
ReservationPostgresRepositoryTest$UsingEntitiesTest 0 0 0 0 0% 0.815 s
ClientPostgresRepositoryTest$NullInputTest 4 0 0 0 100% 0.023 s
ClientPostgresRepositoryTest$UsingEntitiesTest$ModifyDBTest$DeleteTest 4 0 0 0 100% 0.033 s

Test Cases

[Summary] [Package List] [Test Cases]

ReservationMongoRepositoryTest$UsingEntitiesTest$ModifyDBTest$DeleteTest

testDeleteWhenReservationHasAlreadyBeenRemovedFromDatabaseShouldNotRemoveAnythingAndNotThrow 1.043 s
testDeleteWhenReservationWasAddedToTheDatabaseInTheSameContextShouldRemove 0.082 s
testDeleteWhenReservationHasNeverBeenInsertedInDatabaseShouldNotRemoveAnythingAndNotThrow 0.112 s
testDeleteWhenReservationWasAddedToTheDatabaseInAnotherContextShouldRemove 0.114 s

ClientMongoRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByNameTest

testFindByNameWhenClientWasAddedToTheDatabaseInTheSameContextShouldReturnOptionalOfClient 0.109 s
testFindByNameWhenClientWasAddedToTheDatabaseInAnotherContextShouldReturnOptionalOfClient 0.112 s
testFindByNameWhenThereIsAnotherClientWithTheSameSurnameShouldNotMatchIt 0.112 s
testFindByNameWhenThereIsAnotherClientWithTheSameNameShouldNotMatchIt 0.110 s
testFindByNameWhenClientIsNotInDatabaseShouldReturnOptionalOfEmpty 0.109 s

ReservationMongoRepositoryTest$NullInputTest

testDeleteWhenReservationIsNullShouldThrow 0.107 s
testFindByDateWhenDateIsNullShouldReturnOptionalOfEmpty 0.110 s
testSaveWhenReservationIsNullShouldThrow 0.107 s
testFindByIdWhenIdIsNullShouldReturnOptionalOfEmpty 0.109 s
testFindByClientWhenClientIdIsNullShouldReturnEmptyList 0.111 s

ReservationPostgresRepositoryTest$NullInputTest

testDeleteWhenReservationIsNullShouldThrow 0.003 s
testFindByDateWhenDateIsNullShouldReturnOptionalOfEmpty 0.003 s
testSaveWhenReservationIsNullShouldThrow 0.002 s
testFindByIdWhenIdIsNullShouldReturnOptionalOfEmpty 0.002 s
testFindByClientWhenClientIdIsNullShouldReturnEmptyList 0.003 s

ReservationPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByClientTest

testFindByClientWhenThereAreSeveralAssociatedReservationsAddedInTheSameContextShouldReturnReservationsAsList 0.030 s
testFindByClientWhenThereIsASingleAssociatedReservationAddedInAnotherContextShouldReturnTheReservationAsList 0.008 s
testFindByClientWhenThereAreSeveralAssociatedReservationsAddedInAnotherContextShouldReturnReservationsAsList 0.008 s
testFindByClientWhenThereIsASingleAssociatedReservationAddedInTheSameContextShouldReturnTheReservationAsList 0.007 s
testFindByClientWhenThereAreNoAssociatedReservationsShouldReturnEmptyList 0.003 s

ReservationPostgresRepositoryTest$UsingEntitiesTest$ModifyDBTest$DeleteTest

testDeleteWhenReservationHasAlreadyBeenRemovedFromDatabaseShouldNotRemoveAnythingAndNotThrow 0.441 s
testDeleteWhenReservationWasAddedToTheDatabaseInTheSameContextShouldRemove 0.012 s
testDeleteWhenReservationHasNeverBeenInsertedInDatabaseShouldNotRemoveAnythingAndNotThrow 0.014 s
testDeleteWhenReservationWasAddedToTheDatabaseInAnotherContextShouldRemove 0.017 s

ClientPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByIdTest

testFindByIdWhenClientIsNotInDatabaseShouldReturnOptionalOfEmpty 0.004 s
testFindByIdWhenClientWasAddedToTheDatabaseInTheSameContextShouldReturnOptionalOfClient 0.006 s
testFindByIdWhenClientWasAddedToTheDatabaseInAnotherContextShouldReturnOptionalOfClient 0.007 s

ReservationPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByDate

testFindByDateWhenReservationIsNotInDatabaseShouldReturnOptionalOfEmpty 0.049 s
testFindByDateWhenReservationWasAddedInAnotherContextShouldReturnOptionalOfReservation 0.007 s
testFindByDateWhenReservationWasAddedInTheSameContextShouldReturnOptionalOfReservation 0.006 s

ReservationPostgresRepositoryTest$UsingEntitiesTest$ModifyDBTest$SaveTest

testSaveWhenTheUpdatingReservationHasNullDateShouldNotUpdateAndThrow 0.023 s
testSaveWhenNewReservationGeneratesADateCollisionInAnotherContextShouldNotInsertAndThrow 0.018 s
testSaveWhenNewReservationIsValidShouldInsertAndReturnTheReservationWithId 0.009 s
testSaveWhenReservationToUpdateIsNotInDatabaseShouldThrowAndNotInsert 0.006 s
testSaveWhenUpdatingInTheSameContextIsValidShouldUpdateAndReturnWithoutChangingId 0.015 s
testSaveWhenNewReservationHasSameClientShouldNotThrowAndInsert 0.012 s
testSaveWhenTheUpdatingReservationHasNullClientIdShouldNotUpdateAndThrow 0.010 s
testSaveWhenUpdatingInAnotherContextIsValidShouldUpdateAndReturnWithoutChangingId 0.015 s
testSaveWhenNewReservationGeneratesADateCollisionInTheSameContextShouldNotInsertAndThrow 0.010 s
testSaveWhenReservationHasNullClientIdShouldNotInsertAndThrow 0.004 s
testSaveWhenReservationUpdateGeneratesDateCollisionShouldNotUpdateAndThrow 0.011 s
testSaveWhenReservationHasNullDateShouldNotInsertAndThrow 0.004 s

ReservationMongoRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByDate

testFindByDateWhenReservationIsNotInDatabaseShouldReturnOptionalOfEmpty 0.103 s
testFindByDateWhenReservationWasAddedInAnotherContextShouldReturnOptionalOfReservation 0.111 s
testFindByDateWhenReservationWasAddedInTheSameContextShouldReturnOptionalOfReservation 0.113 s

ReservationPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest$FindAllTest

testFindAllWhenDatabaseHasBeenFilledInTheSameContextShouldReturnReservationsAsList 0.006 s
testFindAllWhenDatabaseHasBeenFilledInAnotherContextShouldReturnReservationsAsList 0.006 s
testFindAllWhenDatabaseIsEmptyShouldReturnEmptyList 0.003 s

ClientMongoRepositoryTest$NullInputTest

testDeleteWhenClientIsNullShouldThrow 0.107 s
testSaveWhenClientIsNullShouldThrow 0.110 s
testFindByIdWhenIdIsNullShouldReturnOptionalOfEmpty 0.109 s
testFindByNameWhenNamesAreNullShouldReturnOptionalOfEmpty 0.110 s

ClientMongoRepositoryTest$UsingEntitiesTest$ModifyDBTest$DeleteTest

testDeleteWhenClientWasAddedToTheDatabaseInTheSameContextShouldRemove 0.024 s
testDeleteWhenClientHasAlreadyBeenRemovedFromDatabaseShouldNotRemoveAnythingAndNotThrow 0.116 s
testDeleteWhenClientWasAddedToTheDatabaseInAnotherContextShouldRemove 0.110 s
testDeleteWhenClientHasNeverBeenInsertedInDatabaseShouldNotRemoveAnythingAndNotThrow 0.113 s

ClientRepositoryFactoryTest$CreateClientRepositoryTest$ClientMongoRepositoryTest

testCreateClientRepositoryWhenMongoClientIsNullShouldThrow 0.002 s
testCreateClientRepositoryWhenParametersAreValidShouldReturnClientMongoRepository 0.025 s
testCreateClientRepositoryWhenSessionIsNullShouldThrow 0.001 s

RestrictedReservationValidatorTest$ValidateDateTest$InvalidDatesTest

testValidateDateWhenDateFormatIsWrongShouldThrow(String)[1] 0.001 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[2] 0 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[3] 0 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[4] 0 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[5] 0 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[6] 0.001 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[7] 0.001 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[8] 0 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[9] 0 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[10] 0 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[11] 0.001 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[12] 0.001 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[13] 0 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[14] 0 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[15] 0 s
testValidateDateWhenDateFormatIsWrongShouldThrow(String)[16] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[1] 0.001 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[2] 0.001 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[3] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[4] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[5] 0.001 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[6] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[7] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[8] 0.001 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[9] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[10] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[11] 0.001 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[12] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[13] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[14] 0.001 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[15] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[16] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[17] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[18] 0.001 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[19] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[20] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[21] 0.001 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[22] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[23] 0.001 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[24] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[25] 0 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[26] 0.001 s
testValidateDateWhenDateContainsNonNumericCharactersShouldThrow(String)[27] 0 s
testValidateDateWhenDayInDateIsWrongShouldThrow(String)[1] 0.001 s
testValidateDateWhenDayInDateIsWrongShouldThrow(String)[2] 0.001 s
testValidateDateWhenDayInDateIsWrongShouldThrow(String)[3] 0 s
testValidateDateWhenDayInDateIsWrongShouldThrow(String)[4] 0.001 s
testValidateDateWhenDayInDateIsWrongShouldThrow(String)[5] 0.001 s
testValidateDateWhenDayInDateIsWrongShouldThrow(String)[6] 0 s
testValidateDateWhenDayInDateIsWrongShouldThrow(String)[7] 0 s
testValidateDateWhenDayInDateIsWrongShouldThrow(String)[8] 0.001 s
testValidateDateWhenDayInDateIsWrongShouldThrow(String)[9] 0 s
testValidateDateWhenDayInDateIsWrongShouldThrow(String)[10] 0 s
testValidateDateWhenDayInDateIsWrongShouldThrow(String)[11] 0 s
testValidateDateWhenDayInDateIsWrongShouldThrow(String)[12] 0.001 s
testValidateDateWhenDayInDateIsWrongShouldThrow(String)[13] 0 s
testValidateDateWhenDayInDateIsWrongShouldThrow(String)[14] 0 s
testValidateDateWhenDateIsNullShouldThrow 0.001 s

RestrictedReservationValidatorTest$ValidateDateTest

testValidateDateWhenDateIsValidShouldReturnTheLocalDate 0.001 s

ClientPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest$FindAllTest

testFindAllWhenDatabaseHasBeenFilledInTheSameContextShouldReturnClientsAsList 0.006 s
testFindAllWhenDatabaseIsEmptyShouldReturnEmptyList 0.003 s
testFindAllWhenDatabaseHasBeenFilledInAnotherContextShouldReturnClientsAsList 0.006 s

ClientMongoRepositoryTest$UsingEntitiesTest$ModifyDBTest$SaveTest

testSaveWhenClientToUpdateIsNotInDatabaseShouldThrowAndNotInsert 0.106 s
testSaveWhenNewClientHasSomeEqualitiesShouldNotThrowAndInsert(String, String)[1] 0.129 s
testSaveWhenNewClientHasSomeEqualitiesShouldNotThrowAndInsert(String, String)[2] 0.114 s
testSaveWhenNewClientGeneratesANamesCollisionInAnotherContextShouldNotInsertAndThrow 0.120 s
testSaveWhenNewClientIsValidShouldInsertAndReturnTheClientWithId 0.114 s
testSaveWhenNewClientGeneratesAnIdCollisionInTheSameContextShouldNotInsertAndThrow 0.115 s
testSaveWhenTheUpdatingClientHasNullNamesShouldNotUpdateAndThrow(String, String)[1] 0.110 s
testSaveWhenTheUpdatingClientHasNullNamesShouldNotUpdateAndThrow(String, String)[2] 0.113 s
testSaveWhenTheUpdatingClientHasNullNamesShouldNotUpdateAndThrow(String, String)[3] 0.111 s
testSaveWhenClientUpdateGeneratesNamesCollisionShouldNotUpdateAndThrow 0.118 s
testSaveWhenUpdatingInTheSameContextIsValidShouldUpdateAndReturnWithoutChangingId 0.111 s
testSaveWhenUpdatingInAnotherContextIsValidShouldUpdateAndReturnWithoutChangingId 0.113 s
testSaveWhenNewClientHasNullNamesShouldNotInsertAndThrow(String, String)[1] 0.107 s
testSaveWhenNewClientHasNullNamesShouldNotInsertAndThrow(String, String)[2] 0.109 s
testSaveWhenNewClientHasNullNamesShouldNotInsertAndThrow(String, String)[3] 0.109 s
testSaveWhenNewClientGeneratesAnIdCollisionInAnotherContextShouldNotInsertAndThrow 0.113 s
testSaveWhenNewClientGeneratesANamesCollisionInTheSameContextShouldNotInsertAndThrow 0.114 s

ReservationMongoRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByClientTest

testFindByClientWhenThereAreSeveralAssociatedReservationsAddedInTheSameContextShouldReturnReservationsAsList 0.109 s
testFindByClientWhenThereIsASingleAssociatedReservationAddedInAnotherContextShouldReturnTheReservationAsList 0.114 s
testFindByClientWhenThereAreSeveralAssociatedReservationsAddedInAnotherContextShouldReturnReservationsAsList 0.112 s
testFindByClientWhenThereIsASingleAssociatedReservationAddedInTheSameContextShouldReturnTheReservationAsList 0.111 s
testFindByClientWhenThereAreNoAssociatedReservationsShouldReturnEmptyList 0.107 s

RestrictedClientValidatorTest$ValidateFirstNameTest$InvalidNamesTest

testValidateFirstNameWhenNameIsNullShouldThrow 0 s
testValidateFirstNameWhenNameIsEmptyShouldThrow(String)[1] 0.001 s
testValidateFirstNameWhenNameIsEmptyShouldThrow(String)[2] 0.001 s
testValidateFirstNameWhenNameIsEmptyShouldThrow(String)[3] 0 s
testValidateFirstNameWhenNameIsEmptyShouldThrow(String)[4] 0 s
testValidateFirstNameWhenNameIsEmptyShouldThrow(String)[5] 0 s
testValidateFirstNameWhenNameIsEmptyShouldThrow(String)[6] 0.001 s
testValidateFirstNameWhenNameIsEmptyShouldThrow(String)[7] 0.001 s
testValidateFirstNameWhenNameContainsNonAlphabetCharactersShouldThrow(String)[1] 0.001 s
testValidateFirstNameWhenNameContainsNonAlphabetCharactersShouldThrow(String)[2] 0 s
testValidateFirstNameWhenNameContainsNonAlphabetCharactersShouldThrow(String)[3] 0 s
testValidateFirstNameWhenNameContainsNonAlphabetCharactersShouldThrow(String)[4] 0.001 s

ClientPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByNameTest

testFindByNameWhenClientWasAddedToTheDatabaseInTheSameContextShouldReturnOptionalOfClient 0.031 s
testFindByNameWhenClientWasAddedToTheDatabaseInAnotherContextShouldReturnOptionalOfClient 0.015 s
testFindByNameWhenThereIsAnotherClientWithTheSameSurnameShouldNotMatchIt 0.006 s
testFindByNameWhenThereIsAnotherClientWithTheSameNameShouldNotMatchIt 0.019 s
testFindByNameWhenClientIsNotInDatabaseShouldReturnOptionalOfEmpty 0.004 s

RestrictedClientValidatorTest$ValidateLastNameTest$SurnamesFixedTest

testValidateLastNameWhenSurnameContainsSeveralSpacesShouldReduce(String, String)[1] 0.004 s
testValidateLastNameWhenSurnameContainsSeveralSpacesShouldReduce(String, String)[2] 0.001 s
testValidateLastNameWhenSurnameContainsSeveralSpacesShouldReduce(String, String)[3] 0.001 s
testValidateLastNameWhenSurnameContainsSideSpacesShouldRemove(String)[1] 0.001 s
testValidateLastNameWhenSurnameContainsSideSpacesShouldRemove(String)[2] 0 s
testValidateLastNameWhenSurnameContainsSideSpacesShouldRemove(String)[3] 0 s
testValidateLastNameWhenSurnameContainsSideSpacesShouldRemove(String)[4] 0 s

ClientMongoRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByIdTest

testFindByIdWhenClientIsNotInDatabaseShouldReturnOptionalOfEmpty 0.109 s
testFindByIdWhenClientWasAddedToTheDatabaseInTheSameContextShouldReturnOptionalOfClient 0.113 s
testFindByIdWhenClientWasAddedToTheDatabaseInAnotherContextShouldReturnOptionalOfClient 0.112 s

ClientRepositoryFactoryTest$CreateClientRepositoryTest$ClientPostgresRepositoryTest

testCreateClientRepositoryWhenParametersAreValidShouldReturnClientPostgresRepository 0.003 s
testCreateClientRepositoryWhenEntityManagerIsNullShouldThrow 0.001 s

ReservationMongoRepositoryTest$UsingEntitiesTest$ReadDBTest$FindAllTest

testFindAllWhenDatabaseHasBeenFilledInTheSameContextShouldReturnReservationsAsList 0.110 s
testFindAllWhenDatabaseHasBeenFilledInAnotherContextShouldReturnReservationsAsList 0.112 s
testFindAllWhenDatabaseIsEmptyShouldReturnEmptyList 0.110 s

ReservationPostgresRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByIdTest

testFindByIdWhenReservationIsNotInDatabaseShouldReturnOptionalOfEmpty 0.004 s
testFindByIdWhenReservationWasAddedInAnotherContextShouldReturnOptionalOfReservation 0.007 s
testFindByIdWhenReservationWasAddedInTheSameContextShouldReturnOptionalOfReservation 0.012 s

ReservationMongoRepositoryTest$UsingEntitiesTest$ModifyDBTest$SaveTest

testSaveWhenTheUpdatingReservationHasNullDateShouldNotUpdateAndThrow 0.109 s
testSaveWhenNewReservationGeneratesADateCollisionInAnotherContextShouldNotInsertAndThrow 1.066 s
testSaveWhenNewReservationIsValidShouldInsertAndReturnTheReservationWithId 0.100 s
testSaveWhenNewReservationGeneratesAnIdCollisionInAnotherContextShouldNotInsertAndThrow 0.125 s
testSaveWhenReservationToUpdateIsNotInDatabaseShouldThrowAndNotInsert 0.114 s
testSaveWhenUpdatingInTheSameContextIsValidShouldUpdateAndReturnWithoutChangingId 0.119 s
testSaveWhenNewReservationHasSameClientShouldNotThrowAndInsert 0.114 s
testSaveWhenTheUpdatingReservationHasNullClientIdShouldNotUpdateAndThrow 0.122 s
testSaveWhenUpdatingInAnotherContextIsValidShouldUpdateAndReturnWithoutChangingId 0.114 s
testSaveWhenNewReservationGeneratesADateCollisionInTheSameContextShouldNotInsertAndThrow 0.118 s
testSaveWhenReservationHasNullClientIdShouldNotInsertAndThrow 0.107 s
testSaveWhenNewReservationGeneratesAnIdCollisionInTheSameContextShouldNotInsertAndThrow 0.120 s
testSaveWhenReservationUpdateGeneratesDateCollisionShouldNotUpdateAndThrow 0.116 s
testSaveWhenReservationHasNullDateShouldNotInsertAndThrow 0.104 s

ClientPostgresRepositoryTest$UsingEntitiesTest$ModifyDBTest$SaveTest

testSaveWhenClientToUpdateIsNotInDatabaseShouldThrowAndNotInsert 0.007 s
testSaveWhenNewClientHasSomeEqualitiesShouldNotThrowAndInsert(String, String)[1] 0.008 s
testSaveWhenNewClientHasSomeEqualitiesShouldNotThrowAndInsert(String, String)[2] 0.007 s
testSaveWhenNewClientGeneratesANamesCollisionInAnotherContextShouldNotInsertAndThrow 0.014 s
testSaveWhenNewClientIsValidShouldInsertAndReturnTheClientWithId 0.005 s
testSaveWhenTheUpdatingClientHasNullNamesShouldNotUpdateAndThrow(String, String)[1] 0.007 s
testSaveWhenTheUpdatingClientHasNullNamesShouldNotUpdateAndThrow(String, String)[2] 0.008 s
testSaveWhenTheUpdatingClientHasNullNamesShouldNotUpdateAndThrow(String, String)[3] 0.007 s
testSaveWhenClientUpdateGeneratesNamesCollisionShouldNotUpdateAndThrow 0.009 s
testSaveWhenUpdatingInTheSameContextIsValidShouldUpdateAndReturnWithoutChangingId 0.006 s
testSaveWhenUpdatingInAnotherContextIsValidShouldUpdateAndReturnWithoutChangingId 0.007 s
testSaveWhenNewClientHasNullNamesShouldNotInsertAndThrow(String, String)[1] 0.011 s
testSaveWhenNewClientHasNullNamesShouldNotInsertAndThrow(String, String)[2] 0.012 s
testSaveWhenNewClientHasNullNamesShouldNotInsertAndThrow(String, String)[3] 0.005 s
testSaveWhenNewClientGeneratesANamesCollisionInTheSameContextShouldNotInsertAndThrow 0.017 s

ReservationRepositoryFactoryTest$CreateReservationRepositoryTest$ReservationPostgreSQLRepositoryTest

testCreateReservationRepositoryWhenEntityManagerIsNullShouldThrow 0.044 s
testCreateReservationRepositoryWhenParametersAreValidShouldReturnClientPostgreSQLRepository 0.003 s

RestrictedClientValidatorTest$ValidateFirstNameTest$ValidNamesTest

testValidateFirstNameWhenNameContainsSpacesShouldNotThrow(String)[1] 0.001 s
testValidateFirstNameWhenNameContainsSpacesShouldNotThrow(String)[2] 0 s
testValidateFirstNameWhenNameContainsSpacesShouldNotThrow(String)[3] 0 s
testValidateFirstNameWhenNameContainsSpacesShouldNotThrow(String)[4] 0 s
testValidateFirstNameWhenNameContainsSpacesShouldNotThrow(String)[5] 0.001 s
testValidateFirstNameWhenNameContainsSpacesShouldNotThrow(String)[6] 0 s
testValidateFirstNameWhenNameContainsSpacesShouldNotThrow(String)[7] 0 s
testValidateFirstNameWhenNameContainsSpacesShouldNotThrow(String)[8] 0.001 s
testValidateFirstNameWhenNameContainsSpacesShouldNotThrow(String)[9] 0 s
testValidateFirstNameWhenNameContainsSpacesShouldNotThrow(String)[10] 0 s
testValidateFirstNameWhenNameIsValidShouldReturnTheSameName 0.001 s
testValidateFirstNameWhenNameIsAccentedShouldNotThrow(String)[1] 0.001 s
testValidateFirstNameWhenNameIsAccentedShouldNotThrow(String)[2] 0.001 s
testValidateFirstNameWhenNameIsAccentedShouldNotThrow(String)[3] 0 s
testValidateFirstNameWhenNameIsAccentedShouldNotThrow(String)[4] 0 s
testValidateFirstNameWhenNameIsAccentedShouldNotThrow(String)[5] 0 s
testValidateFirstNameWhenNameIsAccentedShouldNotThrow(String)[6] 0.001 s
testValidateFirstNameWhenNameIsAccentedShouldNotThrow(String)[7] 0 s
testValidateFirstNameWhenNameIsAccentedShouldNotThrow(String)[8] 0 s
testValidateFirstNameWhenNameIsAccentedShouldNotThrow(String)[9] 0 s
testValidateFirstNameWhenNameIsAccentedShouldNotThrow(String)[10] 0 s
testValidateFirstNameWhenNameIsAccentedShouldNotThrow(String)[11] 0.001 s
testValidateFirstNameWhenNameIsAccentedShouldNotThrow(String)[12] 0 s

ClientMongoRepositoryTest$UsingEntitiesTest$ReadDBTest$FindAllTest

testFindAllWhenDatabaseHasBeenFilledInTheSameContextShouldReturnClientsAsList 0.113 s
testFindAllWhenDatabaseIsEmptyShouldReturnEmptyList 0.108 s
testFindAllWhenDatabaseHasBeenFilledInAnotherContextShouldReturnClientsAsList 0.110 s

ReservationRepositoryFactoryTest$CreateReservationRepositoryTest$ReservationMongoRepositoryTest

testCreateReservationRepositoryWhenMongoClientIsNullShouldThrow 0.010 s
testCreateReservationRepositoryWhenParametersAreValidShouldReturnClientMongoRepository 0.015 s
testCreateReservationRepositoryWhenSessionIsNullShouldThrow 0.001 s

RestrictedClientValidatorTest$ValidateFirstNameTest$NamesFixedTest

testValidateFirstNameWhenNameContainsSideSpacesShouldRemove(String)[1] 0 s
testValidateFirstNameWhenNameContainsSideSpacesShouldRemove(String)[2] 0 s
testValidateFirstNameWhenNameContainsSideSpacesShouldRemove(String)[3] 0 s
testValidateFirstNameWhenNameContainsSideSpacesShouldRemove(String)[4] 0.001 s
testValidateFirstNameWhenNameContainsSeveralSpacesShouldReduce(String, String)[1] 0 s
testValidateFirstNameWhenNameContainsSeveralSpacesShouldReduce(String, String)[2] 0 s
testValidateFirstNameWhenNameContainsSeveralSpacesShouldReduce(String, String)[3] 0 s

RestrictedReservationValidatorTest$ValidateClientIdTest

testValidateClientIdWhenClientIdIsValidShouldReturnTheSameClientId 0.001 s
testValidateClientIdWhenClientIdIsNullShouldThrow 0 s

RestrictedClientValidatorTest$ValidateLastNameTest$InvalidSurnamesTest

testValidateLastNameWhenSurnameIsNullShouldThrow 0.001 s
testValidateLastNameWhenSurnameIsEmptyShouldThrow(String)[1] 0.001 s
testValidateLastNameWhenSurnameIsEmptyShouldThrow(String)[2] 0.001 s
testValidateLastNameWhenSurnameIsEmptyShouldThrow(String)[3] 0.001 s
testValidateLastNameWhenSurnameIsEmptyShouldThrow(String)[4] 0.001 s
testValidateLastNameWhenSurnameIsEmptyShouldThrow(String)[5] 0 s
testValidateLastNameWhenSurnameIsEmptyShouldThrow(String)[6] 0 s
testValidateLastNameWhenSurnameIsEmptyShouldThrow(String)[7] 0 s
testValidateLastNameWhenSurnameContainsNonAlphabetCharactersShouldThrow(String)[1] 0.001 s
testValidateLastNameWhenSurnameContainsNonAlphabetCharactersShouldThrow(String)[2] 0.001 s
testValidateLastNameWhenSurnameContainsNonAlphabetCharactersShouldThrow(String)[3] 0 s
testValidateLastNameWhenSurnameContainsNonAlphabetCharactersShouldThrow(String)[4] 0 s

RestrictedClientValidatorTest$ValidateLastNameTest$ValidSurnamesTest

testValidateLastNameWhenSurnameIsValidShouldReturnTheSameSurname 0 s
testValidateLastNameWhenSurnameContainsSpacesShouldNotThrow(String)[1] 0.001 s
testValidateLastNameWhenSurnameContainsSpacesShouldNotThrow(String)[2] 0 s
testValidateLastNameWhenSurnameContainsSpacesShouldNotThrow(String)[3] 0 s
testValidateLastNameWhenSurnameContainsSpacesShouldNotThrow(String)[4] 0.001 s
testValidateLastNameWhenSurnameContainsSpacesShouldNotThrow(String)[5] 0 s
testValidateLastNameWhenSurnameContainsSpacesShouldNotThrow(String)[6] 0 s
testValidateLastNameWhenSurnameContainsSpacesShouldNotThrow(String)[7] 0.001 s
testValidateLastNameWhenSurnameContainsSpacesShouldNotThrow(String)[8] 0 s
testValidateLastNameWhenSurnameContainsSpacesShouldNotThrow(String)[9] 0.001 s
testValidateLastNameWhenSurnameContainsSpacesShouldNotThrow(String)[10] 0 s
testValidateLastNameWhenSurnameIsAccentedShouldNotThrow(String)[1] 0.001 s
testValidateLastNameWhenSurnameIsAccentedShouldNotThrow(String)[2] 0.001 s
testValidateLastNameWhenSurnameIsAccentedShouldNotThrow(String)[3] 0.001 s
testValidateLastNameWhenSurnameIsAccentedShouldNotThrow(String)[4] 0 s
testValidateLastNameWhenSurnameIsAccentedShouldNotThrow(String)[5] 0 s
testValidateLastNameWhenSurnameIsAccentedShouldNotThrow(String)[6] 0 s
testValidateLastNameWhenSurnameIsAccentedShouldNotThrow(String)[7] 0.001 s
testValidateLastNameWhenSurnameIsAccentedShouldNotThrow(String)[8] 0.001 s
testValidateLastNameWhenSurnameIsAccentedShouldNotThrow(String)[9] 0 s
testValidateLastNameWhenSurnameIsAccentedShouldNotThrow(String)[10] 0 s
testValidateLastNameWhenSurnameIsAccentedShouldNotThrow(String)[11] 0 s
testValidateLastNameWhenSurnameIsAccentedShouldNotThrow(String)[12] 0 s

ClientPostgresRepositoryTest$NullInputTest

testDeleteWhenClientIsNullShouldThrow 0.003 s
testSaveWhenClientIsNullShouldThrow 0.009 s
testFindByIdWhenIdIsNullShouldReturnOptionalOfEmpty 0.003 s
testFindByNameWhenNamesAreNullShouldReturnOptionalOfEmpty 0.007 s

ReservationMongoRepositoryTest$UsingEntitiesTest$ReadDBTest$FindByIdTest

testFindByIdWhenReservationIsNotInDatabaseShouldReturnOptionalOfEmpty 0.105 s
testFindByIdWhenReservationWasAddedInAnotherContextShouldReturnOptionalOfReservation 0.112 s
testFindByIdWhenReservationWasAddedInTheSameContextShouldReturnOptionalOfReservation 0.111 s

ClientPostgresRepositoryTest$UsingEntitiesTest$ModifyDBTest$DeleteTest

testDeleteWhenClientWasAddedToTheDatabaseInTheSameContextShouldRemove 0.008 s
testDeleteWhenClientHasAlreadyBeenRemovedFromDatabaseShouldNotRemoveAnythingAndNotThrow 0.007 s
testDeleteWhenClientWasAddedToTheDatabaseInAnotherContextShouldRemove 0.010 s
testDeleteWhenClientHasNeverBeenInsertedInDatabaseShouldNotRemoveAnythingAndNotThrow 0.007 s

TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionSuccessfulTest$FindAllReservationsTest

testFindAllReservationsWhenThereAreSeveralReservationsToRetrieveShouldReturnReservationsAsList 0.005 s
testFindAllReservationsWhenThereAreNoReservationsToRetrieveShouldReturnEmptyList 0.003 s

TransactionMongoManagerTest$ClientReservationTransactionCodeTest

testDoInTransactionWhenCodeThrowsUniquenessConstraintViolationExceptionShouldRollBackAndThrow 0.165 s
testDoInTransactionWhenCodeThrowsNotNullConstraintViolationExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeCallsMethodsShouldApplyAndReturn 0.006 s
testDoInTransactionWhenCommitFailsShouldRollBackAndThrow 0.005 s
testDoInTransactionWhenCodeThrowsIllegalArgumentExceptionShouldRollBackAndThrow 0.004 s
testDoInTransactionWhenCodeThrowsUpdateFailureExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeThrowsOthersRuntimeExceptionsShouldRollBackAndRethrow 0.003 s

TransactionMongoHandlerTest$StartTransactionTest

testStartTransactionWhenThereIsAlreadyAnActiveTransactionShouldMaintainItActiveAndNotThrow 0.001 s
testStartTransactionWhenTransactionOptionsAreNullShouldStart 0.002 s
testStartTransactionWhenThereAreNoActiveTransactionShouldStart 0.001 s

TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionSuccessfulTest$RescheduleReservationTest

testRescheduleReservationWhenReservationToRescheduleDoesNotExistShouldNotRescheduleAnythingAndThrow 0.005 s
testRescheduleReservationWhenThereIsNoReservationInTheSameNewDateShouldRescheduleAndReturn 0.032 s
testRescheduleReservationWhenThereIsAlreadyAReservationInTheSameNewDateShouldNotRescheduleAndThrow 0.005 s

TransactionPostgresManagerTest$ReservationTransactionCodeTest

testDoInTransactionWhenCallsAMethodShouldApplyAndReturn 0.003 s
testDoInTransactionWhenCodeThrowsUniquenessConstraintViolationExceptionShouldRollBackAndThrow 0.002 s
testDoInTransactionWhenCodeThrowsNotNullConstraintViolationExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCommitFailsShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeThrowsIllegalArgumentExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeThrowsUpdateFailureExceptionShouldRollBackAndThrow 0.002 s
testDoInTransactionWhenCodeThrowsOthersRuntimeExceptionsShouldRollBackAndRethrow 0.002 s

TransactionPostgresManagerTest$ClientTransactionCodeTest

testDoInTransactionWhenCallsAMethodShouldApplyAndReturn 0.003 s
testDoInTransactionWhenCodeThrowsUniquenessConstraintViolationExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeThrowsNotNullConstraintViolationExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCommitFailsShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeThrowsIllegalArgumentExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeThrowsUpdateFailureExceptionShouldRollBackAndThrow 0.002 s
testDoInTransactionWhenCodeThrowsOthersRuntimeExceptionsShouldRollBackAndRethrow 0.002 s

TransactionalBookingServiceTest$ClientRepositoryTest$TransactionSuccessfulTest$RenameClientTest

testRenameClientWhenClientToRenameDoesNotExistShouldNotRenameAnythingAndThrow 0.020 s
testRenameClientWhenThereIsAlreadyAClientWithSameNewNamesShouldNotRenameAndThrow 0.006 s
testRenameClientWhenThereIsNoClientWithSameNewNamesShouldRenameAndReturn 0.008 s

TransactionalBookingServiceTest$ClientRepositoryTest$TransactionSuccessfulTest$FindClientTest

testFindClientWhenClientDoesNotExistShouldThrow 0.003 s
testFindClientWhenClientExistsShouldReturnTheClient 0.003 s

TransactionalBookingServiceTest$BothRepositoriesTest$TransactionSuccessfulTest$RemoveClientNamedTest

testRemoveClientNamedWhenClientDoesNotExistShouldNotRemoveAnythingAndThrow 0.011 s
testRemoveClientNamedWhenClientExistsWithSeveralExistingReservationsShouldRemove 0.014 s
testRemoveClientNamedWhenClientExistsWithSingleExistingReservationShouldRemove 0.007 s
testRemoveClientNamedWhenClientExistsWithoutExistingReservationsShouldRemove 0.005 s

TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionSuccessfulTest$RemoveReservationOnTest

testRemoveReservationOnWhenReservationDoesNotExistShouldNotRemoveAnythingAndThrow 0.005 s
testRemoveReservationOnWhenReservationExistsShouldRemove 0.004 s

TransactionHandlerFactoryTest$CreateTransactionHandlerTest$PostgreSQLHandlerTest

testCreateTransactionHandlerWhenEntityManagerFactoryIsValidShouldReturnTransactionPostgresHandler 0.034 s
testCreateTransactionHandlerWhenEntityManagerFactoryIsNullShouldThrow 0.002 s

TransactionMongoHandlerTest$CommitTransactionTest

testCommitTransactionWhenThereIsAnActiveTransactionShouldClose 0.001 s
testCommitTransactionWhenThereIsNoActiveTransactionShouldMaintainItCloseAndNotThrow 0.001 s

TransactionMongoHandlerTest$RollbackTransactionTest

testRollbackTransactionWhenThereIsAnActiveTransactionShouldClose 0.001 s
testRollbackTransactionWhenThereIsNoActiveTransactionShouldMaintainItCloseAndNotThrow 0.005 s

TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionSuccessfulTest$RemoveReservationTest

testRemoveReservationWhenReservationExistsShouldRemove 0.005 s
testRemoveReservationWhenReservationDoesNotExistShouldNotRemoveAnythingAndThrow 0.003 s

TransactionalBookingServiceTest$ClientRepositoryTest$TransactionSuccessfulTest$FindAllClientsTest

testFindAllClientsWhenThereAreSeveralClientsToRetrieveShouldReturnClientsAsList 0.003 s
testFindAllClientsWhenThereAreNoClientsToRetrieveShouldReturnEmptyList 0.002 s

TransactionalBookingServiceTest$BothRepositoriesTest$TransactionSuccessfulTest$InsertNewReservationTest

testInsertNewReservationWhenReservationIsNewAndAssociatedClientDoesNotExistShouldNotInsertAndThrow 0.021 s
testInsertNewReservationWhenReservationIsNewAndAssociatedClientExistsShouldInsertAndReturn 0.013 s
testInsertNewReservationWhenReservationAlreadyExistsShouldNotInsertAndThrow 0.008 s

TransactionHandlerFactoryTest$CreateTransactionHandlerTest$MongoDBHandlerTest

testCreateTransactionHandlerWhenParametersAreValidShouldReturnTransactionMongoHandler 0.006 s
testCreateTransactionHandlerWhenMongoClientIsNullShouldThrow 0.001 s
testCreateTransactionHandlerWhenTransactionOptionsAreNullShouldReturnTransactionMongoHandler 0.002 s

TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionSuccessfulTest$FindReservationOnTest

testFindReservationOnWhenReservationDoesNotExistShouldThrow 0.005 s
testFindReservationOnWhenReservationExistsShouldReturnTheReservation 0.003 s

TransactionalBookingServiceTest$BothRepositoriesTest$TransactionSuccessfulTest$RemoveClientTest

testRemoveClientWhenClientExistsWithoutExistingReservationsShouldRemove 0.006 s
testRemoveClientWhenClientExistsWithSeveralExistingReservationsShouldRemove 0.007 s
testRemoveClientWhenClientDoesNotExistShouldNotRemoveAnythingAndThrow 0.006 s
testRemoveClientWhenClientExistsWithSingleExistingReservationShouldRemove 0.006 s

TransactionPostgresHandlerTest$CloseHandlerTest

testCloseHandlerWhenHandlerIsAlreadyClosedShouldMaintainItCloseAndNotThrow 0.003 s
testCloseHandlerWhenHandlerIsOpenShouldClose 0.005 s

TransactionPostgresManagerTest$ClientReservationTransactionCodeTest

testDoInTransactionWhenCodeThrowsUniquenessConstraintViolationExceptionShouldRollBackAndThrow 0.081 s
testDoInTransactionWhenCodeThrowsNotNullConstraintViolationExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeCallsMethodsShouldApplyAndReturn 0.004 s
testDoInTransactionWhenCommitFailsShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeThrowsIllegalArgumentExceptionShouldRollBackAndThrow 0.002 s
testDoInTransactionWhenCodeThrowsUpdateFailureExceptionShouldRollBackAndThrow 0.002 s
testDoInTransactionWhenCodeThrowsOthersRuntimeExceptionsShouldRollBackAndRethrow 0.003 s

TransactionalBookingServiceTest$ClientRepositoryTest$TransactionSuccessfulTest$FindClientNamedTest

testFindClientNamedWhenClientExistsShouldReturnTheClient 0.003 s
testFindClientNamedWhenClientDoesNotExistShouldThrow 0.003 s

TransactionalBookingServiceTest$ClientRepositoryTest$TransactionFailureTest

testFindClientNamedWhenTransactionFailsShouldThrow 0.004 s
testFindAllClientsWhenTransactionFailsShouldThrow 0.004 s
testFindClientWhenTransactionFailsShouldThrow 0.004 s
testInsertNewClientWhenTransactionFailsShouldThrow 0.003 s
testRenameClientWhenTransactionFailsShouldThrow 0.003 s

TransactionMongoHandlerTest$CloseHandlerTest

testCloseHandlerWhenHandlerIsAlreadyClosedShouldMaintainItCloseAndNotThrow 0.011 s
testCloseHandlerWhenHandlerIsOpenShouldClose 0.010 s

TransactionalBookingServiceTest$BothRepositoriesTest$TransactionFailureTest

testInsertNewReservationWhenTransactionFailsShouldThrow 1.552 s
testRemoveClientWhenTransactionFailsShouldThrow 0.012 s
testRemoveClientNamedWhenTransactionFailsShouldThrow 0.010 s

TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionFailureTest

testFindAllReservationsWhenTransactionFailsShouldThrow 0.005 s
testRescheduleReservationWhenTransactionFailsShouldThrow 0.004 s
testRemoveReservationWhenTransactionFailsShouldThrow 0.004 s
testFindReservationWhenTransactionFailsShouldThrow 0.004 s
testFindReservationOnWhenTransactionFailsShouldThrow 0.005 s
testRemoveReservationOnWhenTransactionFailsShouldThrow 0.004 s

TransactionPostgresHandlerTest$StartTransactionTest

testStartTransactionWhenThereIsAlreadyAnActiveTransactionShouldMaintainItActiveAndNotThrow 0.002 s
testStartTransactionWhenThereAreNoActiveTransactionShouldStart 0.003 s

TransactionalBookingServiceTest$ClientRepositoryTest$TransactionSuccessfulTest$InsertNewClientTest

testInsertNewClientWhenClientDoesNotAlreadyExistShouldInsertAndReturn 0.011 s
testInsertNewClientWhenClientAlreadyExistsShouldNotInsertAndThrow 0.004 s

TransactionPostgresHandlerTest$RollbackTransactionTest

testRollbackTransactionWhenThereIsAnActiveTransactionShouldClose 0.005 s
testRollbackTransactionWhenThereIsNoActiveTransactionShouldMaintainItCloseAndNotThrow 0.001 s

TransactionalBookingServiceTest$ReservationRepositoryTest$TransactionSuccessfulTest$FindReservationTest

testFindReservationWhenReservationDoesNotExistShouldThrow 0.005 s
testFindReservationWhenReservationExistsShouldReturnTheReservation 0.003 s

TransactionPostgresHandlerTest$CommitTransactionTest

testCommitTransactionWhenThereIsAnActiveTransactionShouldClose 0.003 s
testCommitTransactionWhenThereIsNoActiveTransactionShouldMaintainItCloseAndNotThrow 0.005 s

TransactionMongoManagerTest$ClientTransactionCodeTest

testDoInTransactionWhenCallsAMethodShouldApplyAndReturn 0.003 s
testDoInTransactionWhenCodeThrowsUniquenessConstraintViolationExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeThrowsNotNullConstraintViolationExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCommitFailsShouldRollBackAndThrow 0.004 s
testDoInTransactionWhenCodeThrowsIllegalArgumentExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeThrowsUpdateFailureExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeThrowsOthersRuntimeExceptionsShouldRollBackAndRethrow 0.003 s

TransactionMongoManagerTest$ReservationTransactionCodeTest

testDoInTransactionWhenCallsAMethodShouldApplyAndReturn 0.004 s
testDoInTransactionWhenCodeThrowsUniquenessConstraintViolationExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeThrowsNotNullConstraintViolationExceptionShouldRollBackAndThrow 0.004 s
testDoInTransactionWhenCommitFailsShouldRollBackAndThrow 0.004 s
testDoInTransactionWhenCodeThrowsIllegalArgumentExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeThrowsUpdateFailureExceptionShouldRollBackAndThrow 0.003 s
testDoInTransactionWhenCodeThrowsOthersRuntimeExceptionsShouldRollBackAndRethrow 0.003 s

ServedBookingPresenterTest$DeleteClientTest

testDeleteClientWhenDatabaseRequestFailsShouldShowErrorAndUpdateView 0.004 s
testDeleteClientWhenConcurrentRequestsOccurShouldDeleteOnce 0.107 s
testDeleteClientWhenClientIsNullShouldShowError 0.002 s
testDeleteClientWhenClientIsNotInRepositoryShouldShowErrorAndUpdateView 0.004 s
testDeleteClientWhenClientIsInRepositoryShouldDelegateToServiceAndNotifyView 0.005 s

ServedBookingPresenterTest$RenameClientTest$ValidationFailureTest

testRenameClientWhenNewNameIsNotValidShouldShowErrorAndNotRename 0.005 s
testRenameClientWhenNewSurnameIsNotValidShouldShowErrorAndNotRename 0.004 s

ServedBookingPresenterTest$RenameClientTest

testRenameClientWhenClientIsNullShouldShowError 0.005 s

ServedBookingPresenterTest$AddClientTest$ValidationFailureTest

testAddClientWhenSurnameIsNotValidShouldShowErrorAndNotInsert 0.005 s
testAddClientWhenNameIsNotValidShouldShowErrorAndNotInsert 0.003 s

BookingSwingViewTest

testMonthFormTxtWhenTextIsDeletedShouldDisableRescheduleBtn 2.759 s
testDayFormTxtWhenAReservationIsSelectedAndBothYearAndMonthAreNotBlankAndTextIsTypedShouldEnableRescheduleBtn 1.129 s
testClientRenamedWhenOnlyThatClientIsDisplayedShouldRenameIt 0.082 s
testDayFormTxtWhenClientIsNotSelectedAndBothYearAndMonthAreBlankAndTextIsTypedShouldNotEnableAddReservationBtn 0.887 s
testDisplayClientListWhenAClientIsNullShouldShowNullString 0.081 s
testClientAddedWhenThereIsAClientSelectedShouldNotChangeTheSelection 0.361 s
testClientListWhenBothMonthAndDayAreBlankAndAClientIsSelectedShouldNotEnableAddReservationBtn 0.875 s
testClientListWhenBothYearAndDayAreBlankAndAClientIsSelectedShouldNotEnableAddReservationBtn 0.870 s
testYearFormTxtWhenClientIsNotSelectedAndDayIsBlankAndTextIsTypedShouldNotEnableAddReservationBtn 1.118 s
testRescheduleBtnWhenItIsClickedShouldDelegateToPresenterAndDisableIt 1.107 s
testYearFormTxtWhenDayIsBlankAndTextIsTypedShouldNotEnableRescheduleBtn 1.345 s
testClientRemovedWhenThatClientIsSelectedShouldClearTheSelectionAndDisableRelatedButtons 0.370 s
testDayFormTxtWhenReservationIsNotSelectedAndMonthIsBlankAndTextIsTypedShouldNotEnableRescheduleBtn 0.874 s
testRenameBtnWhenItIsClickedShouldDelegateToPresenterAndDisableIt 0.799 s
testReservationAddedWhenNoReservationsAreDisplayedShouldPopulateTheList 0.053 s
testReservationListWhenBothYearAndMonthAndDayAreBlankAndAReservationIsSelectedShouldNotEnableRescheduleBtn 0.863 s
testReservationRescheduledWhenAnotherReservationIsSelectedShouldNotChangeTheSelection 0.344 s
testShowOperationErrorShouldShowTheMessage 0.060 s
testReservationListSelectionWhenTheAssociatedClientExistsShouldSelectIt 0.348 s
testMonthFormTxtWhenDayIsBlankAndTextIsTypedShouldNotEnableAddReservationBtn 1.092 s
testClientListWhenSurnameIsBlankAndAClientIsSelectedShouldNotEnableRenameBtn 0.556 s
testGUIWhenIsStartedShouldShowControlsInTheirInitialStates 0.072 s
testYearFormTxtWhenAReservationIsSelectedAndBothMonthAndDayAreNotBlankAndTextIsTypedShouldEnableRescheduleBtn 1.337 s
testShowAllReservationsWhenListOfReservationsIsEmptyShouldNotShowAnything 0.058 s
testClientListWhenBothYearAndMonthAreBlankAndAClientIsSelectedShouldNotEnableAddReservationBtn 0.866 s
testShowFormErrorShouldShowTheMessage 0.053 s
testYearFormTxtWhenMonthIsBlankAndTextIsTypedShouldNotEnableAddReservationBtn 1.335 s
testReservationRemovedWhenOnlyThatReservationIsDisplayedShouldClearTheList 0.050 s
testYearFormTxtWhenAReservationIsSelectedAndBothMonthAndDayAreNotBlankAndSpacesAreTypedShouldNotEnableRescheduleBtn 1.213 s
testDayFormTxtWhenReservationIsNotSelectedAndBothYearAndMonthAreBlankAndTextIsTypedShouldNotEnableRescheduleBtn 0.862 s
testYearFormTxtWhenTextIsDeletedShouldDisableAddReservationBtn 1.419 s
testYearFormTxtWhenReservationIsNotSelectedAndMonthIsBlankAndTextIsTypedShouldNotEnableRescheduleBtn 1.098 s
testReservationListWhenYearIsBlankAndAReservationIsSelectedShouldNotEnableRescheduleBtn 0.853 s
testYearFormTxtWhenAClientIsSelectedAndBothMonthAndDayAreNotBlankAndSpacesAreTypedShouldNotEnableAddReservationBtn 1.210 s
testYearFormTxtWhenReservationIsNotSelectedAndDayIsBlankAndTextIsTypedShouldNotEnableRescheduleBtn 1.097 s
testYearFormTxtWhenClientIsNotSelectedAndTextIsTypedShouldNotEnableAddReservationBtn 1.107 s
testReservationListWhenBothYearAndDayAreBlankAndAReservationIsSelectedShouldNotEnableRescheduleBtn 0.861 s
testMonthFormTxtWhenReservationIsNotSelectedAndTextIsTypedShouldNotEnableRescheduleBtn 0.858 s
testMonthFormTxtWhenClientIsNotSelectedAndYearIsBlankAndTextIsTypedShouldNotEnableAddReservationBtn 0.858 s
testReservationRescheduledWhenThatReservationIsSelectedShouldSelectTheRescheduledOne 0.340 s
testReservationAddedWhenThereIsAReservationsSelectedShouldNotChangeTheSelection 0.346 s
testNameFormTxtWhenSurnameIsNotBlankAndTextIsTypedShouldEnableAddClientBtn 1.234 s
testClientAddedWhenClientFormsAreNotEmptyShouldResetFormsAndDisableRelatedButtons 0.283 s
testClientListWhenNameAndSurnameAreNotBlankAndAClientIsSelectedShouldEnableRenameBtn 0.562 s
testReservationRemovedWhenThereAreErrorMessagesShouldResetErrors 0.054 s
testNameFormTxtWhenSurnameIsBlankAndTextIsTypedShouldNotEnableRenameBtn 1.503 s
testDayFormTxtWhenBothYearAndMonthAreBlankAndTextIsTypedShouldNotEnableRescheduleBtn 1.093 s
testMonthFormTxtWhenAReservationIsSelectedAndBothYearAndDayAreNotBlankAndTextIsTypedShouldEnableRescheduleBtn 1.093 s
testSurnameFormTxtWhenClientIsNotSelectedAndTextIsTypedShouldNotEnableRenameBtn 1.735 s
testMonthFormTxtWhenReservationIsNotSelectedAndYearIsBlankAndTextIsTypedShouldNotEnableRescheduleBtn 0.870 s
testClientAddedWhenThereAreErrorMessagesShouldResetErrors 0.053 s
testNameFormTxtWhenAClientIsSelectedAndSurnameIsNotBlankAndTextIsTypedShouldEnableRenameBtn 1.502 s
testMonthFormTxtWhenClientIsNotSelectedAndBothYearAndDayAreBlankAndTextIsTypedShouldNotEnableAddReservationBtn 0.864 s
testDayFormTxtWhenClientIsNotSelectedAndMonthIsBlankAndTextIsTypedShouldNotEnableAddReservationBtn 0.867 s
testYearFormTxtWhenReservationIsNotSelectedAndTextIsTypedShouldNotEnableRescheduleBtn 1.101 s
testRemoveClientBtnWhenItIsClickedShouldDelegateToPresenterAndDisableIt 0.571 s
testNameFormTxtWhenSurnameIsNotBlankAndSpacesAreTypedShouldNotEnableAddClientBtn 0.768 s
testDayFormTxtWhenClientIsNotSelectedAndYearIsBlankAndTextIsTypedShouldNotEnableAddReservationBtn 0.861 s
testReservationAddedWhenThereAreErrorMessagesShouldResetErrors 0.055 s
testShowAllClientsWhenThereAreOtherClientsDisplayedShouldShowOnlyNewOnes 0.054 s
testClientListWhenBothNameAndSurnameAreBlankAndAClientIsSelectedShouldNotEnableRenameBtn 0.561 s
testReservationListWhenMonthIsBlankAndAReservationIsSelectedShouldNotEnableRescheduleBtn 0.851 s
testAddClientBtnWhenItIsClickedShouldDelegateToPresenterAndDisableIt 0.515 s
testReservationListSelectionWhenThereIsANullClientInClientListShouldNotThrow 0.337 s
testReservationListWhenDayIsBlankAndAReservationIsSelectedShouldNotEnableRescheduleBtn 0.855 s
testShowAllClientsWhenAClientIsSelectedShouldClearTheSelectionAndDisableRelatedButtons 0.337 s
testNameFormTxtWhenTextIsDeletedShouldDisableRenameBtn 1.242 s
testReservationListWhenBothYearAndMonthAreBlankAndAReservationIsSelectedShouldNotEnableRescheduleBtn 0.847 s
testDayFormTxtWhenTextIsDeletedShouldDisableRescheduleBtn 1.294 s
testClientAddedWhenNoClientsAreDisplayedShouldPopulateTheList 0.066 s
testShowAllClientsWhenListOfClientsIsNotEmptyShouldShowAllOfThem 0.056 s
testReservationRemovedWhenOtherReservationsAreDisplayedShouldRemoveIt 0.051 s
testMonthFormTxtWhenTextIsDeletedShouldDisableAddReservationBtn 1.409 s
testReservationListSelectionWhenTheReservationSelectedIsNullShouldClearSelection 0.614 s
testMonthFormTxtWhenDayIsBlankAndTextIsTypedShouldNotEnableRescheduleBtn 1.095 s
testClientListWhenAClientIsSelectedShouldEnableRemoveClientBtn 0.340 s
testMonthFormTxtWhenBothYearAndDayAreBlankAndTextIsTypedShouldNotEnableRescheduleBtn 1.091 s
testDayFormTxtWhenReservationIsNotSelectedAndYearIsBlankAndTextIsTypedShouldNotEnableRescheduleBtn 0.858 s
testDayFormTxtWhenClientIsNotSelectedAndTextIsTypedShouldNotEnableAddReservationBtn 0.867 s
testYearFormTxtWhenDayIsBlankAndTextIsTypedShouldNotEnableAddReservationBtn 1.329 s
testNameFormTxtWhenSurnameIsBlankAndTextIsTypedShouldNotEnableAddClientBtn 1.215 s
testYearFormTxtWhenReservationIsNotSelectedAndBothMonthAndDayAreBlankAndTextIsTypedShouldNotEnableRescheduleBtn 1.105 s
testReservationRemovedWhenThatReservationIsSelectedShouldClearTheSelectionAndDisableRelatedButtons 0.334 s
testDayFormTxtWhenMonthIsBlankAndTextIsTypedShouldNotEnableAddReservationBtn 1.095 s
testMonthFormTxtWhenYearIsBlankAndTextIsTypedShouldNotEnableRescheduleBtn 1.089 s
testMonthFormTxtWhenClientIsNotSelectedAndDayIsBlankAndTextIsTypedShouldNotEnableAddReservationBtn 0.875 s
testNameFormTxtWhenClientIsNotSelectedAndTextIsTypedShouldNotEnableRenameBtn 1.268 s
testReservationRescheduledWhenOnlyThatReservationIsDisplayedShouldRescheduleIt 0.048 s
testMonthFormTxtWhenReservationIsNotSelectedAndBothYearAndDayAreBlankAndTextIsTypedShouldNotEnableRescheduleBtn 0.864 s
testReservationRemovedWhenAnotherReservationIsSelectedShouldNotChangeTheSelectionAndNotDisableRelatedButtons 0.852 s
testReservationListWhenBothYearAndMonthAndDayAreNotBlankAndReservationIsSelectedShouldEnableRescheduleBtn 0.850 s
testClientRemovedWhenOnlyThatClientIsDisplayedShouldClearTheList 0.050 s
testNameFormTxtWhenClientIsNotSelectedAndSurnameIsBlankAndTextIsTypedShouldNotEnableRenameBtn 1.267 s
testClientListWhenClientIsDeselectedShouldDisableAddReservationBtn 0.917 s
testClientListWhenDayIsBlankAndAClientIsSelectedShouldNotEnableAddReservationBtn 0.858 s
testDayFormTxtWhenYearIsBlankAndTextIsTypedShouldNotEnableRescheduleBtn 1.107 s
testClientListWhenBothYearAndMonthAndDayAreBlankAndAClientIsSelectedShouldNotEnableAddReservationBtn 0.845 s
testSurnameFormTxtWhenAClientIsSelectedAndNameIsNotBlankAndSpacesAreTypedShouldNotEnableRenameBtn 0.923 s
testSurnameFormTxtWhenTextIsDeletedShouldDisableRenameBtn 1.119 s
testMonthFormTxtWhenAClientIsSelectedAndBothYearAndDayAreNotBlankAndSpacesAreTypedShouldNotEnableAddReservationBtn 1.093 s
testReservationListWhenReservationIsDeselectedShouldDisableRemoveReservationBtn 0.380 s
testReservationRescheduledWhenReservationFormsAreNotEmptyShouldResetFormsAndDisableRelatedButtons 0.569 s
testDayFormTxtWhenBothYearAndMonthAreBlankAndTextIsTypedShouldNotEnableAddReservationBtn 1.089 s
testClientListWhenClientIsDeselectedShouldDisableRenameBtn 0.736 s
testSurnameFormTxtWhenClientIsNotSelectedAndNameIsBlankAndTextIsTypedShouldNotEnableRenameBtn 1.738 s
testReservationListWhenBothMonthAndDayAreBlankAndAReservationIsSelectedShouldNotEnableRescheduleBtn 0.855 s
testMonthFormTxtWhenAClientIsSelectedAndBothYearAndDayAreNotBlankAndTextIsTypedShouldEnableAddReservationBtn 1.089 s
testDayFormTxtWhenYearIsBlankAndTextIsTypedShouldNotEnableAddReservationBtn 1.108 s
testDayFormTxtWhenAClientIsSelectedAndBothYearAndMonthAreNotBlankAndSpacesAreTypedShouldNotEnableAddReservationBtn 0.977 s
testClientRenamedWhenThereAreErrorMessagesShouldResetErrors 0.050 s
testDayFormTxtWhenReservationIsNotSelectedAndTextIsTypedShouldNotEnableRescheduleBtn 0.865 s
testYearFormTxtWhenClientIsNotSelectedAndMonthIsBlankAndTextIsTypedShouldNotEnableAddReservationBtn 1.096 s
testMonthFormTxtWhenClientIsNotSelectedAndTextIsTypedShouldNotEnableAddReservationBtn 0.861 s
testClientRenamedWhenAnotherClientIsSelectedShouldNotChangeTheSelection 0.338 s
testNameFormTxtWhenTextIsDeletedShouldDisableAddClientBtn 0.837 s
testSurnameFormTxtWhenNameIsBlankAndTextIsTypedShouldNotEnableRenameBtn 2.079 s
testDayFormTxtWhenAClientIsSelectedAndBothYearAndMonthAreNotBlankAndTextIsTypedShouldEnableAddReservationBtn 1.094 s
testReservationAddedWhenOtherReservationsAreDisplayedShouldAddItToTheList 0.051 s
testRemoveReservationBtnWhenItIsClickedShouldDelegateToPresenterAndDisableIt 0.584 s
testReservationListWhenReservationIsDeselectedShouldDisabledRescheduleBtn 0.898 s
testYearFormTxtWhenBothMonthAndDayAreBlankAndTextIsTypedShouldNotEnableAddReservationBtn 1.337 s
testClientRenamedWhenThatClientIsSelectedShouldSelectTheRenamedOne 0.335 s
testShowAllReservationsWhenThereAreOtherReservationsDisplayedShouldShowOnlyNewOnes 0.051 s
testSurnameFormTxtWhenNameIsNotBlankAndTextIsTypedShouldEnableAddClientBtn 1.098 s
testDayFormTxtWhenTextIsDeletedShouldDisableAddReservationBtn 1.305 s
testReservationListWhenAReservationIsSelectedShouldEnableRemoveReservationBtn 0.330 s
testReservationRescheduledWhenThereAreErrorMessagesShouldResetErrors 0.055 s
testDisplayReservationListWhenAReservationIsNullShouldShowNullString 0.052 s
testClientRemovedWhenThereAreErrorMessagesShouldResetErrors 0.069 s
testClientListWhenMonthIsBlankAndAClientIsSelectedShouldNotEnableAddReservationBtn 0.850 s
testReservationRescheduledWhenOtherReservationsAreDisplayedShouldNotChangeItsPosition 0.047 s
testClientListWhenNameIsBlankAndAClientIsSelectedShouldNotEnableRenameBtn 0.564 s
testMonthFormTxtWhenYearIsBlankAndTextIsTypedShouldNotEnableAddReservationBtn 1.097 s
testClientRenamedWhenClientFormsAreNotEmptyShouldResetFormsAndDisableRelatedButtons 0.288 s
testShowAllReservationsWhenAReservationIsSelectedShouldClearTheSelectionAndDisableRelatedButtons 0.334 s
testYearFormTxtWhenAClientIsSelectedAndBothMonthAndDayAreNotBlankAndTextIsTypedShouldEnableAddReservationBtn 1.332 s
testReservationAddedWhenReservationFormsAreNotEmptyShouldResetFormsAndDisableRelatedButtons 0.578 s
testClientListWhenBothYearMonthAndDayAreNotBlankAndClientIsSelectedShouldEnableAddReservationBtn 0.850 s
testSurnameFormTxtWhenAClientIsSelectedAndNameIsNotBlankAndTextIsTypedShouldEnableRenameBtn 2.089 s
testReservationListSelectionWhenTheAssociatedClientDoesNotExistShouldClearSelection 0.625 s
testMonthFormTxtWhenAReservationIsSelectedAndBothYearAndDayAreNotBlankAndSpacesAreTypedShouldNotEnableRescheduleBtn 1.087 s
testDisplayReservationListWhenAReservationIsPresentShouldShowDate 0.048 s
testClientRemovedWhenAnotherClientIsSelectedShouldNotChangeTheSelectionAndNotDisableRelatedButtons 1.199 s
testClientListWhenYearIsBlankAndAClientIsSelectedShouldNotEnableAddReservationBtn 0.850 s
testAddReservationBtnWhenItIsClickedShouldDelegateToPresenterAndDisableIt 1.077 s
testShowAllClientsWhenListOfClientsIsEmptyShouldNotShowAnything 0.052 s
testYearFormTxtWhenBothMonthAndDayAreBlankAndTextIsTypedShouldNotEnableRescheduleBtn 1.329 s
testClientRenamedWhenOtherClientsAreDisplayedShouldNotChangeItsPosition 0.049 s
testDayFormTxtWhenMonthIsBlankAndTextIsTypedShouldNotEnableRescheduleBtn 1.087 s
testMonthFormTxtWhenBothYearAndDayAreBlankAndTextIsTypedShouldNotEnableAddReservationBtn 1.086 s
testDisplayClientListWhenAClientIsPresentShouldShowNameAndSurname 0.050 s
testYearFormTxtWhenMonthIsBlankAndTextIsTypedShouldNotEnableRescheduleBtn 1.329 s
testYearFormTxtWhenTextIsDeletedShouldDisableRescheduleBtn 1.407 s
testClientListWhenClientIsDeselectedShouldDisableRemoveClientBtn 0.386 s
testClientRemovedWhenOtherClientsAreDisplayedShouldRemoveIt 0.057 s
testDayFormTxtWhenAReservationIsSelectedAndBothYearAndMonthAreNotBlankAndSpacesAreTypedShouldNotEnableRescheduleBtn 0.967 s
testShowAllReservationsWhenListOfReservationsIsNotEmptyShouldShowAllOfThem 0.048 s
testMonthFormTxtWhenReservationIsNotSelectedAndDayIsBlankAndTextIsTypedShouldNotEnableRescheduleBtn 0.866 s
testSurnameFormTxtWhenNameIsBlankAndTextIsTypedShouldNotEnableAddClientBtn 1.098 s
testSurnameFormTxtWhenNameIsNotBlankAndSpacesAreTypedShouldNotEnableAddClientBtn 0.516 s
testClientAddedWhenOtherClientsAreDisplayedShouldAddItToTheList 0.061 s
testNameFormTxtWhenAClientIsSelectedAndSurnameIsNotBlankAndSpacesAreTypedShouldNotEnableRenameBtn 0.914 s
testYearFormTxtWhenClientIsNotSelectedAndBothMonthAndDayAreBlankAndTextIsTypedShouldNotEnableAddReservationBtn 1.109 s
testSurnameFormTxtWhenTextIsDeletedShouldDisableAddClientBtn 1.536 s

ServedBookingPresenterTest$AddReservationTest$ValidationFailureTest

testAddReservationWhenClientIdIsNotValidShouldShowErrorAndNotInsert 0.009 s
testAddReservationWhenDateIsNotValidShouldShowErrorAndNotInsert 0.003 s

ServedBookingPresenterTest$AddReservationTest

testAddReservationWhenClientIsNullShouldShowError 0.004 s

ServedBookingPresenterTest$DeleteReservationTest

testDeleteReservationWhenReservationIsNotInRepositoryShouldShowErrorAndUpdateView 0.003 s
testDeleteReservationWhenReservationIsInRepositoryShouldDelegateToServiceAndNotifyView 0.003 s
testDeleteReservationWhenDatabaseRequestFailsShouldShowErrorAndUpdateView 0.003 s
testDeleteReservationWhenConcurrentRequestsOccurShouldDeleteOnce 0.109 s
testDeleteReservationWhenReservationIsNullShouldShowError 0.002 s

ServedBookingPresenterTest$AddClientTest$ValidationSuccessfulTest

testAddClientWhenConcurrentRequestsOccurShouldAddOnce 0.133 s
testAddClientWhenDatabaseRequestFailsShouldShowErrorAndUpdateView 0.005 s
testAddClientWhenClientIsNotNewShouldShowErrorAndUpdateView 0.003 s
testAddClientWhenClientIsNewShouldValidateItAndDelegateToServiceAndNotifyView 0.003 s

ServedBookingPresenterTest$RenameClientTest$ValidationSuccessfulTest

testRenameClientWhenRenamedClientIsNewShouldValidateItAndDelegateToServiceAndNotifyView 0.005 s
testRenameClientWhenDatabaseRequestFailsShouldShowErrorAndUpdateView 0.005 s
testRenameClientWhenValidatedNameHasNotChangedShouldRename 0.005 s
testRenameClientWhenBothValidatedNamesHaveNotChangedShouldShowErrorAndNotRename 0.004 s
testRenameClientWhenConcurrentRequestsOccurShouldRenameOnce 0.118 s
testRenameClientWhenValidatedSurnameHasNotChangedShouldRename 0.005 s
testRenameClientWhenRenamedClientIsNotNewShouldShowErrorAndUpdateView 0.005 s
testRenameClientWhenClientIsNotInDatabaseShouldShowErrorAndUpdateView 0.004 s

ServedBookingPresenterTest$AddReservationTest$ValidationSuccessfulTest

testAddReservationWhenDatabaseRequestFailsShouldShowErrorAndUpdateView 0.004 s
testAddReservationWhenReservationIsNotNewShouldShowErrorAndUpdateView 0.004 s
testAddReservationWhenConcurrentRequestsOccurShouldAddOnce 0.110 s
testAddReservationWhenReservationIsNewShouldValidateItAndDelegateToServiceAndNotifyView 0.004 s
testAddReservationWhenAssociatedClientIsNotInDatabaseShouldShowErrorAndUpdateView 0.004 s

ServedBookingPresenterTest$AllClientsTest

testAllClientsWhenThereAreNoClientsInRepositoryShouldCallViewWithEmptyList 0.003 s
testAllClientsWhenThereAreSeveralClientsInRepositoryShouldCallViewWithClientsAsList 0.002 s
testAllClientsWhenDatabaseRequestFailsShouldShowErrorAndNotThrow 0.002 s

ServedBookingPresenterTest$AllReservationsTest

testAllReservationsWhenDatabaseRequestFailsShouldShowErrorAndNotThrow 0.003 s
testAllReservationsWhenThereAreNoReservationsInRepositoryShouldCallViewWithEmptyList 0.002 s
testAllReservationsWhenThereAreSeveralReservationsInRepositoryShouldCallViewWithReservationsAsList 0.002 s

ServedBookingPresenterTest$RescheduleReservationTest$ValidationSuccessfulTest

testRescheduleReservationWhenReservationIsNotInDatabaseShouldShowErrorAndUpdateView 0.011 s
testRescheduleReservationWhenDatabaseRequestFailsShouldShowErrorAndUpdateView 0.008 s
testRescheduleReservationWhenConcurrentRequestsOccurShouldRescheduleOnce 0.131 s
testRescheduleReservationWhenRescheduledReservationIsNewShouldValidateItAndDelegateToServiceAndNotifyView 0.009 s
testRescheduleReservationWhenValidatedDateHasNotChangedShouldShowErrorAndNotReschedule 0.006 s
testRescheduleReservationWhenRescheduledReservationIsNotNewShouldShowErrorAndUpdateView 0.007 s

ServedBookingPresenterTest$RescheduleReservationTest

testRescheduleReservationWhenReservationIsNullShouldShowError 1.309 s
testRescheduleReservationWhenNewDateIsNotValidShouldShowErrorAndNotReschedule 0.012 s