I want to write test cases to test some part of code in site module. I see testng library is added by default in DemoSite pom.xml and thus trying to use the same to write test case. Also I want to use spring context so that I can use actual beans that are created in dev or prod environment.
I followed tutorial at http://www.mkyong.com/unittest/testng-s ... n-example/ but everytime I end up with exceptions saying some or the other bean not found. I added all the spring xml files that are inside WEB-INF to @ContextConfiguration but still no help.
Does anybody have a sample test case using spring context
@TeamBLC you guys must be using test cases to test your changes before pushing it in new release. Can you post a sample test case which spring context?
This forum is in readonly mode and serves as an archive of old information. All posting, registration and commenting abilities have been turned off. To get help, the Broadleaf team reguarly monitors the broadleaf-commerce tag on Stack Overflow so please ask your questions there.