Skip to content

Commit

Permalink
fix test after formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati committed Dec 22, 2023
1 parent 1cad00c commit 453604d
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ public void createLocationTracked() {
c2 = new Component1();

ComponentTracker.Location c1Location = ComponentTracker.findCreate(c1);
Assert.assertEquals(69, c1Location.lineNumber());
Assert.assertEquals(68, c1Location.lineNumber());
Assert.assertEquals(getClass().getName(), c1Location.className());

ComponentTracker.Location c2Location = ComponentTracker.findCreate(c2);
Assert.assertEquals(71, c2Location.lineNumber());
Assert.assertEquals(70, c2Location.lineNumber());
Assert.assertEquals(getClass().getName(), c2Location.className());
}

Expand All @@ -87,13 +87,13 @@ public void attachLocationTracked() {
Layout layout = new Layout(c1);

ComponentTracker.Location c1Location = ComponentTracker.findAttach(c1);
Assert.assertEquals(88, c1Location.lineNumber());
Assert.assertEquals(87, c1Location.lineNumber());
Assert.assertEquals(getClass().getName(), c1Location.className());

layout.add(c2);

ComponentTracker.Location c2Location = ComponentTracker.findAttach(c2);
Assert.assertEquals(94, c2Location.lineNumber());
Assert.assertEquals(93, c2Location.lineNumber());
Assert.assertEquals(getClass().getName(), c2Location.className());

// Last attach is tracked
Expand All @@ -102,7 +102,7 @@ public void attachLocationTracked() {
layout.add(c3);

ComponentTracker.Location c3Location = ComponentTracker.findAttach(c3);
Assert.assertEquals(103, c3Location.lineNumber());
Assert.assertEquals(102, c3Location.lineNumber());
Assert.assertEquals(getClass().getName(), c3Location.className());
}

Expand All @@ -113,19 +113,19 @@ public void offsetApplied() {
Component c3 = new Component1();

ComponentTracker.Location c1Location = ComponentTracker.findCreate(c1);
Assert.assertEquals(112, c1Location.lineNumber());
Assert.assertEquals(111, c1Location.lineNumber());
Assert.assertEquals(getClass().getName(), c1Location.className());

ComponentTracker.refreshLocation(c1Location, 3);

ComponentTracker.Location c2Location = ComponentTracker.findCreate(c2);
Assert.assertEquals(113 + 3, c2Location.lineNumber());
Assert.assertEquals(112 + 3, c2Location.lineNumber());
Assert.assertEquals(getClass().getName(), c2Location.className());

ComponentTracker.refreshLocation(c2Location, 1);

ComponentTracker.Location c3Location = ComponentTracker.findCreate(c3);
Assert.assertEquals(114 + 3 + 1, c3Location.lineNumber());
Assert.assertEquals(113 + 3 + 1, c3Location.lineNumber());
Assert.assertEquals(getClass().getName(), c3Location.className());
}

Expand Down

0 comments on commit 453604d

Please sign in to comment.