Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 491404 | Differences between
and this patch

Collapse All | Expand All

(-)a/org.eclipse.gef4.geometry.tests/src/org/eclipse/gef4/geometry/tests/LineTests.java (+10 lines)
Lines 274-279 Link Here
274
	}
274
	}
275
275
276
	@Test
276
	@Test
277
	public void test_getMidPoint() throws Exception {
278
		Line l1 = new Line(100, 100, 200, 200);
279
		assertEquals(new Point(150, 150), l1.getMidPoint());
280
		l1 = new Line(100, 100, 100, 200);
281
		assertEquals(new Point(100, 150), l1.getMidPoint());
282
		l1 = new Line(100, 100, 200, 100);
283
		assertEquals(new Point(150, 100), l1.getMidPoint());
284
	}
285
286
	@Test
277
	public void test_getProjection() {
287
	public void test_getProjection() {
278
		Line x100 = new Line(0, 0, 100, 0);
288
		Line x100 = new Line(0, 0, 100, 0);
279
		// check start point
289
		// check start point

Return to bug 491404