// Path: src/test/java/cn/niriqiang/BlogApplicationTests.java
// @RunWith(SpringRunner.class)
// @SpringBootTest
// public class BlogApplicationTests {
// 
//     @Test
//     public void contextLoads() {
//     }
// 
// }
// 
// Path: src/main/java/cn/niriqiang/blog/domain/Tag.java
// @ApiModel
// @Data
// public class Tag {
//     @ApiModelProperty(value = "ID")
//     private Integer id;
//     @ApiModelProperty(value = "标签名")
//     @NotNull(message = "标签名字不能为空!")
//     private String tagName;
// }


import cn.niriqiang.BlogApplicationTests;
import cn.niriqiang.blog.domain.Tag;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
package cn.niriqiang.blog.service;


/**
 * Created by fengyuwusong on 2017/9/26 1:03.
 */
//@Transactional
public class TagServiceTest extends BlogApplicationTests {
    @Autowired
    private TagService tagService;

    @Test
    public void insertTag() throws Exception {
        Tag tag = new Tag();
        tag.setTagName("4444");
        System.out.println(tagService.insertTag(tag).toString());
    }

    @Test
    public void updateTag() throws Exception {
// Path: src/test/java/cn/niriqiang/BlogApplicationTests.java
// @RunWith(SpringRunner.class)
// @SpringBootTest
// public class BlogApplicationTests {
// 
//     @Test
//     public void contextLoads() {
//     }
// 
// }
// 
// Path: src/main/java/cn/niriqiang/blog/domain/Tag.java
// @ApiModel
// @Data
// public class Tag {
//     @ApiModelProperty(value = "ID")
//     private Integer id;
//     @ApiModelProperty(value = "标签名")
//     @NotNull(message = "标签名字不能为空!")
//     private String tagName;
// }


// Path: src/test/java/cn/niriqiang/blog/service/TagServiceTest.java
import cn.niriqiang.BlogApplicationTests;
import cn.niriqiang.blog.domain.Tag;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

package cn.niriqiang.blog.service;


/**
 * Created by fengyuwusong on 2017/9/26 1:03.
 */
//@Transactional
public class TagServiceTest extends BlogApplicationTests {
    @Autowired
    private TagService tagService;

    @Test
    public void insertTag() throws Exception {
        Tag tag = new Tag();
        tag.setTagName("4444");
        System.out.println(tagService.insertTag(tag).toString());
    }

    @Test
    public void updateTag() throws Exception {
        Tag tag = new Tag();