< prev index next >
modules/graphics/src/test/java/test/javafx/scene/transform/TransformTest.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 46,55 ****
--- 46,56 ----
import java.lang.reflect.Method;
import javafx.scene.transform.Affine;
import javafx.scene.transform.Rotate;
import javafx.scene.transform.Scale;
import javafx.scene.transform.Transform;
+ import javafx.scene.transform.TransformShim;
import static org.junit.Assert.*;
public class TransformTest {
*** 153,169 ****
assertTx(n, affine3D);
}
@Test
public void defaultTransformShouldBeIdentity() {
! final Transform t = new Transform() {
! @Override
! public void impl_apply(com.sun.javafx.geom.transform.Affine3D ad) {}
!
! @Override
! public BaseTransform impl_derive(BaseTransform ad) { return null; }
! };
TransformHelper.assertMatrix(t,
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0);
--- 154,167 ----
assertTx(n, affine3D);
}
@Test
public void defaultTransformShouldBeIdentity() {
! final Transform t = TransformShim.createRawTransform(
! 1, 0, 0, 0,
! 0, 1, 0, 0,
! 0, 0, 1, 0);
TransformHelper.assertMatrix(t,
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0);
< prev index next >