mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
test: Add test for HttpProcessor
This commit is contained in:
parent
d07ed2b013
commit
0f1d760dbe
@ -12,6 +12,14 @@ import tech.powerjob.official.processors.TestUtils;
|
||||
*/
|
||||
class HttpProcessorTest {
|
||||
|
||||
@Test
|
||||
void testDefaultMethod() throws Exception {
|
||||
String url = "https://www.baidu.com";
|
||||
JSONObject params = new JSONObject();
|
||||
params.put("url", url);
|
||||
System.out.println(new HttpProcessor().process(TestUtils.genTaskContext(params.toJSONString())));
|
||||
}
|
||||
|
||||
@Test
|
||||
void testGet() throws Exception {
|
||||
String url = "https://www.baidu.com";
|
||||
|
Loading…
x
Reference in New Issue
Block a user