Skip to content

Commit 1745af9

Browse files
author
i.hilerio
committed
Add throw exception to assert error is thrown.
SVN r64397 |2019-08-29 20:32:50 +0000
1 parent bbfa45b commit 1745af9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/src/org/labkey/remoteapi/test/Test.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ public static void truncateAssayFailsTest(Connection cn, String folder) throws E
299299
TruncateTableCommand trunc = new TruncateTableCommand("assay.NAb.TestAssayNab", "WellData");
300300
try{
301301
SaveRowsResponse resp = trunc.execute(cn, folder);
302+
throw new RuntimeException("Truncate table command should not succeed for tables other than lists," +
303+
"datasets, sample sets, data classes, and issues");
302304
}
303305
catch (CommandException e)
304306
{

0 commit comments

Comments
 (0)