Skip to content

Commit 876d616

Browse files
authored
Updating junit5 example projects (#135)
Removed simple-dhf4 project, as DHF 5.5 now has support and we don't want to be maintaining this example project anymore. The README still points to the 1.0.0 tag of this codebase though for DHF 4 users interested in this support. Co-authored-by: Rob Rudin <[email protected]>
1 parent cd1ddfa commit 876d616

File tree

18 files changed

+43
-494
lines changed

18 files changed

+43
-494
lines changed

marklogic-junit5/README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,25 @@ public class SearchTest extends AbstractSpringMarkLogicTest {
3939
If you'd like to use marklogic-junit5 on a regular ml-gradle project (not a DHF project), then
4040
start with the ml-gradle example project to see a working example with instructions on how to get started.
4141

42-
## Getting started on a Data Hub Framework project
42+
## Getting started on a Data Hub Framework project
4343

44-
If you're working on a Data Hub Framework (DHF) project and you're like to start writing JUnit tests to verify your application
45-
features, then check out the DHF example project to see a working example with instructions on how to get started.
44+
As of DHF 5.5, support exists within DHF 5 for writing tests and should be used instead of this project.
45+
See [this example project](https://github.com/marklogic/marklogic-data-hub/tree/master/examples/reference-entity-model#testing-support)
46+
for more information.
4647

48+
If you're using DHF 4, see [the DHF 4 example project](https://github.com/marklogic-community/marklogic-unit-test/tree/1.0.0/marklogic-junit5/examples/simple-dhf4)
49+
from the 1.0.0 tag of this repository.
50+
51+
## Running the tests within this project
52+
53+
If you'd like to run the tests within this project, you'll first need to create a gradle-local.properties file in this
54+
project that defines your admin user's password - e.g.
55+
56+
mlPassword=admin
57+
58+
The tests will make use of MarkLogic's out-of-the-box Documents database. Be sure you do not have anything of importance
59+
in this database, as it will be cleared before each test is run.
60+
61+
You can then run the tests via Gradle:
62+
63+
../gradlew clean test

marklogic-junit5/examples/simple-dhf4/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

marklogic-junit5/examples/simple-dhf4/README.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

marklogic-junit5/examples/simple-dhf4/build.gradle

Lines changed: 0 additions & 118 deletions
This file was deleted.
Binary file not shown.

marklogic-junit5/examples/simple-dhf4/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

marklogic-junit5/examples/simple-dhf4/gradlew

Lines changed: 0 additions & 172 deletions
This file was deleted.

0 commit comments

Comments
 (0)