package com.bcxin.ars.dao;

import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.transaction.annotation.Transactional;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:/ars-dao.xml" })
@Transactional
@TransactionConfiguration(transactionManager = "txManager", defaultRollback = true)
public class ProblemPersonDaoTest {

	@Autowired
	private ProblemPersonDao problemPersonDao;
	
	@Test
	public void testGetUnDisposeQty() {
		Long qty = problemPersonDao.getUnDisposeQty(712784890971871L);
		System.out.println(qty);
		Assert.assertNotNull(qty);
	}
	

}
