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
+ */
2
4
3
5
test {
4
6
useJUnitPlatform()
5
7
testLogging{
6
8
events ' started' ,' passed' , ' skipped'
7
9
}
8
- /* For use in testing TestDatabaseClientKerberosFromFile */
10
+ // For use in testing TestDatabaseClientKerberosFromFile
9
11
systemProperty " keytabFile" , System . getProperty(" keytabFile" )
10
12
systemProperty " principal" , System . getProperty(" principal" )
11
13
12
14
systemProperty " TEST_USE_REVERSE_PROXY_SERVER" , testUseReverseProxyServer
13
15
}
14
16
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
-
21
17
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" ) {
31
30
exclude module : " marklogic-client-api"
31
+ // Use the commons-lang3 declared above to keep Black Duck happy.
32
+ exclude module : " commons-lang3"
32
33
}
33
34
34
- testImplementation ' ch.qos.logback:logback-classic:1.3.15'
35
+ testImplementation ' ch.qos.logback:logback-classic:1.3.15'
35
36
testImplementation ' org.junit.jupiter:junit-jupiter:5.11.1'
36
37
testImplementation ' org.xmlunit:xmlunit-legacy:2.10.0'
37
- testImplementation ' org.apache.commons:commons-lang3:3.17.0'
38
38
}
39
39
40
- task runFragileTests ( type : Test ) {
40
+ tasks . register( " runFragileTests " , Test ) {
41
41
useJUnitPlatform()
42
42
description = " These are called 'fragile' because they'll pass when run by themselves, but when run as part of the " +
43
43
" 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) {
48
48
include " com/marklogic/client/fastfunctest/TestRawStructuredQuery.class"
49
49
}
50
50
51
- task runFastFunctionalTests ( type : Test ) {
51
+ tasks . register( " runFastFunctionalTests " , Test ) {
52
52
useJUnitPlatform()
53
53
description = " Run all fast functional tests that don't setup/teardown custom app servers / databases"
54
54
include " com/marklogic/client/fastfunctest/**"
@@ -58,14 +58,14 @@ task runFastFunctionalTests(type: Test) {
58
58
exclude " com/marklogic/client/fastfunctest/TestRawStructuredQuery.class"
59
59
}
60
60
61
- task runSlowFunctionalTests ( type : Test ) {
61
+ tasks . register( " runSlowFunctionalTests " , Test ) {
62
62
useJUnitPlatform()
63
63
description = " Run slow functional tests; i.e. those that setup/teardown custom app servers / databases"
64
64
include " com/marklogic/client/datamovement/functionaltests/**"
65
65
include " com/marklogic/client/functionaltest/**"
66
66
}
67
67
68
- task runFunctionalTests {
68
+ tasks . register( " runFunctionalTests" ) {
69
69
dependsOn(runFragileTests, runFastFunctionalTests, runSlowFunctionalTests)
70
70
}
71
71
runFastFunctionalTests. mustRunAfter runFragileTests
0 commit comments