Skip to content

Commit

Permalink
. d updated markdown snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Mar 7, 2024
1 parent 2b66e65 commit f624145
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions approvaltests-util/docs/StringUtils.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ For example
List<Integer> number = Arrays.asList(1, 2, 3, 4, 5);
String text = StringUtils.join(number, ", ");
```
<sup><a href='/approvaltests-util-tests/src/test/java/com/spun/util/StringUtilsTest.java#L61-L64' title='Snippet source file'>snippet source</a> | <a href='#snippet-join_collection' title='Start of snippet'>anchor</a></sup>
<sup><a href='/approvaltests-util-tests/src/test/java/com/spun/util/StringUtilsTest.java#L65-L68' title='Snippet source file'>snippet source</a> | <a href='#snippet-join_collection' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->
will produce
<!-- snippet: /approvaltests-util-tests/src/test/java/com/spun/util/StringUtilsTest.testJoinCollection.approved.txt -->
Expand All @@ -44,7 +44,7 @@ For example:
List<Integer> number = Arrays.asList(1, 2, 3, 4, 5);
String text = StringUtils.join(number, ", ", n -> StringUtils.padNumber(n, 3));
```
<sup><a href='/approvaltests-util-tests/src/test/java/com/spun/util/StringUtilsTest.java#L70-L73' title='Snippet source file'>snippet source</a> | <a href='#snippet-join_collection_with_lambda' title='Start of snippet'>anchor</a></sup>
<sup><a href='/approvaltests-util-tests/src/test/java/com/spun/util/StringUtilsTest.java#L74-L77' title='Snippet source file'>snippet source</a> | <a href='#snippet-join_collection_with_lambda' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->
will Produce
<!-- snippet: /approvaltests-util-tests/src/test/java/com/spun/util/StringUtilsTest.testJoinCollectionWithFunction.approved.txt -->
Expand Down
16 changes: 14 additions & 2 deletions approvaltests-util/docs/reference/LoadersAndSavers.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@

<!-- toc -->
## Contents
* [Loaders](#loaders)<!-- endToc -->

* [Interfaces](#interfaces)
* [Loaders](#loaders)
* [Savers](#savers)
* [Common Usage Patterns](#common-usage-patterns)
* [Testing](#testing)
* [ExecutableCommand](#executablecommand)<!-- endToc -->
## What it is

Loaders and Savers is a very simple abstraction to help separate business logic from a database / services layer.
Expand All @@ -25,7 +31,13 @@ public T load();
<!-- endSnippet -->

And the Saver interface looks like:
snippet: saver_interface
<!-- snippet: saver_interface -->
<a id='snippet-saver_interface'></a>
```java
public T save(T save);
```
<sup><a href='/approvaltests-util/src/main/java/com/spun/util/persistence/Saver.java#L5-L7' title='Snippet source file'>snippet source</a> | <a href='#snippet-saver_interface' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

## Loaders
A `Loader` tends to wrap data access layers to a: database, file system, or Web service.
Expand Down

0 comments on commit f624145

Please sign in to comment.