Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
trunk
-
None
-
None
Description
TestXTestCase have the methods testBaseDir and testWaitFor.
TestXTestCase has the inner class MyXTestCase as well that have the same methods with the same name.
The problem is that Junit runs tests and creates the directory for inner class before the time when the actual tests would be running.
As a result we have the following errors:" testWaitFor(org.apache.oozie.test.TestXTestCase): could not delete path [oozie-monarch\core\target\test-data\oozietests\org.apache.oozie.test.TestXTestCase$MyXTestCase\testWaitFor\conf\oozie-site.xml] testBaseDir(org.apache.oozie.test.TestXTestCase): could not delete path [oozie-monarch\core\target\test-data\oozietests\org.apache.oozie.test.TestXTestCase$MyXTestCase\testBaseDir\conf\oozie-site.xml]"
That is why we need to add the check for setUp and tearDown methods as for the other
This errors appear in Windows