langtools/test/tools/javac/classfiles/attributes/SourceFile/SourceFileTestBase.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
28 import java.nio.file.Path; |
28 import java.nio.file.Path; |
29 import java.util.ArrayList; |
29 import java.util.ArrayList; |
30 import java.util.List; |
30 import java.util.List; |
31 import java.util.Map; |
31 import java.util.Map; |
32 import javax.tools.JavaFileObject; |
32 import javax.tools.JavaFileObject; |
|
33 |
|
34 import toolbox.ToolBox; |
33 |
35 |
34 /** |
36 /** |
35 * Base class for Source file attribute tests. Checks expected file name for specified classes in the SourceFile attribute. |
37 * Base class for Source file attribute tests. Checks expected file name for specified classes in the SourceFile attribute. |
36 * To add new tests you should extend the SourceFileTestBase class and invoke {@link #test} for static sources |
38 * To add new tests you should extend the SourceFileTestBase class and invoke {@link #test} for static sources |
37 * or {@link #compileAndTest} for generated sources. For more information see corresponding methods. |
39 * or {@link #compileAndTest} for generated sources. For more information see corresponding methods. |