blob: 90ff26d7f6b9027d538dbd733cf0ccbbd7d6ed4a [file] [log] [blame]
package de.ids_mannheim.korap.misc;
import org.junit.Ignore;
import org.junit.Test;
import com.sun.jersey.api.client.ClientResponse;
import de.ids_mannheim.korap.config.BeansFactory;
import de.ids_mannheim.korap.exceptions.KustvaktException;
import de.ids_mannheim.korap.web.service.FastJerseyTest;
/**
* EM: DemoUser is not saved in the new DB
*
* @author hanl
* @date 04/02/2016
*/
@Deprecated
@Ignore
public class DemoUserTest extends FastJerseyTest {
@Override
public void initMethod () throws KustvaktException {
helper().setupAccount();
BeansFactory.setKustvaktContext(helper().getContext());
}
@Test
public void testDemoCollectionGet () {
// ClientResponse response = resource().path(getVersion())
// .path("collection").path("i");
}
@Test
public void testDemoUserInfoGet () {
}
@Test
public void testDemoUserDetailsGet () {
}
@Test
public void testDemoUserSettingsGet () {
}
@Test
public void testSearch () {
ClientResponse response = resource().path(getAPIVersion())
.path("search").queryParam("q", "[base=Wort]")
.queryParam("ql", "poliqarp").get(ClientResponse.class);
System.out.println("_____________________________");
System.out.println(response);
System.out.println("entity " + response.getEntity(String.class));
}
}