Skip to content
Snippets Groups Projects
Commit 27fd5bfa authored by buczekp's avatar buczekp
Browse files

minor: changed tests expectations for better reliability

SVN: 18939
parent 1b8c9b1d
No related branches found
No related tags found
No related merge requests found
...@@ -153,13 +153,14 @@ public final class SampleTypeDAOTest extends AbstractDAOTest ...@@ -153,13 +153,14 @@ public final class SampleTypeDAOTest extends AbstractDAOTest
logRecorder.resetLogContent(); logRecorder.resetLogContent();
final SampleTypePE sampleType = sampleTypeDAO.tryFindSampleTypeByExample(example); final SampleTypePE sampleType = sampleTypeDAO.tryFindSampleTypeByExample(example);
checkSampleType(sampleType); checkSampleType(sampleType);
assertEquals( String expectedLogContent =
"tryFindSampleTypeByExample(SampleTypePE{" "tryFindSampleTypeByExample(SampleTypePE{"
+ "code=MASTER_PLATE,description=<null>,databaseInstance=<null>,listable=<null>," + "code=MASTER_PLATE,description=<null>,databaseInstance=<null>,listable=<null>,"
+ "containerHierarchyDepth=<null>,generatedFromHierarchyDepth=<null>}): Sample type " + "containerHierarchyDepth=<null>,generatedFromHierarchyDepth=<null>}): Sample type "
+ "'SampleTypePE{code=MASTER_PLATE,description=Master Plate," + "'SampleTypePE{code=MASTER_PLATE,description=Master Plate,"
+ "databaseInstance=DatabaseInstancePE{code=CISD},listable=true," + "databaseInstance=DatabaseInstancePE{code=CISD},listable=true,"
+ "containerHierarchyDepth=0,generatedFromHierarchyDepth=0}' found.", + "containerHierarchyDepth=0,generatedFromHierarchyDepth=0}' found.";
logRecorder.getLogContent()); assertTrue("Expected content wasn't found in log:\n\n" + logRecorder.getLogContent(),
logRecorder.getLogContent().contains(expectedLogContent));
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment