Skip to content

Commit a398a93

Browse files
committed
MLE-24747 Bumping ml-gradle to 6.1.0
Removed hack in BitemporalTest for bug that is fixed. And bumped mockito, realized it can go to 5 safely now.
1 parent 712be65 commit a398a93

File tree

4 files changed

+10
-32
lines changed

4 files changed

+10
-32
lines changed

marklogic-client-api-functionaltests/build.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,15 @@ dependencies {
1515

1616
testImplementation 'org.apache.commons:commons-lang3:3.19.0'
1717

18-
// Allows talking to the Manage API.
19-
testImplementation("com.marklogic:ml-app-deployer:6.0.1") {
20-
exclude module: "marklogic-client-api"
21-
}
18+
testImplementation "com.marklogic:ml-app-deployer:6.1.0"
2219

2320
testImplementation 'ch.qos.logback:logback-classic:1.5.19'
24-
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
21+
testImplementation 'org.junit.jupiter:junit-jupiter:5.14.0'
2522
testImplementation 'org.xmlunit:xmlunit-legacy:2.10.4'
2623

2724
// Without this, once using JUnit 5.12 or higher, Gradle will not find any tests and report an error of:
2825
// org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests
29-
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.13.4"
26+
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.14.0"
3027
}
3128

3229
tasks.withType(Test).configureEach {

marklogic-client-api/build.gradle

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,12 @@ dependencies {
4646
testImplementation 'org.apache.commons:commons-lang3:3.19.0'
4747

4848
// Allows talking to the Manage API.
49-
testImplementation("com.marklogic:ml-app-deployer:6.0.1") {
50-
exclude module: "marklogic-client-api"
51-
}
49+
testImplementation "com.marklogic:ml-app-deployer:6.1.0"
50+
51+
testImplementation "org.mockito:mockito-core:5.20.0"
52+
testImplementation "org.mockito:mockito-inline:5.20.0"
5253

53-
// Starting with mockito 5.x, Java 11 is required, so sticking with 4.x as we have to support Java 8.
54-
testImplementation "org.mockito:mockito-core:4.11.0"
55-
testImplementation "org.mockito:mockito-inline:4.11.0"
56-
testImplementation "com.squareup.okhttp3:mockwebserver3:5.1.0"
54+
testImplementation "com.squareup.okhttp3:mockwebserver3:5.2.0"
5755

5856
testImplementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${jacksonVersion}"
5957
testImplementation 'ch.qos.logback:logback-classic:1.5.19'
@@ -73,7 +71,7 @@ dependencies {
7371
// https://docs.gradle.org/current/userguide/upgrading_version_8.html#test_framework_implementation_dependencies
7472
// Without this, once using JUnit 5.12 or higher, Gradle will not find any tests and report an error of:
7573
// org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests
76-
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.13.4"
74+
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.14.0"
7775
}
7876

7977
// Ensure that mlHost and mlPassword can override the defaults of localhost/admin if they've been modified

marklogic-client-api/src/test/java/com/marklogic/client/test/BitemporalTest.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
import com.marklogic.client.io.StringHandle;
1616
import com.marklogic.client.query.*;
1717
import com.marklogic.client.query.StructuredQueryBuilder.TemporalOperator;
18-
import com.marklogic.mgmt.ManageClient;
19-
import com.marklogic.mgmt.resource.temporal.TemporalCollectionLSQTManager;
2018
import jakarta.xml.bind.DatatypeConverter;
2119
import org.custommonkey.xmlunit.exceptions.XpathException;
2220
import org.junit.jupiter.api.AfterEach;
@@ -163,21 +161,6 @@ void writeTwoVersionsOfFourDocuments() throws XpathException {
163161

164162
@Test
165163
void lsqtTest() {
166-
// Due to bug MLE-24511 where LSQT properties aren't updated correctly in ml-gradle 6.0.0, we need to manually
167-
// deploy them for this test.
168-
ManageClient manageClient = Common.newManageClient();
169-
TemporalCollectionLSQTManager mgr = new TemporalCollectionLSQTManager(manageClient, "java-unittest", "temporal-collection");
170-
String payload = """
171-
{
172-
"lsqt-enabled": true,
173-
"automation": {
174-
"enabled": true,
175-
"period": 5000
176-
}
177-
}
178-
""";
179-
mgr.save(payload);
180-
181164
String version1 = """
182165
<test>
183166
%s version1

test-app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
plugins {
66
id "net.saliman.properties" version "1.5.2"
7-
id 'com.marklogic.ml-gradle' version '6.0.1'
7+
id 'com.marklogic.ml-gradle' version '6.1.0'
88
id "com.github.psxpaul.execfork" version "0.2.2"
99
}
1010

0 commit comments

Comments
 (0)