Skip to content

Commit a6c3cb7

Browse files
committed
8381745: Ensure Modal/FileDialog tests explicitly reference Asserts class
Backport-of: cfae18f
1 parent 6ce0e55 commit a6c3cb7

39 files changed

Lines changed: 137 additions & 58 deletions

test/jdk/java/awt/Modal/FileDialog/FileDialogAppModal1Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2026, 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
@@ -35,6 +35,7 @@
3535
* @library ../helpers /lib/client/
3636
* @library /test/lib
3737
* @build ExtendedRobot
38+
* @build jdk.test.lib.Asserts
3839
* @build Flag
3940
* @build TestDialog
4041
* @build TestFrame

test/jdk/java/awt/Modal/FileDialog/FileDialogAppModal2Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2026, 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
@@ -35,6 +35,7 @@
3535
* @library ../helpers /lib/client/
3636
* @library /test/lib
3737
* @build ExtendedRobot
38+
* @build jdk.test.lib.Asserts
3839
* @build Flag
3940
* @build TestDialog
4041
* @build TestFrame

test/jdk/java/awt/Modal/FileDialog/FileDialogAppModal3Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2026, 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
@@ -35,6 +35,7 @@
3535
* @library ../helpers /lib/client/
3636
* @library /test/lib
3737
* @build ExtendedRobot
38+
* @build jdk.test.lib.Asserts
3839
* @build Flag
3940
* @build TestDialog
4041
* @build TestFrame

test/jdk/java/awt/Modal/FileDialog/FileDialogAppModal4Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2026, 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
@@ -35,6 +35,7 @@
3535
* @library ../helpers /lib/client/
3636
* @library /test/lib
3737
* @build ExtendedRobot
38+
* @build jdk.test.lib.Asserts
3839
* @build Flag
3940
* @build TestDialog
4041
* @build TestFrame

test/jdk/java/awt/Modal/FileDialog/FileDialogAppModal5Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2026, 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
@@ -35,6 +35,7 @@
3535
* @library ../helpers /lib/client/
3636
* @library /test/lib
3737
* @build ExtendedRobot
38+
* @build jdk.test.lib.Asserts
3839
* @build Flag
3940
* @build TestDialog
4041
* @build TestFrame

test/jdk/java/awt/Modal/FileDialog/FileDialogAppModal6Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2026, 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
@@ -35,6 +35,7 @@
3535
* @library ../helpers /lib/client/
3636
* @library /test/lib
3737
* @build ExtendedRobot
38+
* @build jdk.test.lib.Asserts
3839
* @build Flag
3940
* @build TestDialog
4041
* @build TestFrame

test/jdk/java/awt/Modal/FileDialog/FileDialogDWDTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2026, 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
@@ -22,7 +22,11 @@
2222
*/
2323

2424

25-
import java.awt.*;
25+
import java.awt.Dialog;
26+
import java.awt.EventQueue;
27+
import java.awt.FileDialog;
28+
import java.awt.Frame;
29+
import java.awt.Toolkit;
2630

2731

2832
// DWD: Dialog, Window, Dialog

test/jdk/java/awt/Modal/FileDialog/FileDialogDocModal1Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2026, 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
@@ -35,6 +35,7 @@
3535
* @library ../helpers /lib/client/
3636
* @library /test/lib
3737
* @build ExtendedRobot
38+
* @build jdk.test.lib.Asserts
3839
* @build Flag
3940
* @build TestDialog
4041
* @build TestFrame

test/jdk/java/awt/Modal/FileDialog/FileDialogDocModal2Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2026, 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
@@ -35,6 +35,7 @@
3535
* @library ../helpers /lib/client/
3636
* @library /test/lib
3737
* @build ExtendedRobot
38+
* @build jdk.test.lib.Asserts
3839
* @build Flag
3940
* @build TestDialog
4041
* @build TestFrame

test/jdk/java/awt/Modal/FileDialog/FileDialogDocModal3Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2026, 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
@@ -35,6 +35,7 @@
3535
* @library ../helpers /lib/client/
3636
* @library /test/lib
3737
* @build ExtendedRobot
38+
* @build jdk.test.lib.Asserts
3839
* @build Flag
3940
* @build TestDialog
4041
* @build TestFrame

0 commit comments

Comments
 (0)