blob: 1387eadef40709b22ea12fcb9312b94bdd49c9c2 [file] [log] [blame]
Michael Hanle56bb892016-05-25 17:34:41 +02001import com.sun.jersey.api.client.ClientResponse;
2import de.ids_mannheim.korap.config.BeansFactory;
3import de.ids_mannheim.korap.exceptions.KustvaktException;
4import de.ids_mannheim.korap.web.service.FastJerseyTest;
5import org.junit.BeforeClass;
6import org.junit.Test;
7
8/**
9 * @author hanl
10 * @date 04/02/2016
11 */
12public class DemoUserTest extends FastJerseyTest {
13
14 @Override
15 public void initMethod () throws KustvaktException {
16 helper().setupAccount();
17 BeansFactory.setKustvaktContext(helper().getContext());
18 }
19
20
21 @BeforeClass
22 public static void setup () throws Exception {
23 FastJerseyTest.setPackages("de.ids_mannheim.korap.web.service.full",
24 "de.ids_mannheim.korap.web.filter",
25 "de.ids_mannheim.korap.web.utils");
26 }
27
28
29 @Test
30 public void testDemoCollectionGet () {
31 // ClientResponse response = resource().path(getVersion())
32 // .path("collection").path("i");
33 }
34
35
36 @Test
37 public void testDemoUserInfoGet () {
38
39 }
40
41
42 @Test
43 public void testDemoUserDetailsGet () {
44
45 }
46
47
48 @Test
49 public void testDemoUserSettingsGet () {
50
51 }
52
53
54 @Test
55 public void testSearch () {
56 ClientResponse response = resource().path(getAPIVersion())
57 .path("search").queryParam("q", "[base=Wort]")
58 .queryParam("ql", "poliqarp").get(ClientResponse.class);
59
60 System.out.println("_____________________________");
61 System.out.println(response);
62 System.out.println("entity " + response.getEntity(String.class));
63 }
64
65}