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

SP-169 BIS-90 merge two test methods into one (fix problem with tests interference)

SVN: 25937
parent 181a2f74
No related branches found
No related tags found
No related merge requests found
...@@ -53,20 +53,6 @@ public class LinkDataSetImportSystemTest extends SystemTestCase ...@@ -53,20 +53,6 @@ public class LinkDataSetImportSystemTest extends SystemTestCase
private HashSet<String> preexistingDataSetCodes; private HashSet<String> preexistingDataSetCodes;
/**
* The testcase that just imports the data. Other tests can depend on it, and assert stuff.
*/
@Test
public void testImportLinkDataSet() throws Exception
{
preparePreexistingDataSetCodes();
File exampleDataSet = new File(workingDirectory, "my-data");
createExampleDataSet(exampleDataSet);
moveFileToIncoming(exampleDataSet);
waitUntilDataSetImported();
}
private void preparePreexistingDataSetCodes() private void preparePreexistingDataSetCodes()
{ {
preexistingDataSetCodes = new HashSet<String>(); preexistingDataSetCodes = new HashSet<String>();
...@@ -103,9 +89,16 @@ public class LinkDataSetImportSystemTest extends SystemTestCase ...@@ -103,9 +89,16 @@ public class LinkDataSetImportSystemTest extends SystemTestCase
return dataSets; return dataSets;
} }
@Test(dependsOnMethods = "testImportLinkDataSet") @Test
public void checkLinkDataSetIsImported() public void checkLinkDataSetIsImported() throws Exception
{ {
preparePreexistingDataSetCodes();
File exampleDataSet = new File(workingDirectory, "my-data");
createExampleDataSet(exampleDataSet);
moveFileToIncoming(exampleDataSet);
waitUntilDataSetImported();
IEncapsulatedOpenBISService openBISService = ServiceProvider.getOpenBISService(); IEncapsulatedOpenBISService openBISService = ServiceProvider.getOpenBISService();
List<String> codes = newDataSetCodes(); List<String> codes = newDataSetCodes();
......
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