Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev] CheckIn:Make Data Unit Test runable when being packed to jar file.

Title: CheckIn:Make Data Unit Test runable when being packed to jar file.

-Summary:
CheckIn: Make Data Unit Test runable when being packed to jar file.

-Bugzilla Bug (s) Resolved:
No

-Description:

In original Data Junit test, we create temporary output files and compare it to golden files in test cases. This approach however is not applicable when the unit test is packed to a jar file. The following changes are made so that the test can be run even if it is packed to jar file.
1.The temporary output files are created in system temp file dir rather than bin dir.
2.Change the mechanism to access the golden file so that they can be located even in jar file.

-Tests Description:
Unit Test

-Files Added:

-Files Edited:
/org.eclipse.birt.data.tests/build.properties
/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/api/APITestCase.java
/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/api/golden/ScriptTest.test1_ReadDataSource.txt
/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/api/golden/ScriptTest.test2_UpdateDataSource.txt
/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/api/golden/ScriptTest.test5_UpdateProps.txt
/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/binding/APITestCase.java
/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/binding/ColumnBindingTest.java
/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/impl/rd/RDTestCase.java
/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/impl/rd/ReportDocumentTest2.java
/org.eclipse.birt.data.tests/test/testutil/BaseTestCase.java
/org.eclipse.birt.data.tests/test/testutil/JDBCDataSource.java
/org.eclipse.birt.data.tests/test/testutil/JDBCDataSourceUtil.java
/org.eclipse.birt.data.tests/test/testutil/messages.properties
/org.eclipse.birt.data.tests/test/testutil/TestDataSource.java


Back to the top