Skip to content

Commit 3bc5dc9

Browse files
authored
Fix tests on java 11 (#387)
1 parent 7037ca8 commit 3bc5dc9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Jenkinsfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
properties([buildDiscarder(logRotator(numToKeepStr: '20'))])
2-
node('maven') {
2+
node('maven-11') {
33
checkout scm
44
timeout(time: 1, unit: 'HOURS') {
55
// TODO Azure mirror

src/it/powermock/src/test/java/test/XTest.java

+2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
import org.junit.runner.RunWith;
88
import org.mockito.Mock;
99
import org.powermock.api.mockito.PowerMockito;
10+
import org.powermock.core.classloader.annotations.PowerMockIgnore;
1011
import org.powermock.core.classloader.annotations.PrepareForTest;
1112
import org.powermock.modules.junit4.PowerMockRunner;
1213

1314
@RunWith(PowerMockRunner.class)
1415
@PrepareForTest(Jenkins.class)
16+
@PowerMockIgnore({"com.sun.org.apache.xerces.*", "javax.xml.*", "org.xml.*"})
1517
public class XTest {
1618

1719
@Mock

0 commit comments

Comments
 (0)