...
|
...
|
@@ -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 |
...
|
...
|
|