TSK-375 Use the in-memory version of h2 in unittests
This commit is contained in:
parent
2da4eadfb9
commit
98a3bd34ba
|
@ -23,7 +23,7 @@ public class TaskanaEngineConfiguration {
|
|||
|
||||
private static final String USER_NAME = "sa";
|
||||
private static final String USER_PASSWORD = "sa";
|
||||
private static final String JDBC_H2_MEM_TASKANA = "jdbc:h2:~/taskana-h2-data/testdb;AUTO_SERVER=TRUE;IGNORECASE=TRUE";
|
||||
private static final String JDBC_H2_MEM_TASKANA = "jdbc:h2:mem:taskana;IGNORECASE=TRUE";
|
||||
private static final String H2_DRIVER = "org.h2.Driver";
|
||||
private static final String TASKANA_ROLES_PROPERTIES = "/taskanaroles.properties";
|
||||
private static final String TASKANA_PROPERTIES_SEPARATOR = "|";
|
||||
|
|
|
@ -4,8 +4,6 @@ import static org.hamcrest.core.IsEqual.equalTo;
|
|||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertThat;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
|
@ -152,8 +150,4 @@ public class CreateClassificationAccTest extends AbstractAccTest {
|
|||
classification = classificationService.createClassification(classification);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,8 +8,6 @@ import static org.junit.Assert.fail;
|
|||
|
||||
import java.sql.SQLException;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
|
@ -140,8 +138,4 @@ public class DeleteClassificationAccTest extends AbstractAccTest {
|
|||
classificationService.deleteClassification("L10000", "DOMAIN_B");
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,8 +2,6 @@ package acceptance.classification;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -22,11 +20,6 @@ public class GetClassificationAccTest extends AbstractAccTest {
|
|||
super();
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFindAllClassifications() {
|
||||
ClassificationService classificationService = taskanaEngine.getClassificationService();
|
||||
|
|
|
@ -7,8 +7,6 @@ import java.sql.SQLException;
|
|||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import acceptance.AbstractAccTest;
|
||||
|
@ -223,8 +221,4 @@ public class QueryClassificationAccTest extends AbstractAccTest {
|
|||
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,8 +5,6 @@ import static org.junit.Assert.assertThat;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -164,8 +162,4 @@ public class QueryClassificationWithPaginationAccTest extends AbstractAccTest {
|
|||
assertThat(count, equalTo(16L));
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,8 +10,6 @@ import static org.junit.Assert.fail;
|
|||
import java.sql.SQLException;
|
||||
import java.time.Instant;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
|
@ -170,8 +168,4 @@ public class UpdateClassificationAccTest extends AbstractAccTest {
|
|||
classification = classificationService.updateClassification(classification);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,8 +11,6 @@ import java.util.List;
|
|||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -301,8 +299,4 @@ public class GetTaskIdsOfCategoryReportAccTest {
|
|||
return reportLineItemDefinitions;
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,8 +11,6 @@ import java.util.List;
|
|||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -462,8 +460,4 @@ public class ProvideCategoryReportAccTest {
|
|||
return builder.toString();
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,8 +11,6 @@ import java.util.List;
|
|||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -552,8 +550,4 @@ public class ProvideClassificationReportAccTest {
|
|||
return builder.toString();
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,8 +11,6 @@ import java.util.List;
|
|||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -480,8 +478,4 @@ public class ProvideCustomFieldValueReportAccTest {
|
|||
return builder.toString();
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,8 +11,6 @@ import java.util.List;
|
|||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -964,8 +962,4 @@ public class ProvideDetailedClassificationReportAccTest {
|
|||
return builder.toString();
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,8 +11,6 @@ import java.util.List;
|
|||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -454,8 +452,4 @@ public class ProvideWorkbasketLevelReportAccTest {
|
|||
return builder.toString();
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,8 +6,6 @@ import static org.junit.Assert.assertNotNull;
|
|||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import acceptance.AbstractAccTest;
|
||||
|
@ -110,8 +108,4 @@ public class QueryObjectReferenceAccTest extends AbstractAccTest {
|
|||
assertEquals(2, objectReferenceList.size());
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,8 +5,6 @@ import static org.junit.Assert.assertThat;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
@ -140,8 +138,4 @@ public class QueryObjectreferencesWithPaginationAccTest extends AbstractAccTest
|
|||
assertThat(count, equalTo(3L));
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,8 +13,6 @@ import java.util.Map;
|
|||
|
||||
import org.apache.ibatis.session.Configuration;
|
||||
import org.apache.ibatis.session.SqlSession;
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
|
@ -538,8 +536,4 @@ public class CreateTaskAccTest extends AbstractAccTest {
|
|||
assertEquals(workbasket.getDomain(), createdTask.getDomain());
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,8 +8,6 @@ import java.sql.SQLException;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
|
@ -135,8 +133,4 @@ public class DeleteTaskAccTest extends AbstractAccTest {
|
|||
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,8 +14,6 @@ import java.util.stream.Collectors;
|
|||
|
||||
import org.apache.ibatis.session.Configuration;
|
||||
import org.apache.ibatis.session.SqlSession;
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -530,8 +528,4 @@ public class QueryTasksAccTest extends AbstractAccTest {
|
|||
}
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,8 +3,6 @@ package acceptance.task;
|
|||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -68,8 +66,4 @@ public class QueryTasksByObjectReferenceAccTest extends AbstractAccTest {
|
|||
Assert.assertEquals(10L, results.size());
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,8 +7,6 @@ import java.sql.SQLException;
|
|||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -277,8 +275,4 @@ public class QueryTasksByTimeIntervalsAccTest extends AbstractAccTest {
|
|||
}
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,8 +2,6 @@ package acceptance.task;
|
|||
|
||||
import java.sql.SQLException;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -53,8 +51,4 @@ public class QueryTasksByWorkbasketAccTest extends AbstractAccTest {
|
|||
.list();
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,8 +6,6 @@ import static org.junit.Assert.assertThat;
|
|||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -197,8 +195,4 @@ public class QueryTasksWithPaginationAccTest extends AbstractAccTest {
|
|||
assertThat(count, equalTo(22L));
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,8 +6,6 @@ import static org.junit.Assert.assertThat;
|
|||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -222,8 +220,4 @@ public class QueryTasksWithSortingAccTest extends AbstractAccTest {
|
|||
}
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,8 +13,6 @@ import java.sql.SQLException;
|
|||
import java.time.Instant;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
|
@ -222,8 +220,4 @@ public class TransferTaskAccTest extends AbstractAccTest {
|
|||
assertEquals("USER_1_1", transferredTask.getWorkbasketKey());
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,8 +11,6 @@ import static org.junit.Assert.fail;
|
|||
import java.sql.SQLException;
|
||||
import java.time.Instant;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -211,8 +209,4 @@ public class UpdateTaskAccTest extends AbstractAccTest {
|
|||
taskService.updateTask(task);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,8 +13,6 @@ import java.time.Duration;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -429,8 +427,4 @@ public class UpdateTaskAttachmentsAccTest extends AbstractAccTest {
|
|||
assertTrue(readTask.getDue().equals(readTask.getPlanned().plus(Duration.ofDays(1))));
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,8 +15,6 @@ import java.time.Instant;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
|
@ -301,8 +299,4 @@ public class WorkOnTaskAccTest extends AbstractAccTest {
|
|||
assertTrue(results.getErrorForId("TKI:000000000000000000000000000000000102") instanceof InvalidStateException);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,8 +5,6 @@ import static org.junit.Assert.assertThat;
|
|||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -128,8 +126,4 @@ public class DeleteWorkbasketAccTest extends AbstractAccTest {
|
|||
workbasketService.deleteWorkbasket(wb.getId());
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,8 +10,6 @@ import java.util.Arrays;
|
|||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
|
@ -315,9 +313,4 @@ public class DistributionTargetsAccTest extends AbstractAccTest {
|
|||
assertEquals(2, distributionSources.size());
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -3,8 +3,6 @@ package acceptance.workbasket;
|
|||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -83,8 +81,4 @@ public class GetWorkbasketAccTest extends AbstractAccTest {
|
|||
workbasketService.getWorkbasket("WBI:100000000000000000000000000000000001");
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,8 +6,6 @@ import static org.junit.Assert.assertNotNull;
|
|||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -360,9 +358,4 @@ public class QueryWorkbasketAccTest extends AbstractAccTest {
|
|||
Assert.assertEquals(8L, results.size());
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -8,8 +8,6 @@ import static org.junit.Assert.fail;
|
|||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -143,9 +141,4 @@ public class QueryWorkbasketAccessItemsAccTest extends AbstractAccTest {
|
|||
Assert.assertEquals("WAI:100000000000000000000000000000000009", results.get(0).getId());
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -5,8 +5,6 @@ import static org.junit.Assert.fail;
|
|||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -132,8 +130,4 @@ public class QueryWorkbasketByPermissionAccTest extends AbstractAccTest {
|
|||
Assert.assertEquals(1, results.size());
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,8 +6,6 @@ import static org.junit.Assert.assertThat;
|
|||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -189,8 +187,4 @@ public class QueryWorkbasketsWithPaginationAccTest extends AbstractAccTest {
|
|||
assertThat(count, equalTo(9L));
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,8 +3,6 @@ package acceptance.workbasket;
|
|||
import java.sql.SQLException;
|
||||
import java.time.Instant;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -77,9 +75,4 @@ public class UpdateWorkbasketAccTest extends AbstractAccTest {
|
|||
workbasketService.updateWorkbasket(workbasket);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -10,8 +10,6 @@ import static org.junit.Assert.fail;
|
|||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -268,8 +266,4 @@ public class UpdateWorkbasketAuthorizationsAccTest extends AbstractAccTest {
|
|||
workbasketService.deleteWorkbasketAccessItemsForAccessId("123UNUSED456");
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,8 +5,6 @@ import static org.junit.Assert.assertThat;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -76,8 +74,4 @@ public class WorkbasketQueryWithOrderedPaginationAccTest extends AbstractAccTest
|
|||
assertThat(results.get(4).getKey(), equalTo("key3"));
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,8 +18,6 @@ import java.util.List;
|
|||
import javax.security.auth.login.LoginException;
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
|
@ -64,11 +62,6 @@ public class ClassificationServiceImplIntAutoCommitTest {
|
|||
cleaner.clearDb(ds, true);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
|
||||
@Before
|
||||
public void setup() throws FileNotFoundException, SQLException, LoginException {
|
||||
dataSource = TaskanaEngineConfigurationTest.getDataSource();
|
||||
|
|
|
@ -17,9 +17,7 @@ import java.util.List;
|
|||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.After;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
|
@ -65,11 +63,6 @@ public class ClassificationServiceImplIntExplicitTest {
|
|||
cleaner.clearDb(ds, true);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
|
||||
@Before
|
||||
public void setup() throws SQLException {
|
||||
dataSource = TaskanaEngineConfigurationTest.getDataSource();
|
||||
|
|
|
@ -13,8 +13,6 @@ import java.util.UUID;
|
|||
import javax.security.auth.login.LoginException;
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
|
@ -77,7 +75,6 @@ public class TaskServiceImplIntAutocommitTest {
|
|||
DataSource ds = TaskanaEngineConfigurationTest.getDataSource();
|
||||
DBCleaner cleaner = new DBCleaner();
|
||||
cleaner.clearDb(ds, true);
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
|
||||
@Before
|
||||
|
@ -401,7 +398,8 @@ public class TaskServiceImplIntAutocommitTest {
|
|||
}
|
||||
|
||||
private void createWorkbasketWithSecurity(Workbasket wb, String accessId, boolean permOpen,
|
||||
boolean permRead, boolean permAppend, boolean permTransfer) throws InvalidArgumentException, NotAuthorizedException {
|
||||
boolean permRead, boolean permAppend, boolean permTransfer)
|
||||
throws InvalidArgumentException, NotAuthorizedException {
|
||||
WorkbasketAccessItem accessItem = workbasketService.newWorkbasketAccessItem(wb.getId(), accessId);
|
||||
accessItem.setPermOpen(permOpen);
|
||||
accessItem.setPermRead(permRead);
|
||||
|
@ -410,8 +408,4 @@ public class TaskServiceImplIntAutocommitTest {
|
|||
workbasketService.createWorkbasketAccessItem(accessItem);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,9 +16,7 @@ import java.util.UUID;
|
|||
import javax.security.auth.login.LoginException;
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.After;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
|
@ -84,7 +82,6 @@ public class TaskServiceImplIntExplicitTest {
|
|||
DataSource ds = TaskanaEngineConfigurationTest.getDataSource();
|
||||
DBCleaner cleaner = new DBCleaner();
|
||||
cleaner.clearDb(ds, true);
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
|
||||
@Before
|
||||
|
@ -555,7 +552,8 @@ public class TaskServiceImplIntExplicitTest {
|
|||
}
|
||||
|
||||
private void createWorkbasketWithSecurity(Workbasket wb, String accessId, boolean permOpen,
|
||||
boolean permRead, boolean permAppend, boolean permTransfer) throws InvalidArgumentException, NotAuthorizedException {
|
||||
boolean permRead, boolean permAppend, boolean permTransfer)
|
||||
throws InvalidArgumentException, NotAuthorizedException {
|
||||
WorkbasketAccessItem accessItem = workbasketService.newWorkbasketAccessItem(wb.getId(), accessId);
|
||||
accessItem.setPermOpen(permOpen);
|
||||
accessItem.setPermRead(permRead);
|
||||
|
@ -568,10 +566,4 @@ public class TaskServiceImplIntExplicitTest {
|
|||
public void cleanUp() {
|
||||
taskanaEngineImpl.setConnection(null);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -16,8 +16,6 @@ import javax.security.auth.login.LoginException;
|
|||
import javax.sql.DataSource;
|
||||
|
||||
import org.apache.ibatis.session.SqlSession;
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
|
@ -266,8 +264,4 @@ public class WorkbasketServiceImplIntAutocommitTest {
|
|||
return new TimeInterval(begin, end);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,9 +10,7 @@ import java.util.List;
|
|||
import javax.security.auth.login.LoginException;
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.h2.store.fs.FileUtils;
|
||||
import org.junit.After;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
|
@ -255,8 +253,4 @@ public class WorkbasketServiceImplIntExplicitTest {
|
|||
taskanaEngineImpl.setConnection(null);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void cleanUpClass() {
|
||||
FileUtils.deleteRecursive("~/taskana-h2-data", true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue