Skip to content

Commit

Permalink
增加单元测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
binarywang committed Aug 22, 2020
1 parent e596fb7 commit e5e14b6
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.github.binarywang.demo.wx.mp.controller;

import io.restassured.http.ContentType;
import me.chanjar.weixin.common.bean.menu.WxMenu;
import org.testng.annotations.Test;

import static io.restassured.RestAssured.given;

/**
* 菜单测试.
*
* @author <a href="https://github.com/binarywang">Binary Wang</a>
* @date 2020-08-19
*/
public class WxMenuControllerTest extends BaseControllerTest {

@Test
public void testMenuCreate() {
given()
.when()
.body(new WxMenu())
.contentType(ContentType.JSON)
.post("/wx/menu/wxappid/create")
.then()
.log().everything();
}
}

0 comments on commit e5e14b6

Please sign in to comment.