CustomerOrderRepositoryTest

9

tests

0

failures

0

ignored

0.222s

duration

100%

successful

Tests

Test Duration Result
cataloguePriceChangesPreserveOrderPriceAndTotal() 0.029s passed
databaseRejectsNegativePrice() 0.064s passed
databaseRejectsZeroQuantity() 0.023s passed
externalReferencesCanBeRead() 0.023s passed
factoryRejectsMissingInputsAndInvalidPrice() 0.009s passed
factoryRejectsNonPositiveQuantity() 0.011s passed
ownerLookupExcludesOtherCustomers() 0.022s passed
pendingOrderCanBeSavedAndRead() 0.013s passed
updatesRefreshTimestampButPreserveCreationTime() 0.028s passed

Standard output

2026-10-18T11:02:37.892Z  INFO 3989 --- [    Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.comp5348.group06.store.repository.CustomerOrderRepositoryTest]: CustomerOrderRepositoryTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2026-10-18T11:02:37.896Z  INFO 3989 --- [    Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.comp5348.group06.store.StoreApplication for test class com.comp5348.group06.store.repository.CustomerOrderRepositoryTest
2026-10-18T11:02:37.959Z  WARN 3989 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23514
2026-10-18T11:02:37.959Z ERROR 3989 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: new row for relation "customer_order" violates check constraint "customer_order_unit_price_at_order_check"
  Detail: Failing row contains (1, 7, 4, 3, -0.01, null, null, null, PAYMENT_PENDING, NOT_STARTED, NOT_REQUESTED, 2026-10-18 11:02:37.932597+00, 2026-10-18 11:02:37.932597+00, null, null, null, null).
2026-10-18T11:02:38.105Z  WARN 3989 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23514
2026-10-18T11:02:38.107Z ERROR 3989 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: new row for relation "customer_order" violates check constraint "customer_order_quantity_check"
  Detail: Failing row contains (6, 13, 9, 0, 19.95, null, null, null, PAYMENT_PENDING, NOT_STARTED, NOT_REQUESTED, 2026-10-18 11:02:38.100729+00, 2026-10-18 11:02:38.100729+00, null, null, null, null).