Skip to content

Commit

Permalink
Add a note about testing jar
Browse files Browse the repository at this point in the history
  • Loading branch information
akhaku committed May 24, 2018
1 parent a9c5a4c commit f225df3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/testing.md
@@ -0,0 +1,14 @@
# Unit testing with Hollow objects

Hollow provides a `hollow-test` jar that contains some testing utilities to facilitate unit testing with Hollow objects.

### HollowReadStateEngineBuilder

This class allows easy creation of `HollowReadStateEngine` objects for use in unit tests.

```java
HollowReadStateEngine engine = new HollowReadStateEngineBuilder()
.add(new Movie("foo"))
.add(new Actor("bar"))
.build()
```
1 change: 1 addition & 0 deletions mkdocs.yml
Expand Up @@ -15,6 +15,7 @@ pages:
- Interacting with a Hollow Dataset: 'interacting-with-a-dataset.md'
- Data Ingestion: 'data-ingestion.md'
- Advanced Topics: 'advanced-topics.md'
- Testing: 'testing.md'
- Glossary: 'glossary.md'
- Community: 'community.md'
- Acknowledgements: 'acknowledgements.md'
Expand Down

0 comments on commit f225df3

Please sign in to comment.