modules/graphics/src/test/java/test/javafx/scene/shape/ClosePathTest.java
Print this page
rev 9250 : 8134762: Refactor Javafx graphics module tests for clear separation of tests
Reviewed-by:
*** 21,43 ****
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! package javafx.scene.shape;
import com.sun.javafx.sg.prism.NGPath;
import org.junit.Test;
import static org.junit.Assert.*;
public class ClosePathTest {
@Test public void testAddTo() throws Exception {
final StubPathImpl pgPath = new StubPathImpl();
ClosePath closePath = new ClosePath();
! closePath.addTo(pgPath);
assertTrue(pgPath.isClosed());
}
@Test public void toStringShouldReturnNonEmptyString() {
--- 21,45 ----
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! package test.javafx.scene.shape;
import com.sun.javafx.sg.prism.NGPath;
+ import javafx.scene.shape.ClosePath;
+ import javafx.scene.shape.ClosePathShim;
import org.junit.Test;
import static org.junit.Assert.*;
public class ClosePathTest {
@Test public void testAddTo() throws Exception {
final StubPathImpl pgPath = new StubPathImpl();
ClosePath closePath = new ClosePath();
! ClosePathShim.addTo(closePath, pgPath);
assertTrue(pgPath.isClosed());
}
@Test public void toStringShouldReturnNonEmptyString() {