Skip to content

Commit 8b97e97

Browse files
committed
Updated unit test project README
1 parent 1c71124 commit 8b97e97

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

examples/unit-test-project/README.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,23 @@ Starting in release 3.8.1, you can configure which REST API server mlUnitTest wi
6969
exposes a property of type [DatabaseClientConfig](https://github.com/marklogic-community/ml-javaclient-util/blob/master/src/main/java/com/marklogic/client/ext/DatabaseClientConfig.java).
7070
You can configure the properties of this object, and mlUnitTest will use it for creating a connection to MarkLogic.
7171

72-
Below is an example - note that you need to configure every property necessary for the type of connection you want, as
72+
Below is an example of configuring the mlUnitTest task in build.gradle - note that you need to configure every property necessary for the type of connection you want, as
7373
none of the properties of the DatabaseClientConfig have any default value:
7474

75-
mlUnitTest.databaseClientConfig.host = mlHost
76-
mlUnitTest.databaseClientConfig.port = 8880 // probably a port that differs from mlRestPort and mlTestRestPort
77-
mlUnitTest.databaseClientConfig.username = mlUsername
78-
mlUnitTest.databaseClientConfig.password = mlPassword
79-
// Other properties that can be set
80-
// mlUnitTest.databaseClientConfig.securityContextType
81-
// mlUnitTest.databaseClientConfig.database
82-
// mlUnitTest.databaseClientConfig.sslContext
83-
// mlUnitTest.databaseClientConfig.sslHostnameVerifier
84-
// mlUnitTest.databaseClientConfig.certFile
85-
// mlUnitTest.databaseClientConfig.certPassword
86-
// mlUnitTest.databaseClientConfig.externalName
87-
// mlUnitTest.databaseClientConfig.trustManager
75+
```
76+
ext {
77+
mlUnitTest.databaseClientConfig.host = mlHost
78+
mlUnitTest.databaseClientConfig.port = 8880 // probably a port that differs from mlRestPort and mlTestRestPort
79+
mlUnitTest.databaseClientConfig.username = mlUsername
80+
mlUnitTest.databaseClientConfig.password = mlPassword
81+
// Other properties that can be set
82+
// mlUnitTest.databaseClientConfig.securityContextType
83+
// mlUnitTest.databaseClientConfig.database
84+
// mlUnitTest.databaseClientConfig.sslContext
85+
// mlUnitTest.databaseClientConfig.sslHostnameVerifier
86+
// mlUnitTest.databaseClientConfig.certFile
87+
// mlUnitTest.databaseClientConfig.certPassword
88+
// mlUnitTest.databaseClientConfig.externalName
89+
// mlUnitTest.databaseClientConfig.trustManager
90+
}
91+
```

0 commit comments

Comments
 (0)