Announcement Announcement Module
Collapse
No announcement yet.
DAO Test cases (Please reply urgently) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DAO Test cases (Please reply urgently)

    Hi,

    I have a set of DAO test cases to test.I have a framework test case class which extends AbstractTransactionalDataSourceSpringContextTests and has getter and setter methods for all my DAO's. Now when i run my test cases as a suite the context intialisation happens multiple times....I see the same hibernate queries fired multiple times at the start of each of my test case.I need to avoid this, can anyone suggest a solution

    Code:
    public class FrameWorkTestCase extends AbstractTransactionalDataSourceSpringContextTests{
    
    	public FrameWorkTestCase(){
    		super();
    	}
    	public void setUpComplete(){
    		super.setComplete();
    	}
    	private Test1DAO test1DAO;
    	private Test2DAO test2DAO;
    
                public test1DAO gettest1DAO() {
    		return test1DAO;
    	}
    	public void settest1DAO(Test1DAO test1DAO) {
    		this.test1DAO = test1DAO;
    	}
    	
    
    }

  • #2
    DAO Test cases (Please reply urgently)

    Any suggestions please reply

    Comment

    Working...
    X