File tree Expand file tree Collapse file tree
src/test/java/org/jenkinsci/main/modules/instance_identity Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >org.jenkins-ci.plugins</groupId >
77 <artifactId >plugin</artifactId >
8- <version >4.88 </version >
8+ <version >5.7 </version >
99 <relativePath />
1010 </parent >
1111
3333 <properties >
3434 <changelist >999999-SNAPSHOT</changelist >
3535 <!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
36- <jenkins .baseline>2.361 </jenkins .baseline>
37- <jenkins .version>${jenkins.baseline} .4 </jenkins .version>
36+ <jenkins .baseline>2.479 </jenkins .baseline>
37+ <jenkins .version>${jenkins.baseline} .3 </jenkins .version>
3838 <gitHubRepo >jenkinsci/${project.artifactId}-plugin</gitHubRepo >
3939 </properties >
4040
5656 <dependency >
5757 <groupId >io.jenkins.tools.bom</groupId >
5858 <artifactId >bom-${jenkins.baseline}.x</artifactId >
59- <version >2102.v854b_fec19c92 </version >
59+ <version >4228.v0a_71308d905b_ </version >
6060 <scope >import</scope >
6161 <type >pom</type >
6262 </dependency >
Original file line number Diff line number Diff line change 3333import java .nio .charset .StandardCharsets ;
3434import java .nio .file .Files ;
3535import java .nio .file .Path ;
36- import java .nio .file .Paths ;
3736import java .security .KeyPair ;
3837import java .security .Security ;
3938import org .bouncycastle .jce .provider .BouncyCastleProvider ;
@@ -54,19 +53,19 @@ public class ReadWriteKeyTest {
5453
5554 @ BeforeClass
5655 public static void setUpBC () throws URISyntaxException , IOException {
57- PEM_PCKS1_FILE = Paths . get (ReadWriteKeyTest .class
56+ PEM_PCKS1_FILE = Path . of (ReadWriteKeyTest .class
5857 .getClassLoader ()
5958 .getResource ("private-key-pcks1.pem" )
6059 .toURI ());
61- PEM_PCKS8_FILE = Paths . get (ReadWriteKeyTest .class
60+ PEM_PCKS8_FILE = Path . of (ReadWriteKeyTest .class
6261 .getClassLoader ()
6362 .getResource ("private-key-pcks8.pem" )
6463 .toURI ());
65- KEY_PRIVATE_ENCODED = Files .readAllBytes (Paths . get (ReadWriteKeyTest .class
64+ KEY_PRIVATE_ENCODED = Files .readAllBytes (Path . of (ReadWriteKeyTest .class
6665 .getClassLoader ()
6766 .getResource ("private-key-private-encoded.bin" )
6867 .toURI ()));
69- KEY_PUBLIC_ENCODED = Files .readAllBytes (Paths . get (ReadWriteKeyTest .class
68+ KEY_PUBLIC_ENCODED = Files .readAllBytes (Path . of (ReadWriteKeyTest .class
7069 .getClassLoader ()
7170 .getResource ("private-key-public-encoded.bin" )
7271 .toURI ()));
You can’t perform that action at this time.
0 commit comments