TSK-860: Removed an additional (& unnecessary) error message
This commit is contained in:
parent
fa5dc48155
commit
b7fe42206e
|
@ -5,6 +5,7 @@ import static org.hamcrest.CoreMatchers.not;
|
||||||
import static org.junit.Assert.assertThat;
|
import static org.junit.Assert.assertThat;
|
||||||
import static org.junit.Assert.fail;
|
import static org.junit.Assert.fail;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -78,17 +79,14 @@ public class TaskServiceImplIntExplicitTest {
|
||||||
private static ClassificationService classificationService;
|
private static ClassificationService classificationService;
|
||||||
private static WorkbasketService workbasketService;
|
private static WorkbasketService workbasketService;
|
||||||
|
|
||||||
@Before
|
|
||||||
public void resetDb() {
|
|
||||||
cleaner.clearDb(dataSource, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void setup() throws SQLException {
|
public static void setup() throws SQLException {
|
||||||
String userHomeDirectroy = System.getProperty("user.home");
|
String userHomeDirectroy = System.getProperty("user.home");
|
||||||
String propertiesFileName = userHomeDirectroy + "/taskanaUnitTest.properties";
|
String propertiesFileName = userHomeDirectroy + "/taskanaUnitTest.properties";
|
||||||
|
|
||||||
dataSource = TaskanaEngineConfigurationTest.createDataSourceFromProperties(propertiesFileName);
|
dataSource = new File(propertiesFileName).exists()
|
||||||
|
? TaskanaEngineConfigurationTest.createDataSourceFromProperties(propertiesFileName)
|
||||||
|
: TaskanaEngineConfiguration.createDefaultDataSource();
|
||||||
taskanaEngineConfiguration = new TaskanaEngineConfiguration(dataSource, false,
|
taskanaEngineConfiguration = new TaskanaEngineConfiguration(dataSource, false,
|
||||||
TaskanaEngineConfigurationTest.getSchemaName());
|
TaskanaEngineConfigurationTest.getSchemaName());
|
||||||
taskanaEngine = taskanaEngineConfiguration.buildTaskanaEngine();
|
taskanaEngine = taskanaEngineConfiguration.buildTaskanaEngine();
|
||||||
|
@ -102,6 +100,11 @@ public class TaskServiceImplIntExplicitTest {
|
||||||
creator.run();
|
creator.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Before
|
||||||
|
public void resetDb() {
|
||||||
|
cleaner.clearDb(dataSource, false);
|
||||||
|
}
|
||||||
|
|
||||||
@WithAccessId(userName = "Elena", groupNames = {"businessadmin"})
|
@WithAccessId(userName = "Elena", groupNames = {"businessadmin"})
|
||||||
@Test(expected = TaskNotFoundException.class)
|
@Test(expected = TaskNotFoundException.class)
|
||||||
public void testStartTransactionFail()
|
public void testStartTransactionFail()
|
||||||
|
|
Loading…
Reference in New Issue