Skip to content
Snippets Groups Projects
Commit fdb4b707 authored by ribeaudc's avatar ribeaudc
Browse files

fix: - Unit test.

SVN: 7914
parent 44f25210
No related branches found
No related tags found
No related merge requests found
...@@ -68,15 +68,14 @@ public final class DataStructureV1_1Test extends AbstractFileSystemTestCase ...@@ -68,15 +68,14 @@ public final class DataStructureV1_1Test extends AbstractFileSystemTestCase
public void testSetSample() public void testSetSample()
{ {
dataStructure.create(); dataStructure.create();
boolean fail = true;
try try
{ {
dataStructure.setSample(SAMPLE); dataStructure.setSample(SAMPLE);
} catch (final AssertionError ex) fail();
} catch (final DataStructureException ex)
{ {
fail = false; // Nothing to do here.
} }
assertFalse(fail);
dataStructure.setSample(new SampleWithOwner(SAMPLE, dataStructure.setSample(new SampleWithOwner(SAMPLE,
SampleWithOwnerTest.INSTANCE_GLOBAL_CODE, SampleWithOwnerTest.INSTANCE_CODE, "")); SampleWithOwnerTest.INSTANCE_GLOBAL_CODE, SampleWithOwnerTest.INSTANCE_CODE, ""));
} }
......
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