Skip to content

Commit 9e933c7

Browse files
authored
Merge pull request #1800 from marklogic/feature/junit-fix
MLE-12345 One more Black Duck fix
2 parents 785c110 + 351ea2b commit 9e933c7

File tree

3 files changed

+29
-26
lines changed

3 files changed

+29
-26
lines changed

marklogic-client-api-functionaltests/build.gradle

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
// Copyright © 2024 MarkLogic Corporation. All Rights Reserved.
1+
/*
2+
* Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
3+
*/
24

35
test {
46
useJUnitPlatform()
57
testLogging{
68
events 'started','passed', 'skipped'
79
}
8-
/* For use in testing TestDatabaseClientKerberosFromFile */
10+
// For use in testing TestDatabaseClientKerberosFromFile
911
systemProperty "keytabFile", System.getProperty("keytabFile")
1012
systemProperty "principal", System.getProperty("principal")
1113

1214
systemProperty "TEST_USE_REVERSE_PROXY_SERVER", testUseReverseProxyServer
1315
}
1416

15-
/* The minimal number of tests that run in a sandbox environment */
16-
17-
task testSandbox(type:Test) {
18-
include 'com/marklogic/client/functionaltest/TestSandBox.class'
19-
}
20-
2117
dependencies {
22-
implementation project (':marklogic-client-api')
23-
implementation 'org.skyscreamer:jsonassert:1.5.3'
24-
implementation 'org.slf4j:slf4j-api:2.0.17'
25-
implementation 'commons-io:commons-io:2.17.0'
26-
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
27-
implementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
28-
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
29-
implementation "org.jdom:jdom2:2.0.6.1"
30-
implementation ("com.marklogic:ml-app-deployer:5.0.0") {
18+
testImplementation project(':marklogic-client-api')
19+
testImplementation 'org.skyscreamer:jsonassert:1.5.3'
20+
testImplementation 'org.slf4j:slf4j-api:2.0.17'
21+
testImplementation 'commons-io:commons-io:2.17.0'
22+
testImplementation 'com.squareup.okhttp3:okhttp:4.12.0'
23+
testImplementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
24+
testImplementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
25+
testImplementation "org.jdom:jdom2:2.0.6.1"
26+
27+
testImplementation 'org.apache.commons:commons-lang3:3.18.0'
28+
// Allows talking to the Manage API.
29+
testImplementation("com.marklogic:ml-app-deployer:5.0.0") {
3130
exclude module: "marklogic-client-api"
31+
// Use the commons-lang3 declared above to keep Black Duck happy.
32+
exclude module: "commons-lang3"
3233
}
3334

34-
testImplementation 'ch.qos.logback:logback-classic:1.3.15'
35+
testImplementation 'ch.qos.logback:logback-classic:1.3.15'
3536
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.1'
3637
testImplementation 'org.xmlunit:xmlunit-legacy:2.10.0'
37-
testImplementation 'org.apache.commons:commons-lang3:3.17.0'
3838
}
3939

40-
task runFragileTests(type: Test) {
40+
tasks.register("runFragileTests", Test) {
4141
useJUnitPlatform()
4242
description = "These are called 'fragile' because they'll pass when run by themselves, but when run as part of the " +
4343
"full suite, there seem to be one or more other fast functional tests that run before them and cause some of " +
@@ -48,7 +48,7 @@ task runFragileTests(type: Test) {
4848
include "com/marklogic/client/fastfunctest/TestRawStructuredQuery.class"
4949
}
5050

51-
task runFastFunctionalTests(type: Test) {
51+
tasks.register("runFastFunctionalTests", Test) {
5252
useJUnitPlatform()
5353
description = "Run all fast functional tests that don't setup/teardown custom app servers / databases"
5454
include "com/marklogic/client/fastfunctest/**"
@@ -58,14 +58,14 @@ task runFastFunctionalTests(type: Test) {
5858
exclude "com/marklogic/client/fastfunctest/TestRawStructuredQuery.class"
5959
}
6060

61-
task runSlowFunctionalTests(type: Test) {
61+
tasks.register("runSlowFunctionalTests", Test) {
6262
useJUnitPlatform()
6363
description = "Run slow functional tests; i.e. those that setup/teardown custom app servers / databases"
6464
include "com/marklogic/client/datamovement/functionaltests/**"
6565
include "com/marklogic/client/functionaltest/**"
6666
}
6767

68-
task runFunctionalTests {
68+
tasks.register("runFunctionalTests") {
6969
dependsOn(runFragileTests, runFastFunctionalTests, runSlowFunctionalTests)
7070
}
7171
runFastFunctionalTests.mustRunAfter runFragileTests

marklogic-client-api/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// Copyright © 2024 MarkLogic Corporation. All Rights Reserved.
1+
/*
2+
* Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
3+
*/
24

35
plugins {
46
id 'java-library'
@@ -44,7 +46,6 @@ dependencies {
4446
testImplementation project(':examples')
4547

4648
testImplementation 'org.apache.commons:commons-lang3:3.18.0'
47-
4849
// Allows talking to the Manage API.
4950
testImplementation ("com.marklogic:ml-app-deployer:5.0.0") {
5051
exclude module: "marklogic-client-api"

ml-development-tools/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// Copyright © 2024 MarkLogic Corporation. All Rights Reserved.
1+
/*
2+
* Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
3+
*/
24

35
plugins {
46
id "groovy"

0 commit comments

Comments
 (0)