package ge.edu.freeuni.sdp.xo.game;

import static org.junit.Assert.assertEquals;

import javax.ws.rs.core.Application;
import javax.ws.rs.core.Response;

import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.junit.Test;

/**
 * @author Giorgi
 *
 */
public class PingServiceTest extends JerseyTest {

	@Override
	protected Application configure() {
		return new ResourceConfig(PingService.class);
	}

	@Test
	public void testGet() {
		Response actual = target("ping").request().get();
		assertEquals(Response.Status.OK.getStatusCode(), actual.getStatus());
	}

}

package ge.edu.freeuni.sdp.xo.game;

import static org.junit.Assert.assertEquals;

import javax.ws.rs.core.Application;
import javax.ws.rs.core.Response;

import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.junit.Test;

/**
 * @author Giorgi
 *
 */
public class PingServiceTest extends JerseyTest {

	@Override
	protected Application configure() {
		return new ResourceConfig(PingService.class);
	}

	@Test
	public void testGet() {
		Response actual = target("webapi/ping").request().get();
		assertEquals(Response.Status.OK.getStatusCode(), actual.getStatus());
	}

}

fix bug, recover ping path