Skip to content
Open
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
8 changes: 4 additions & 4 deletions src/org/labkey/test/tests/SampleTypeLineageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -797,9 +797,9 @@ public void testLineageWithInvalidValue() throws IOException, CommandException
fail("Expect CommandException when inserting bogus lineage");
}catch (CommandException successMaybe)
{
assertTrue("expect bad lineage to produce error containing [Sample 'BOGUS' not found in Sample Type 'badLineageTest'.];\n" +
assertTrue("expect bad lineage to produce error containing [Parent sample 'BOGUS' from Sample Type 'badLineageTest' not found in the current context.];\n" +
"instead got: [" + successMaybe.getMessage() + "]",
successMaybe.getMessage().contains("Sample 'BOGUS' not found in Sample Type 'badLineageTest'."));
successMaybe.getMessage().contains("Parent sample 'BOGUS' from Sample Type 'badLineageTest' not found in the current context."));
}
}

Expand All @@ -826,9 +826,9 @@ public void testLineageWithInvalidParentColumnValue() throws IOException, Comman
fail("Expect CommandException when inserting bogus lineage");
}catch (CommandException successMaybe) // success looks like a CommandException with the expected message
{
assertTrue("expect bad lineage to produce error containing [Sample 'BOGUS' not found in Sample Type 'badParentLineage'.];\n" +
assertTrue("expect bad lineage to produce error containing [Parent sample 'BOGUS' from Sample Type 'badParentLineage' not found in the current context.];\n" +
"instead got: [" + successMaybe.getMessage() + "]",
successMaybe.getMessage().contains("Sample 'BOGUS' not found in Sample Type 'badParentLineage'."));
successMaybe.getMessage().contains("Parent sample 'BOGUS' from Sample Type 'badParentLineage' not found in the current context."));
}

// clean up on success
Expand Down