Skip to content

Commit 863c37c

Browse files
committed
Further expand test
1 parent 7728f20 commit 863c37c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

LDK/test/src/org/labkey/test/tests/external/labModules/LabModulesTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
import java.util.Map;
6868
import java.util.TimeZone;
6969
import java.util.concurrent.TimeUnit;
70+
import java.util.stream.Collectors;
7071

7172
import static org.junit.Assert.assertEquals;
7273
import static org.junit.Assert.assertFalse;
@@ -1265,11 +1266,13 @@ private void workbookCreationTest() throws Exception
12651266
private void verifyOligoCount(int expected) throws Exception
12661267
{
12671268
SelectRowsCommand sr = new SelectRowsCommand("laboratory", "dna_oligos");
1268-
sr.setColumns(Arrays.asList("rowid"));
1269+
sr.setColumns(Arrays.asList("rowid", "name"));
12691270

12701271
Connection cn = WebTestHelper.getRemoteApiConnection();
12711272
SelectRowsResponse srr = sr.execute(cn, getCurrentContainerPath());
1272-
Assert.assertEquals(expected, srr.getRowCount().intValue());
1273+
1274+
String oligoNames = srr.getRows().stream().map(row -> row.get("name").toString()).collect(Collectors.joining(","));
1275+
Assert.assertEquals("Incorrect number of oligos, found: " + oligoNames, expected, srr.getRowCount().intValue());
12731276
}
12741277

12751278
private void dnaOligosTableTest() throws Exception

0 commit comments

Comments
 (0)