Skip to content
Snippets Groups Projects
Commit c0edcf92 authored by jakubs's avatar jakubs
Browse files

SSDM-2464: add extra test

SVN: 34728
parent 70e9e6a3
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ import ch.ethz.sis.openbis.generic.shared.api.v3.dto.entity.attachment.Attachmen
import ch.ethz.sis.openbis.generic.shared.api.v3.dto.entity.attachment.AttachmentCreation;
import ch.ethz.sis.openbis.generic.shared.api.v3.dto.entity.dataset.DataSet;
import ch.ethz.sis.openbis.generic.shared.api.v3.dto.entity.experiment.Experiment;
import ch.ethz.sis.openbis.generic.shared.api.v3.dto.entity.history.HistoryEntry;
import ch.ethz.sis.openbis.generic.shared.api.v3.dto.entity.interfaces.IAttachmentsHolder;
import ch.ethz.sis.openbis.generic.shared.api.v3.dto.entity.interfaces.IModifierHolder;
import ch.ethz.sis.openbis.generic.shared.api.v3.dto.entity.interfaces.IParentChildrenHolder;
......@@ -426,6 +427,18 @@ public class AbstractTest extends SystemTestCase
});
}
protected void assertHistoryNotFetched(final HistoryEntry history)
{
assertNotFetched(new IDelegatedAction()
{
@Override
public void execute()
{
history.getAuthor();
}
});
}
private void assertNotFetched(final IDelegatedAction action)
{
try
......
......@@ -1095,6 +1095,8 @@ public class MapSampleTest extends AbstractSampleTest
assertTrue(entry.getValidFrom().before(end));
assertTrue(entry.getValidTo().after(entry.getValidFrom()));
assertTrue(entry.getValidTo().before(end));
assertHistoryNotFetched(entry);
}
@Test
......
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