Skip to content

Commit 7f32dce

Browse files
committed
Updated unit-test-project based on 0.11 ml-unit-test release
1 parent ba91562 commit 7f32dce

File tree

3 files changed

+9
-27
lines changed

3 files changed

+9
-27
lines changed

examples/unit-test-project/README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,22 @@ include this by default (not every ml-gradle user will use ml-unit-test), so it
77

88
buildscript {
99
repositories {
10-
jcenter()
11-
maven {
12-
url {"https://dl.bintray.com/rjrudin/maven/"}
13-
}
10+
jcenter()
1411
}
1512
dependencies {
16-
classpath "com.marklogic:ml-unit-test-client:0.9.1"
13+
classpath "com.marklogic:ml-unit-test-client:0.11"
1714
}
1815
}
1916

20-
Next, the ml-unit-test framework is depended on and installed as an "mlRestApi" dependency
17+
Next, the ml-unit-test framework is depended on and installed as an "mlRestApi" dependency (the "mlRestApi" configuration
18+
is a feature of ml-gradle for depending on packages of MarkLogic modules):
2119

2220
repositories {
23-
maven {
24-
url {"https://dl.bintray.com/rjrudin/maven/"}
25-
}
21+
jcenter()
2622
}
2723
2824
dependencies {
29-
mlRestApi "com.marklogic:ml-unit-test:0.9.1"
25+
mlRestApi "com.marklogic:ml-unit-test-modules:0.11"
3026
}
3127

3228
With those additions in place, the "mlUnitTest" task can be run. This task will use the value of mlTestRestPort to
Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
buildscript {
22
repositories {
33
jcenter()
4-
mavenLocal()
5-
6-
// Needed for ml-unit-test-client dependency until it's available via jcenter()
7-
maven {
8-
url {"https://dl.bintray.com/rjrudin/maven/"}
9-
}
104
}
115
dependencies {
126
classpath "com.marklogic:ml-unit-test-client:${mlUnitTestVersion}"
@@ -19,18 +13,12 @@ apply plugin: "com.marklogic.ml-gradle"
1913

2014
repositories {
2115
jcenter()
22-
mavenLocal()
23-
24-
// Needed for ml-unit-test and ml-unit-test-client dependencies until they're available via jcenter()
25-
maven {
26-
url {"https://dl.bintray.com/rjrudin/maven/"}
27-
}
2816
}
2917

3018
dependencies {
31-
mlRestApi "com.marklogic:ml-unit-test:${mlUnitTestVersion}"
19+
mlRestApi "com.marklogic:ml-unit-test-modules:${mlUnitTestVersion}"
3220

3321
// For running ml-unit-test tests via JUnit
3422
testCompile "com.marklogic:ml-unit-test-client:${mlUnitTestVersion}"
35-
testCompile "junit:junit:4+"
23+
testCompile "junit:junit:4.12"
3624
}

examples/unit-test-project/gradle.properties

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
mlGradleVersion=3.6.3
2-
mlUnitTestVersion=0.10.0
2+
mlUnitTestVersion=0.11
33

44
mlHost=localhost
55
mlAppName=unit-test-example
@@ -12,8 +12,6 @@ mlTestRestPort=8135
1212
mlUsername=admin
1313
mlPassword=admin
1414

15-
mlContentForestsPerHost=1
16-
1715
# Test modules could be kept under src/main/ml-modules, but it's recommend to keep them in a separate directory so that
1816
# the directory can be easily excluded by overriding this property
1917
mlModulePaths=src/main/ml-modules,src/test/ml-modules

0 commit comments

Comments
 (0)