Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 260872 Details for
Bug 491404
Enhancement for Line (getMidPoint)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Test case for Line.getMidPoint
line-getmidpoint-test.patch (text/plain), 877 bytes, created by
Colin Sharples
on 2016-04-11 17:33:09 EDT
(
hide
)
Description:
Test case for Line.getMidPoint
Filename:
MIME Type:
Creator:
Colin Sharples
Created:
2016-04-11 17:33:09 EDT
Size:
877 bytes
patch
obsolete
>diff --git a/org.eclipse.gef4.geometry.tests/src/org/eclipse/gef4/geometry/tests/LineTests.java b/org.eclipse.gef4.geometry.tests/src/org/eclipse/gef4/geometry/tests/LineTests.java >index 2bbe28f..65635c6 100644 >--- a/org.eclipse.gef4.geometry.tests/src/org/eclipse/gef4/geometry/tests/LineTests.java >+++ b/org.eclipse.gef4.geometry.tests/src/org/eclipse/gef4/geometry/tests/LineTests.java >@@ -274,6 +274,16 @@ > } > > @Test >+ public void test_getMidPoint() throws Exception { >+ Line l1 = new Line(100, 100, 200, 200); >+ assertEquals(new Point(150, 150), l1.getMidPoint()); >+ l1 = new Line(100, 100, 100, 200); >+ assertEquals(new Point(100, 150), l1.getMidPoint()); >+ l1 = new Line(100, 100, 200, 100); >+ assertEquals(new Point(150, 100), l1.getMidPoint()); >+ } >+ >+ @Test > public void test_getProjection() { > Line x100 = new Line(0, 0, 100, 0); > // check start point
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 491404
:
260834
| 260872 |
260940