SRADA-374: Fixed errors in Dynamic Analyzer unit tests sources.
authorDmitriy Nikiforov <d.nikiforov@partner.samsung.com>
Thu, 28 Apr 2016 17:45:56 +0000 (20:45 +0300)
committergihun chang <gihun.chang@samsung.com>
Mon, 4 Jul 2016 09:42:36 +0000 (18:42 +0900)
commitd0a7d5a1b81965ee5424ff5dd7c0c69b7e24b912
tree00481567f9eb56ca7735cb101c2e931c1c9e780c
parent78cdd40ca746ec6e779c474032e28f34bd0c1844
SRADA-374: Fixed errors in Dynamic Analyzer unit tests sources.

1) Added @Ignore annotation to AnalyzerUtil tests.

These test now all fail as tested functionality is not yet implemented so
they must be ignored.

2) Fixed org.tizen.dynamicanalyzer.ui.file.data tests

Changed hardcoded pathes to Tizen-SDK to current directory with following
deletion of all created files in cleanup. For that purpose Apache Commons IO
library was added to 'test/lib' (same version as in org.tizen.common).

Added calls of SqlConnectionManager.releaseResultSet() to FileApiDBTest.
Without it test hung on SqlConnectionManager.closeConnection().

3) Fixed FileChartBoardTest from org.tizen.dynamicanalyzer.ui.file

Injected FileDataMaker mock object into FileChartBoard object to avoid
NullPointerException.

Marked test with @Ignore as it does not test anything now.

4) Fixed ExecutionCallbackManagerTest

This test relied on tests execution order which was changed in later JUnit
versions.

Tests verified number of executions of methods from the same objects. This
resulted in doubled numbers in the second test.

5) Fixed FileDataMakerTest

Changed database path to relative to current directory with cleanup after
all tests.

Change-Id: I0ffb803f1e12fdd799aa7494a99335dd27d4970c
org.tizen.dynamicanalyzer.common/test/src/org/tizen/dynamicanalyzer/common/ExecutionCallbackManagerTest.java
org.tizen.dynamicanalyzer/test/lib/commons-io-2.4.jar [new file with mode: 0644]
org.tizen.dynamicanalyzer/test/src/org/tizen/dynamicanalyzer/ui/file/FileChartBoardTest.java
org.tizen.dynamicanalyzer/test/src/org/tizen/dynamicanalyzer/ui/file/data/FileAccessDBTest.java
org.tizen.dynamicanalyzer/test/src/org/tizen/dynamicanalyzer/ui/file/data/FileAccessorDBTest.java
org.tizen.dynamicanalyzer/test/src/org/tizen/dynamicanalyzer/ui/file/data/FileApiDBTest.java
org.tizen.dynamicanalyzer/test/src/org/tizen/dynamicanalyzer/ui/file/data/FileStatusDBTest.java
org.tizen.dynamicanalyzer/test/src/org/tizen/dynamicanalyzer/ui/file/manager/FileDataMakerTest.java
org.tizen.dynamicanalyzer/test/src/org/tizen/dynamicanalyzer/utils/AnalyzerUtilTest.java