From f86ae241dd12571e3b6ba280be07534944a27640 Mon Sep 17 00:00:00 2001 From: samyuktaprabhu <33195453+samyuktaprabhu@users.noreply.github.com> Date: Mon, 16 Mar 2026 15:27:54 +0100 Subject: [PATCH] docs: update SLT docs for CatalogServiceTest refactor & remove extra emit --- java/developing-applications/testing.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/java/developing-applications/testing.md b/java/developing-applications/testing.md index 36c07f2d7d..bb224a3655 100644 --- a/java/developing-applications/testing.md +++ b/java/developing-applications/testing.md @@ -148,8 +148,7 @@ To verify the proper discount application in our example, we can run a `Select` public class CatalogServiceTest { @Autowired - @Qualifier(CatalogService_.CDS_NAME) - private CqnService catalogService; + private CatalogService catalogService; @Test public void discountApplied() { @@ -172,8 +171,7 @@ Looking at the `onSubmitOrder` method from our example above we see that it uses public class CatalogServiceTest { @Autowired - @Qualifier(CatalogService_.CDS_NAME) - private CqnService catalogService; + private CatalogService catalogService; @Test public void submitOrder() { @@ -196,8 +194,7 @@ In the same way you can verify that the `ServiceException` is being thrown when public class CatalogServiceTest { @Autowired - @Qualifier(CatalogService_.CDS_NAME) - private CqnService catalogService; + private CatalogService catalogService; @Test public void submitOrderExceedingStock() { @@ -206,7 +203,6 @@ public class CatalogServiceTest { // ID of a book known to have a stock quantity of 22 context.setBook("4a519e61-3c3a-4bd9-ab12-d7e0c5329933"); context.setQuantity(30); - catalogService.emit(context); assertThrows(ServiceException.class, () -> catalogService.emit(context), context.getQuantity() + " exceeds stock for book"); }