File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed
src/test/java/net/sf/jsqlparser/statement/select Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,13 @@ java.sourceCompatibility = JavaVersion.VERSION_1_8
19
19
repositories {
20
20
gradlePluginPortal()
21
21
mavenLocal()
22
+ mavenCentral()
22
23
maven {
23
24
url = uri(' https://repo.maven.apache.org/maven2/' )
24
25
}
26
+ maven {
27
+ url " https://plugins.gradle.org/m2/"
28
+ }
25
29
}
26
30
27
31
dependencies {
@@ -36,6 +40,12 @@ dependencies {
36
40
testImplementation ' org.junit.jupiter:junit-jupiter-api:5.7.1'
37
41
testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine'
38
42
43
+ // https://mvnrepository.com/artifact/org.mockito/mockito-junit-jupiter
44
+ testImplementation ' org.mockito:mockito-junit-jupiter:4.1.0'
45
+
46
+ // enforce latest version of JavaCC
47
+ javacc ' net.java.dev.javacc:javacc:7.0.10'
48
+
39
49
}
40
50
41
51
compileJavacc {
@@ -56,6 +66,18 @@ jacoco {
56
66
}
57
67
58
68
test {
69
+ useJUnitPlatform()
70
+
71
+ // set heap size for the test JVM(s)
72
+ minHeapSize = " 128m"
73
+ maxHeapSize = " 1G"
74
+
75
+ jvmArgs << [
76
+ ' -Djunit.jupiter.execution.parallel.enabled=true' ,
77
+ ' -Djunit.jupiter.execution.parallel.config.strategy=dynamic' ,
78
+ ' -Djunit.jupiter.execution.parallel.mode.default=concurrent'
79
+ ]
80
+
59
81
finalizedBy jacocoTestReport // report is always generated after tests run
60
82
finalizedBy jacocoTestCoverageVerification
61
83
}
@@ -93,7 +115,7 @@ jacocoTestCoverageVerification {
93
115
limit {
94
116
counter = ' LINE'
95
117
value = ' MISSEDCOUNT'
96
- maximum = 5458
118
+ maximum = 5500
97
119
}
98
120
excludes = [
99
121
' net.sf.jsqlparser.util.validation.*' ,
Original file line number Diff line number Diff line change
1
+ # Specifies the JVM arguments used for the daemon process.
2
+ # The setting is particularly useful for tweaking memory settings.
3
+ org.gradle.jvmargs =-Xmx1G -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError
4
+
5
+ org.gradle.caching =true
6
+
7
+ # Modularise your project and enable parallel build
8
+ org.gradle.parallel =true
9
+
10
+ # Enable configure on demand.
11
+ org.gradle.configureondemand =true
12
+
Original file line number Diff line number Diff line change 45
45
import static org .junit .jupiter .api .Assertions .fail ;
46
46
import org .junit .jupiter .api .Disabled ;
47
47
import org .junit .jupiter .api .Test ;
48
+ import org .junit .jupiter .api .parallel .Execution ;
49
+ import org .junit .jupiter .api .parallel .ExecutionMode ;
48
50
51
+ @ Execution (ExecutionMode .CONCURRENT )
49
52
public class SelectTest {
50
53
51
54
private final CCJSqlParserManager parserManager = new CCJSqlParserManager ();
You can’t perform that action at this time.
0 commit comments