CustomerOrderRepositoryTest

9

tests

0

failures

0

ignored

0.203s

duration

100%

successful

Tests

Test Duration Result
cataloguePriceChangesPreserveOrderPriceAndTotal() 0.017s passed
databaseRejectsNegativePrice() 0.070s passed
databaseRejectsZeroQuantity() 0.016s passed
externalReferencesCanBeRead() 0.013s passed
factoryRejectsMissingInputsAndInvalidPrice() 0.007s passed
factoryRejectsNonPositiveQuantity() 0.005s passed
ownerLookupExcludesOtherCustomers() 0.020s passed
pendingOrderCanBeSavedAndRead() 0.018s passed
updatesRefreshTimestampButPreserveCreationTime() 0.037s passed

Standard output

2026-10-17T08:31:02.345Z  INFO 4401 --- [    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-17T08:31:02.351Z  INFO 4401 --- [    Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.comp5348.group06.store.StoreApplication for test class com.comp5348.group06.store.repository.CustomerOrderRepositoryTest
2026-10-17T08:31:02.418Z  WARN 4401 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23514
2026-10-17T08:31:02.419Z ERROR 4401 --- [    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 08:31:02.38945+00, 2026-10-17 08:31:02.38945+00).
2026-10-17T08:31:02.543Z  WARN 4401 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23514
2026-10-17T08:31:02.544Z ERROR 4401 --- [    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 08:31:02.53965+00, 2026-10-17 08:31:02.53965+00).