Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apacheCommonsCsvVersion=1.14.1

aspectjVersion=1.9.24
aspectjVersion=1.9.25.1

assertjVersion=3.27.6

Expand Down
7 changes: 0 additions & 7 deletions src/org/labkey/serverapi/reader/DataLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -483,13 +483,6 @@ public void close() throws IOException
{
_closed = true;
}

@Override
protected void finalize() throws Throwable
{
super.finalize();
// assert _closed; TODO: Uncomment to force all callers to close iterator.
}
}
}

11 changes: 6 additions & 5 deletions src/org/labkey/test/tests/component/EditableGridTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.labkey.test.tests.component;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.mutable.MutableInt;
import org.json.JSONObject;
import org.junit.BeforeClass;
import org.junit.Ignore;
Expand Down Expand Up @@ -314,8 +315,8 @@ public void testDragFillSingleRow()
// Get the various row heights before adding a value to the multiLine field.
WebElement gridRow = Locator.tag("tr").findElements(testGrid).get(1);
int rowHeightBefore = gridRow.getSize().height;
var totalHeightBefore = new Object(){int size = 0; };
Locator.tag("tr").findElements(testGrid).forEach(gr -> totalHeightBefore.size = totalHeightBefore.size + gr.getSize().height);
var totalHeightBefore = new MutableInt(0);
Locator.tag("tr").findElements(testGrid).forEach(gr -> totalHeightBefore.add(gr.getSize().height));
WebElement topLeft = testGrid.setCellValue(0, FILL_STRING, stringValue);

testGrid.setCellValue(0, FILL_INT, intValue);
Expand Down Expand Up @@ -351,12 +352,12 @@ public void testDragFillSingleRow()
testGrid.getColumnData(FILL_DATE));

// Check that pasting increased the size of all the rows.
var totalHeightAfter = new Object(){int size = 0; };
Locator.tag("tr").findElements(testGrid).forEach(gr -> totalHeightAfter.size = totalHeightAfter.size + gr.getSize().height);
var totalHeightAfter = new MutableInt(0);
Locator.tag("tr").findElements(testGrid).forEach(gr -> totalHeightAfter.add(gr.getSize().height));

checker().withScreenshot()
.verifyTrue("The total height of all the rows should have increases after the paste.",
totalHeightBefore.size + (3 * rowHeightBefore) >= totalHeightAfter.size);
totalHeightBefore.intValue() + (3 * rowHeightBefore) >= totalHeightAfter.intValue());
}

@Test
Expand Down