File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -55,6 +55,12 @@ public class GetPackages {
55
55
this .fooClass = loader .loadClass ("foo.Foo" );
56
56
}
57
57
58
+ /** For TestNG */
59
+ public GetPackages () {
60
+ loader = null ;
61
+ fooClass = null ;
62
+ }
63
+
58
64
/*
59
65
* Check package "foo" defined locally in the TestClassLoader
60
66
* as well as its ancestors.
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -111,6 +111,11 @@ public static void testMethodSignature() throws Exception {
111
111
this .depth = depth ;
112
112
}
113
113
114
+ /** For TestNG */
115
+ public Basic () {
116
+ depth = 0 ;
117
+ }
118
+
114
119
/*
115
120
* Setup a stack builder with the expected stack depth
116
121
* Walk the stack and count the frames.
You can’t perform that action at this time.
0 commit comments