CustomerOrderRepositoryTest

9

tests

0

failures

0

ignored

0.219s

duration

100%

successful

Tests

Test Duration Result
cataloguePriceChangesPreserveOrderPriceAndTotal() 0.024s passed
databaseRejectsNegativePrice() 0.062s passed
databaseRejectsZeroQuantity() 0.014s passed
externalReferencesCanBeRead() 0.020s passed
factoryRejectsMissingInputsAndInvalidPrice() 0.007s passed
factoryRejectsNonPositiveQuantity() 0.006s passed
ownerLookupExcludesOtherCustomers() 0.027s passed
pendingOrderCanBeSavedAndRead() 0.015s passed
updatesRefreshTimestampButPreserveCreationTime() 0.044s passed

Standard output

2026-10-17T09:37:06.973Z  INFO 4069 --- [    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-17T09:37:06.978Z  INFO 4069 --- [    Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.comp5348.group06.store.StoreApplication for test class com.comp5348.group06.store.repository.CustomerOrderRepositoryTest
2026-10-17T09:37:07.034Z  WARN 4069 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23514
2026-10-17T09:37:07.035Z ERROR 4069 --- [    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, 4, 4, 3, -0.01, null, null, null, PAYMENT_PENDING, NOT_STARTED, NOT_REQUESTED, 2026-10-17 09:37:07.011088+00, 2026-10-17 09:37:07.011088+00, null, null).
2026-10-17T09:37:07.191Z  WARN 4069 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23514
2026-10-17T09:37:07.191Z ERROR 4069 --- [    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, 10, 9, 0, 19.95, null, null, null, PAYMENT_PENDING, NOT_STARTED, NOT_REQUESTED, 2026-10-17 09:37:07.187281+00, 2026-10-17 09:37:07.187281+00, null, null).