From 81468aec2ce4ac2cc1711f66c7336fbb9de43bce Mon Sep 17 00:00:00 2001 From: github actions Date: Mon, 16 Sep 2024 17:35:53 +0000 Subject: [PATCH] . d updated markdown snippets --- approvaltests-util/docs/how_to/LoadersAndSavers.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/approvaltests-util/docs/how_to/LoadersAndSavers.md b/approvaltests-util/docs/how_to/LoadersAndSavers.md index b5a7e370..4c91810e 100644 --- a/approvaltests-util/docs/how_to/LoadersAndSavers.md +++ b/approvaltests-util/docs/how_to/LoadersAndSavers.md @@ -52,7 +52,7 @@ public void sendOutSeniorDiscounts(DataBase database, MailServer mailServer) } } ``` -snippet source | anchor +snippet source | anchor In this case, we want to replace the functions that use the DataBase object with Loaders : @@ -72,7 +72,7 @@ public void senior_customer_list_includes_only_those_over_age_65() Approvals.verifyAll("", mailServer.getRecipients()); } ``` -snippet source | anchor +snippet source | anchor This test works against a live database with a live mail server. @@ -94,7 +94,7 @@ Now we dump the data resulting from a successful query so that we can create a f List seniorCustomers = database.getSeniorCustomers(); seniorCustomers.stream().forEach(System.out::println); ``` -snippet source | anchor +snippet source | anchor generates @@ -116,7 +116,7 @@ Step 3: Create a result object populated with these values (or at least enough o List.of(new Customer("Bob, Jones, 123 Elm St., Tempe, AZ, 14-MAR-1958"), new Customer("Mary, Smith, 345 Oak St., Mason, VA, 04-MAY-1944")); ``` -snippet source | anchor +snippet source | anchor ### Step 4: In the original method, replace the function call with a Loader