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
@ -11,6 +11,14 @@ import tech.powerjob.official.processors.TestUtils;
|
|||||||
* @since 2021/1/31
|
* @since 2021/1/31
|
||||||
*/
|
*/
|
||||||
class HttpProcessorTest {
|
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
|
@Test
|
||||||
void testGet() throws Exception {
|
void testGet() throws Exception {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user