Skip to content

Commit

Permalink
[426] Fix EdgeStabilityOnPortCollapsingTest
Browse files Browse the repository at this point in the history
This test was based on some wrong bounds. The edge has been slightly
moved to retrieve the previous edge bendpoints number after collapse.

Bug: #426
  • Loading branch information
lredor committed Sep 27, 2024
1 parent 36436b5 commit f5dc321
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
</edges>
<edges xmi:type="notation:Edge" xmi:id="_2MVpYA8vEd-Sv-AozcjW4A" type="4001" element="_-wPYJZjEEeCTjf2eRUPO7Q" source="_2JCdwA8vEd-Sv-AozcjW4A" target="_2LYnIA8vEd-Sv-AozcjW4A">
<children xmi:type="notation:Node" xmi:id="_2MVpZA8vEd-Sv-AozcjW4A" type="6001">
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_zFyVAoRLEeOg_8QSiaL3XA" y="40"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_zFyVAoRLEeOg_8QSiaL3XA" x="-1" y="40"/>
</children>
<children xmi:type="notation:Node" xmi:id="_-vDFUpjEEeCTjf2eRUPO7Q" type="6002">
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_-vDFU5jEEeCTjf2eRUPO7Q" y="10"/>
Expand All @@ -179,7 +179,7 @@
</children>
<styles xmi:type="notation:ConnectorStyle" xmi:id="_2MVpYQ8vEd-Sv-AozcjW4A" routing="Rectilinear" jumpLinkStatus="Above"/>
<styles xmi:type="notation:FontStyle" xmi:id="_2MVpYg8vEd-Sv-AozcjW4A" fontName="Segoe UI" fontHeight="8"/>
<bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_2MVpYw8vEd-Sv-AozcjW4A" points="[10, 0, -384, 111]$[143, 0, -251, 111]$[143, -111, -251, 0]$[384, -111, -10, 0]"/>
<bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_2MVpYw8vEd-Sv-AozcjW4A" points="[10, 0, -384, 107]$[143, 0, -251, 107]$[143, -107, -251, 0]$[384, -107, -10, 0]"/>
</edges>
<edges xmi:type="notation:Edge" xmi:id="_gYqHwDaZEd-5jPRUUjhbiA" type="4001" element="_-wP_MJjEEeCTjf2eRUPO7Q" source="_gXrQUDaZEd-5jPRUUjhbiA" target="_gYVXoDaZEd-5jPRUUjhbiA">
<children xmi:type="notation:Node" xmi:id="_gYrV4DaZEd-5jPRUUjhbiA" type="6001">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2010, 2019 THALES GLOBAL SERVICES.
* Copyright (c) 2010, 2024 THALES GLOBAL SERVICES.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -82,10 +82,10 @@ public class EdgeStabilityOnPortCollapsingTest extends SiriusDiagramTestCase {
pointsToE.add(new Point(612, 250));
CONNECTION_EDITPART_POINTS.put("toE", pointsToE);
ArrayList<Point> pointsToF = new ArrayList<Point>();
pointsToF.add(new Point(244, 195));
pointsToF.add(new Point(377, 195));
pointsToF.add(new Point(377, 85));
pointsToF.add(new Point(618, 85));
pointsToF.add(new Point(244, 194));
pointsToF.add(new Point(377, 194));
pointsToF.add(new Point(377, 87));
pointsToF.add(new Point(618, 87));
CONNECTION_EDITPART_POINTS.put("toF", pointsToF);
}

Expand Down

0 comments on commit f5dc321

Please sign in to comment.