Authored by zhaoyue

No change

git add --all src/*
git add push.sh
git add pom.xml
git commit -m "Upsoft pass testingfix little bug"
git push origin zhaoyue-dev
git status
\ No newline at end of file
git commit -m "No change"
git push origin master
git status
... ...
... ... @@ -12,7 +12,6 @@ import java.util.Map;
public class OpenIdTest {
public static final String URL_OPEN_ID = Constants.URL_PREFIX + "/openId";
public static final String URL_LOGIN = Constants.URL_PREFIX + "/openId/login";
public static final String URL_COMPARE = Constants.URL_PREFIX + "/report/compare";
/**
* OpenId绑定接口
... ...
... ... @@ -18,11 +18,13 @@ public class ReportTest {
private static final String URL_REPORT_SCORE = Constants.URL_PREFIX + "/report/score";
private static final String URL_ITEM_INFO = Constants.URL_PREFIX + "/report/itemInfo";
private static final String URL_ITEM_GRAPH = Constants.URL_PREFIX + "/report/itemGraph";
private static final String URL_COMPARE = Constants.URL_PREFIX + "/report/compare";
private static String token;
@BeforeClass
public static void init(){
token = loginAndGetToken("user1","pass1");
// String token =OpenIdTest.bindWithOpenIdAndLoginAndGetToken("abcdefghijklmnopqrstuvwxyz123456","0");
}
/**
... ... @@ -119,13 +121,12 @@ public class ReportTest {
*/
@Test
public void testCompare(){
String token =OpenIdTest.bindWithOpenIdAndLoginAndGetToken("abcdefghijklmnopqrstuvwxyz123456","0");
Map<String,String> params = new HashMap<String, String>();
params.put("report_id","77");
params.put("t",HttpTools.getNow());
params.put("type","1");
params.put("sign",HttpTools.getSign(params));
String response = HttpTools.requestByMapWithToken(OpenIdTest.URL_COMPARE,"POST",params,token);
String response = HttpTools.requestByMapWithToken(URL_COMPARE,"POST",params,token);
System.out.println(response);
}
}
\ No newline at end of file
... ...