jdk/test/java/beans/XMLEncoder/java_awt_geom_AffineTransform.java
author coleenp
Wed, 17 Jun 2015 21:44:48 +0000
changeset 31362 8957ccbb5821
parent 7006 05505fff1342
permissions -rw-r--r--
8098821: Crash in system dictionary initialization with shared strings Summary: map string regions after the compressed class base is known Reviewed-by: iklam, dcubed Contributed-by: coleen.phillimore@oracle.com, mikhailo.seledtsov@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7006
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
     1
/*
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
     2
 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
     4
 *
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
     7
 * published by the Free Software Foundation.
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
     8
 *
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    13
 * accompanied this code).
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    14
 *
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    18
 *
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    21
 * questions.
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    22
 */
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    23
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    24
/*
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    25
 * @test
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    26
 * @bug 4358979
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    27
 * @summary Tests AffineTransform encoding
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    28
 * @author Sergey Malenkov
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    29
 */
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    30
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    31
import java.awt.geom.AffineTransform;
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    32
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    33
public final class java_awt_geom_AffineTransform extends AbstractTest<AffineTransform> {
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    34
    public static void main(String[] args) {
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    35
        new java_awt_geom_AffineTransform().test(true);
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    36
    }
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    37
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    38
    protected AffineTransform getObject() {
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    39
        return new AffineTransform(0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f);
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    40
    }
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    41
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    42
    protected AffineTransform getAnotherObject() {
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    43
        return new AffineTransform(0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f);
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    44
    }
05505fff1342 4358979: javax.swing.border should have a DashedBorder
malenkov
parents:
diff changeset
    45
}