Skip to content

Commit fdd0cb5

Browse files
committed
8349501: Relocate supporting classes in security/testlibrary to test/lib/jdk tree
Reviewed-by: rschmelter Backport-of: b737f7fb3004e4e9c95fba95c6fcda70073ae00e
1 parent 20dc5eb commit fdd0cb5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+117
-119
lines changed

test/jdk/com/sun/security/auth/callback/TextCallbackHandler/Default.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,7 +23,7 @@
2323

2424
/*
2525
* @test
26-
* @library /test/lib /java/security/testlibrary
26+
* @library /test/lib
2727
* @bug 4470717
2828
* @summary fix default handling and other misc
2929
* @run main/othervm Default
@@ -34,6 +34,7 @@
3434

3535
import javax.security.auth.callback.*;
3636
import java.io.*;
37+
import jdk.test.lib.security.HumanInputStream;
3738

3839
public class Default {
3940
public static void main(String args[]) throws Exception {

test/jdk/java/security/KeyFactory/Failover.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,16 +24,16 @@
2424
/**
2525
* @test
2626
* @bug 4894125 7054918 8130181
27-
* @library ../testlibrary /test/lib
27+
* @library /test/lib
2828
* @summary test that failover for KeyFactory works
2929
* @author Andreas Sterbenz
3030
*/
3131

3232
import java.util.*;
3333

3434
import java.security.*;
35-
import java.security.interfaces.*;
3635
import java.security.spec.*;
36+
import jdk.test.lib.security.ProvidersSnapshot;
3737
import jdk.test.lib.security.SecurityUtils;
3838

3939
public class Failover {

test/jdk/java/security/KeyPairGenerator/Failover.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,16 +24,16 @@
2424
/**
2525
* @test
2626
* @bug 4894125 7054918 8130181
27-
* @library ../testlibrary
27+
* @library /test/lib
2828
* @summary test that failover for KeyPairGenerator works
2929
* @author Andreas Sterbenz
3030
*/
3131

3232
import java.util.*;
3333

3434
import java.security.*;
35-
import java.security.interfaces.*;
3635
import java.security.spec.*;
36+
import jdk.test.lib.security.ProvidersSnapshot;
3737

3838
public class Failover {
3939

test/jdk/java/security/Provider/ChangeProviders.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,14 +24,13 @@
2424
/*
2525
* @test
2626
* @bug 4856968 7054918 8130181
27-
* @library ../testlibrary
27+
* @library /test/lib
2828
* @summary make sure add/insert/removeProvider() work correctly
2929
* @author Andreas Sterbenz
3030
*/
3131

32-
import java.util.*;
33-
3432
import java.security.*;
33+
import jdk.test.lib.security.ProvidersSnapshot;
3534

3635
public class ChangeProviders extends Provider {
3736

test/jdk/java/security/Provider/GetInstance.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,7 +24,7 @@
2424
/*
2525
* @test
2626
* @bug 4856968 7054918 8130181
27-
* @library ../testlibrary
27+
* @library /test/lib
2828
* @summary make sure getInstance() works correctly, including failover
2929
* and delayed provider selection for Signatures
3030
* @author Andreas Sterbenz
@@ -34,6 +34,7 @@
3434

3535
import java.security.*;
3636
import java.security.cert.*;
37+
import jdk.test.lib.security.ProvidersSnapshot;
3738

3839
public class GetInstance {
3940

test/jdk/java/security/Provider/GetServiceRace.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,7 +24,6 @@
2424
/*
2525
* @test
2626
* @bug 8231387
27-
* @library ../testlibrary
2827
* @summary make sure getService() avoids a race
2928
* @author Tianmin Shi
3029
*/

test/jdk/java/security/Provider/RemoveProvider.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,13 +24,14 @@
2424
/*
2525
* @test
2626
* @bug 4190873 7054918 8130181
27-
* @library ../testlibrary
27+
* @library /test/lib
2828
* @summary Make sure provider instance can be removed from list of registered
2929
* providers, and "entrySet", "keySet", and "values" methods don't loop
3030
* indefinitely.
3131
*/
3232
import java.security.*;
3333
import java.util.*;
34+
import jdk.test.lib.security.ProvidersSnapshot;
3435

3536
public class RemoveProvider {
3637

test/jdk/java/security/Security/NoInstalledProviders.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,12 +24,13 @@
2424
/*
2525
* @test
2626
* @bug 4273454 7054918 7052537
27-
* @library ../testlibrary
27+
* @library /test/lib
2828
* @summary Make sure getProviders(filter) doesn't throw NPE
2929
* @run main/othervm NoInstalledProviders
3030
*/
3131

3232
import java.security.*;
33+
import jdk.test.lib.security.ProvidersSnapshot;
3334

3435
public class NoInstalledProviders {
3536

test/jdk/java/security/Security/SynchronizedAccess.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,13 +24,14 @@
2424
/*
2525
* @test
2626
* @bug 4162583 7054918 8130181 8028127
27-
* @library /test/lib ../testlibrary
27+
* @library /test/lib
2828
* @summary Make sure Provider api implementations are synchronized properly
2929
*/
3030

3131
import java.security.*;
3232

3333
import jdk.test.lib.Asserts;
34+
import jdk.test.lib.security.ProvidersSnapshot;
3435

3536
public class SynchronizedAccess {
3637

test/jdk/java/security/Security/removing/RemoveProviders.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,14 +24,15 @@
2424
/**
2525
* @test
2626
* @bug 4963416 7054918
27-
* @library ../../testlibrary
27+
* @library /test/lib
2828
* @summary make sure removeProvider() always works correctly
2929
* @author Andreas Sterbenz
3030
*/
3131

3232
import java.util.*;
3333

3434
import java.security.*;
35+
import jdk.test.lib.security.ProvidersSnapshot;
3536

3637
public class RemoveProviders {
3738

0 commit comments

Comments
 (0)