diff --git a/pom.xml b/pom.xml index f7624f0..016ff8b 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.snowcattle.game game-sharding-db - 1.0-SNAPSHOT + 1.1-SNAPSHOT diff --git a/src/test/java/com/snowcattle/game/db/service/test/aop/AOPTest.java b/src/test/java/com/snowcattle/game/db/service/test/aop/AOPTest.java index c6ae2f0..3d85dce 100644 --- a/src/test/java/com/snowcattle/game/db/service/test/aop/AOPTest.java +++ b/src/test/java/com/snowcattle/game/db/service/test/aop/AOPTest.java @@ -1,27 +1,22 @@ package com.snowcattle.game.db.service.test.aop; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.springframework.context.support.ClassPathXmlApplicationContext; - /** * Created by jwp on 2017/3/22. */ public class AOPTest { - static PersonService personService; - @BeforeClass - public static void setUpBeforeClass() throws Exception { - ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext(new String[]{"bean/*.xml"}); - personService = (PersonService) classPathXmlApplicationContext.getBean("personService"); - } - @Test - public void saveTest() { - personService.save(new Person()); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - } +// static PersonService personService; +// @BeforeClass +// public static void setUpBeforeClass() throws Exception { +// ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext(new String[]{"bean/*.xml"}); +// personService = (PersonService) classPathXmlApplicationContext.getBean("personServiceBean"); +// } +// @Test +// public void saveTest() { +// personService.save(new Person()); +// } +// +// @AfterClass +// public static void tearDownAfterClass() throws Exception { +// } } diff --git a/src/test/resources/bean/applicationContext-jetty.xml b/src/test/resources/bean/applicationContext-jetty.xml index 67551c1..9aca0e3 100644 --- a/src/test/resources/bean/applicationContext-jetty.xml +++ b/src/test/resources/bean/applicationContext-jetty.xml @@ -13,25 +13,25 @@ http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"> - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file