2965N/A/*
2965N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
2965N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2965N/A *
2965N/A * This code is free software; you can redistribute it and/or modify it
2965N/A * under the terms of the GNU General Public License version 2 only, as
2965N/A * published by the Free Software Foundation.
2965N/A *
2965N/A * This code is distributed in the hope that it will be useful, but WITHOUT
2965N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2965N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2965N/A * version 2 for more details (a copy is included in the LICENSE file that
2965N/A * accompanied this code).
2965N/A *
2965N/A * You should have received a copy of the GNU General Public License version
2965N/A * 2 along with this work; if not, write to the Free Software Foundation,
2965N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2965N/A *
2965N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2965N/A * or visit www.oracle.com if you need additional information or have any
2965N/A * questions.
2965N/A */
2965N/A
2965N/A/*
2965N/A * @test
2965N/A * @bug 4358979
2965N/A * @summary Tests BasicStroke encoding
2965N/A * @author Sergey Malenkov
2965N/A */
2965N/A
2965N/Aimport java.awt.BasicStroke;
2965N/A
2965N/Apublic final class java_awt_BasicStroke extends AbstractTest<BasicStroke> {
2965N/A public static void main(String[] args) {
2965N/A new java_awt_BasicStroke().test(true);
2965N/A }
2965N/A
2965N/A protected BasicStroke getObject() {
2965N/A return new BasicStroke();
2965N/A }
2965N/A
2965N/A protected BasicStroke getAnotherObject() {
2965N/A float[] f = {1.0f, 2.0f, 3.0f, 4.0f};
2965N/A return new BasicStroke(f[1], BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, f[2], f, f[3]);
2965N/A }
2965N/A}