Skip to content

Commit 81468ae

Browse files
committed
. d updated markdown snippets
1 parent c09af6e commit 81468ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

approvaltests-util/docs/how_to/LoadersAndSavers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void sendOutSeniorDiscounts(DataBase database, MailServer mailServer)
5252
}
5353
}
5454
```
55-
<sup><a href='/approvaltests-util-tests/src/test/java/com/spun/util/persistence/LoadersAndSaversExamplesTest.java#L60-L71' title='Snippet source file'>snippet source</a> | <a href='#snippet-step1' title='Start of snippet'>anchor</a></sup>
55+
<sup><a href='/approvaltests-util-tests/src/test/java/com/spun/util/persistence/LoadersAndSaversExamplesTest.java#L61-L72' title='Snippet source file'>snippet source</a> | <a href='#snippet-step1' title='Start of snippet'>anchor</a></sup>
5656
<!-- endSnippet -->
5757

5858
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()
7272
Approvals.verifyAll("", mailServer.getRecipients());
7373
}
7474
```
75-
<sup><a href='/approvaltests-util-tests/src/test/java/com/spun/util/persistence/LoadersAndSaversExamplesTest.java#L12-L21' title='Snippet source file'>snippet source</a> | <a href='#snippet-step0' title='Start of snippet'>anchor</a></sup>
75+
<sup><a href='/approvaltests-util-tests/src/test/java/com/spun/util/persistence/LoadersAndSaversExamplesTest.java#L13-L22' title='Snippet source file'>snippet source</a> | <a href='#snippet-step0' title='Start of snippet'>anchor</a></sup>
7676
<!-- endSnippet -->
7777

7878
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
9494
List<Customer> seniorCustomers = database.getSeniorCustomers();
9595
seniorCustomers.stream().forEach(System.out::println);
9696
```
97-
<sup><a href='/approvaltests-util-tests/src/test/java/com/spun/util/persistence/LoadersAndSaversExamplesTest.java#L40-L43' title='Snippet source file'>snippet source</a> | <a href='#snippet-step_capture_data' title='Start of snippet'>anchor</a></sup>
97+
<sup><a href='/approvaltests-util-tests/src/test/java/com/spun/util/persistence/LoadersAndSaversExamplesTest.java#L41-L44' title='Snippet source file'>snippet source</a> | <a href='#snippet-step_capture_data' title='Start of snippet'>anchor</a></sup>
9898
<!-- endSnippet -->
9999

100100
generates
@@ -116,7 +116,7 @@ Step 3: Create a result object populated with these values (or at least enough o
116116
List.of(new Customer("Bob, Jones, 123 Elm St., Tempe, AZ, 14-MAR-1958"),
117117
new Customer("Mary, Smith, 345 Oak St., Mason, VA, 04-MAY-1944"));
118118
```
119-
<sup><a href='/approvaltests-util-tests/src/test/java/com/spun/util/persistence/LoadersAndSaversExamplesTest.java#L51-L54' title='Snippet source file'>snippet source</a> | <a href='#snippet-step_fake_data' title='Start of snippet'>anchor</a></sup>
119+
<sup><a href='/approvaltests-util-tests/src/test/java/com/spun/util/persistence/LoadersAndSaversExamplesTest.java#L52-L55' title='Snippet source file'>snippet source</a> | <a href='#snippet-step_fake_data' title='Start of snippet'>anchor</a></sup>
120120
<!-- endSnippet -->
121121

122122
### Step 4: In the original method, replace the function call with a Loader

0 commit comments

Comments
 (0)