package jmri.jmrit.display.layoutEditor; import java.awt.geom.Point2D; import org.junit.jupiter.api.*; import org.junit.jupiter.api.condition.DisabledIfSystemProperty; /** * Test simple functioning of LayoutDoubleSlipView * * @author Bob Jacobsen Copyright (C) 2020 */ @DisabledIfSystemProperty(named ="java.awt.headless", matches ="true") public class LayoutDoubleSlipViewTest extends LayoutSlipViewTest { @Test public void testCtor() { Point2D point = new Point2D.Double(150.0, 100.0); var ldsv = new LayoutDoubleSlipView(dslip, point, 0.0, layoutEditor); Assertions.assertNotNull(ldsv); } LayoutDoubleSlip dslip; @Override @BeforeEach @javax.annotation.OverridingMethodsMustInvokeSuper public void setUp() { super.setUp(); dslip = new LayoutDoubleSlip("DoubleSlip", layoutEditor); } @Override @AfterEach @javax.annotation.OverridingMethodsMustInvokeSuper public void tearDown() { dslip = null; super.tearDown(); } }