??????飺?????????????????????????????? Spring ??????????????? Spring ????ó????????????????????????????? Spring ????????????г????? Junit4 ???? TestNG ????????????????? Spring ?? beanFactory ????????????????????

????????

????????????????????????????????????????????о?????????λ??????棬??????????д??????????????????????Ч???????????棬????????????????????е???????????????????????????????????????????????????????????????????????????????????????? Java ????????????????Spring ?????????????????????????????????????????????????Щ???ü???????????????????????????? Hibernate??Struts ?????ɡ???????и????????????? Spring ????ó????У??????????????????????????????????????Ч???? Spring ?????????????????????Σ?????????????????????顣

??????????????????????? Junit??TestNG??????Щ MOCK ???????? Jmock??Easymock??PowerMock ?????Щ???????????????????????????????? Spring ??????????У??????????Ч????????Spring ??????????????????????????????

?????? ?????????????? Junit ?? TestNG

?????? ?????????????????????? Denpendency Injection

?????? ?????????????????????

?????? ??????????????????????Ч??????????

?????? Spring 3.1 ??????????????????÷? XML ???÷???????? Profile ?? bean ??????

???????????????????????????????? Spring TestContext ??????????????????????????????????????????????????÷??????????Щ????????????????????????????????OK?????????????? Spring ???????e??

????????????????????

??????????????????? Junit ???????????????????????????? Spring ????ó????У??????? Spring ?????????????????в?????????????£?

??????????

?????????????????????????????????????????????????£?

?????? ID??????????????

?????? NAME???????????????

?????? SEX????????????

?????? AGE?????????????

???????????????????????????

????????????????????? jar ??

?????? Eclipse ?У?????????????????????????????????????????????????? jar ???б??

?????????????? jar ??????

?????? cglib-nodep-2.2.3.jar

?????? commons-logging.jar

?????? hsqldb.jar

?????? Junit-4.5.jar

?????? log4j-1.2.14.jar

?????? Spring-asm-3.2.0.M1.jar

?????? Spring-beans-3.2.0.M1.jar

?????? Spring-context-3.2.0.M1.jar

?????? Spring-core-3.2.0.M1.jar

?????? Spring-expression-3.2.0.M1.jar

?????? Spring-jdbc-3.2.0.M1.jar

?????? Spring-test-3.2.0.M1.jar

?????? Spring-tx-3.2.0.M1.jar

?????? testng-6.8.jar

???????е? hsqldb ????????????????

????? 1. ????????