8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8325485
27 * @summary Testing ClassFile on small Corpus.
28 * @build helpers.* testdata.*
29 * @run junit/othervm/timeout=480 -Djunit.jupiter.execution.parallel.enabled=true CorpusTest
30 */
31 import helpers.ClassRecord;
32 import helpers.ClassRecord.CompatibilityFilter;
33 import helpers.Transforms;
34 import jdk.internal.classfile.impl.BufWriterImpl;
35 import jdk.internal.classfile.impl.Util;
36 import org.junit.jupiter.params.ParameterizedTest;
37 import org.junit.jupiter.params.provider.MethodSource;
38 import org.junit.jupiter.api.parallel.Execution;
39 import org.junit.jupiter.api.parallel.ExecutionMode;
40
41 import java.io.ByteArrayInputStream;
42 import java.lang.classfile.attribute.CodeAttribute;
43 import java.util.*;
44
45 import static helpers.ClassRecord.assertEqualsDeep;
46 import static java.util.stream.Collectors.joining;
47 import static org.junit.jupiter.api.Assertions.*;
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8325485
27 * @summary Testing ClassFile on small Corpus.
28 * @enablePreview
29 * @build helpers.* testdata.*
30 * @run junit/othervm/timeout=480 -Djunit.jupiter.execution.parallel.enabled=true CorpusTest
31 */
32 import helpers.ClassRecord;
33 import helpers.ClassRecord.CompatibilityFilter;
34 import helpers.Transforms;
35 import jdk.internal.classfile.impl.BufWriterImpl;
36 import jdk.internal.classfile.impl.Util;
37 import org.junit.jupiter.params.ParameterizedTest;
38 import org.junit.jupiter.params.provider.MethodSource;
39 import org.junit.jupiter.api.parallel.Execution;
40 import org.junit.jupiter.api.parallel.ExecutionMode;
41
42 import java.io.ByteArrayInputStream;
43 import java.lang.classfile.attribute.CodeAttribute;
44 import java.util.*;
45
46 import static helpers.ClassRecord.assertEqualsDeep;
47 import static java.util.stream.Collectors.joining;
48 import static org.junit.jupiter.api.Assertions.*;
|