This commit is contained in:
tanghc
2021-03-25 14:28:21 +08:00
parent 9058022933
commit 8aeb6c16bf
23 changed files with 79 additions and 23 deletions

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>com.gitee.sop</groupId>
<artifactId>sop-parent</artifactId>
<version>4.3.1-SNAPSHOT</version>
<version>4.3.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <!-- lookup parent from repository -->
</parent>

View File

@@ -371,6 +371,24 @@ public class AllInOneTest extends TestBase {
client.execute(requestBuilder);
}
/**
* 没有参数获取token
*/
public void testNoParamToken() {
String token = "asdfasdfadsf";
Client.RequestBuilder requestBuilder = new Client.RequestBuilder()
.method("story.system.param.get2")
.version("1.0")
.appAuthToken(token)
.httpMethod(HttpTool.HTTPMethod.GET)
.callback((requestInfo, responseData) -> {
System.out.println(responseData);
Assert.assertTrue(responseData.contains(token));
});
client.execute(requestBuilder);
}
static class BizContent extends HashMap<String, Object> {
public BizContent add(String key, Object value) {
this.put(key, value);