Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ import org.apache.commons.math3.geometry.euclidean.threed.Line; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; /** * * @author palas.jiri */ public class NewEmptyJUnitTest { public NewEmptyJUnitTest() { } @Before public void setUp() { } @After public void tearDown() { } @Test public void hello() { Line line = new Line(new Vector3D(-1, -1, -1), new Vector3D(1, -1, -1)); boolean result = line.contains(new Vector3D(2, -1, -1)); assertTrue(result); } }