forked from RihanKh/OSAandSAST
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJerseyTest.java
More file actions
27 lines (23 loc) · 778 Bytes
/
JerseyTest.java
File metadata and controls
27 lines (23 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.cx.automation.adk;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import static junit.framework.TestCase.assertEquals;
/**
* Created by arnona on 1/6/2019.
*/
//@Ignore
public class JerseyTest {
@Test
public void Test() {
// Client client = ClientBuilder.newClient();
// WebTarget target = client.target("http://ARNONA-LAPTOP/Test");
// assertEquals(200, target.request().post(Entity.entity("Hello", MediaType.APPLICATION_JSON_TYPE)).getStatus());
Assert.assertTrue("asdsd1",1>0);
}
}