| 1 | {{{ |
---|
| 2 | package com.five; |
---|
| 3 | |
---|
| 4 | import static org.junit.Assert.*; |
---|
| 5 | |
---|
| 6 | import org.junit.Test; |
---|
| 7 | import org.junit.runner.RunWith; |
---|
| 8 | import org.unitils.UnitilsJUnit4TestClassRunner; |
---|
| 9 | import org.unitils.dbunit.annotation.DataSet; |
---|
| 10 | import org.unitils.dbunit.annotation.ExpectedDataSet; |
---|
| 11 | import org.unitils.dbunit.datasetfactory.XlsDataSetFactory; |
---|
| 12 | import org.unitils.dbunit.datasetloadstrategy.impl.RefreshLoadStrategy; |
---|
| 13 | import org.unitils.spring.annotation.SpringApplicationContext; |
---|
| 14 | |
---|
| 15 | //@DataSet ("file:C:/eGovFrameDev-2.6.0-FullVer/workspace/eGov_WebProject/src/test/resources/com/five/seller.xls") |
---|
| 16 | |
---|
| 17 | @SpringApplicationContext("classpath:/egovframework/spring/context-*.xml") |
---|
| 18 | @RunWith(UnitilsJUnit4TestClassRunner.class) |
---|
| 19 | public class CodeDAOTest { |
---|
| 20 | |
---|
| 21 | /* |
---|
| 22 | * @DataSet : CodeDAOTest.xls |
---|
| 23 | * @ExpectedDataSet : CodeDAOTest.test22-result.xls |
---|
| 24 | */ |
---|
| 25 | @Test |
---|
| 26 | @DataSet(factory=XlsDataSetFactory.class) //com/five/CodeDAOTest.xls |
---|
| 27 | @ExpectedDataSet( factory=XlsDataSetFactory.class) //com/five/CodeDAOTest.test-result.xls |
---|
| 28 | public void test22() { |
---|
| 29 | //fail("Not yet implemented"); |
---|
| 30 | } |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | }}} |