-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jiangwenping
committed
Apr 13, 2017
1 parent
d5d25b2
commit 5c3a088
Showing
3 changed files
with
36 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 14 additions & 19 deletions
33
src/test/java/com/snowcattle/game/db/service/test/aop/AOPTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 { | ||
// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters