Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
15d01681
Commit
15d01681
authored
May 23, 2017
by
fsn
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/springboot' into springboot
parents
ae1fdbcb
4659c86c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
src/test/java/com/stylefeng/guns/base/BaseJunit.java
+2
-2
src/test/java/com/stylefeng/guns/system/BlackBoardTest.java
+2
-2
src/test/java/com/stylefeng/guns/system/DeptTest.java
+2
-2
src/test/java/com/stylefeng/guns/system/DictTest.java
+2
-2
No files found.
src/test/java/com/stylefeng/guns/base/Base
Tes
t.java
→
src/test/java/com/stylefeng/guns/base/Base
Juni
t.java
View file @
15d01681
...
@@ -22,8 +22,8 @@ import org.springframework.web.context.WebApplicationContext;
...
@@ -22,8 +22,8 @@ import org.springframework.web.context.WebApplicationContext;
@RunWith
(
SpringRunner
.
class
)
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
classes
=
GunsApplication
.
class
)
@SpringBootTest
(
classes
=
GunsApplication
.
class
)
@WebAppConfiguration
@WebAppConfiguration
@Transactional
@Transactional
//测试之后数据可回滚
public
class
Base
Tes
t
{
public
class
Base
Juni
t
{
@Autowired
@Autowired
WebApplicationContext
webApplicationContext
;
WebApplicationContext
webApplicationContext
;
...
...
src/test/java/com/stylefeng/guns/system/BlackBoardTest.java
View file @
15d01681
package
com
.
stylefeng
.
guns
.
system
;
package
com
.
stylefeng
.
guns
.
system
;
import
com.stylefeng.guns.base.Base
Tes
t
;
import
com.stylefeng.guns.base.Base
Juni
t
;
import
com.stylefeng.guns.modular.system.dao.NoticeDao
;
import
com.stylefeng.guns.modular.system.dao.NoticeDao
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -16,7 +16,7 @@ import static org.junit.Assert.assertTrue;
...
@@ -16,7 +16,7 @@ import static org.junit.Assert.assertTrue;
* @author fengshuonan
* @author fengshuonan
* @date 2017-05-21 15:02
* @date 2017-05-21 15:02
*/
*/
public
class
BlackBoardTest
extends
Base
Tes
t
{
public
class
BlackBoardTest
extends
Base
Juni
t
{
@Autowired
@Autowired
NoticeDao
noticeDao
;
NoticeDao
noticeDao
;
...
...
src/test/java/com/stylefeng/guns/system/DeptTest.java
View file @
15d01681
package
com
.
stylefeng
.
guns
.
system
;
package
com
.
stylefeng
.
guns
.
system
;
import
com.stylefeng.guns.base.Base
Tes
t
;
import
com.stylefeng.guns.base.Base
Juni
t
;
import
com.stylefeng.guns.common.persistence.dao.DeptMapper
;
import
com.stylefeng.guns.common.persistence.dao.DeptMapper
;
import
com.stylefeng.guns.common.persistence.model.Dept
;
import
com.stylefeng.guns.common.persistence.model.Dept
;
import
com.stylefeng.guns.modular.system.dao.DeptDao
;
import
com.stylefeng.guns.modular.system.dao.DeptDao
;
...
@@ -19,7 +19,7 @@ import static org.junit.Assert.assertTrue;
...
@@ -19,7 +19,7 @@ import static org.junit.Assert.assertTrue;
* @author fengshuonan
* @author fengshuonan
* @date 2017-04-27 17:05
* @date 2017-04-27 17:05
*/
*/
public
class
DeptTest
extends
Base
Tes
t
{
public
class
DeptTest
extends
Base
Juni
t
{
@Resource
@Resource
DeptDao
deptDao
;
DeptDao
deptDao
;
...
...
src/test/java/com/stylefeng/guns/system/DictTest.java
View file @
15d01681
package
com
.
stylefeng
.
guns
.
system
;
package
com
.
stylefeng
.
guns
.
system
;
import
com.stylefeng.guns.base.Base
Tes
t
;
import
com.stylefeng.guns.base.Base
Juni
t
;
import
com.stylefeng.guns.modular.system.dao.DictDao
;
import
com.stylefeng.guns.modular.system.dao.DictDao
;
import
com.stylefeng.guns.modular.system.service.IDictService
;
import
com.stylefeng.guns.modular.system.service.IDictService
;
import
org.junit.Assert
;
import
org.junit.Assert
;
...
@@ -16,7 +16,7 @@ import java.util.Map;
...
@@ -16,7 +16,7 @@ import java.util.Map;
* @author fengshuonan
* @author fengshuonan
* @date 2017-04-27 17:05
* @date 2017-04-27 17:05
*/
*/
public
class
DictTest
extends
Base
Tes
t
{
public
class
DictTest
extends
Base
Juni
t
{
@Resource
@Resource
IDictService
dictService
;
IDictService
dictService
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment