package org.usergrid.rest.applications.users.extensions;

import javax.ws.rs.GET;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.usergrid.rest.applications.users.AbstractUserExtensionResource;
import org.usergrid.rest.applications.users.UserResource;

@Produces(MediaType.APPLICATION_JSON)
public class TestResource extends AbstractUserExtensionResource {

	private static Logger log = LoggerFactory.getLogger(TestResource.class);

	public TestResource(UserResource userResource) throws Exception {
		super(userResource);
		log.info("TestResource");
	}

	@GET
	public String sayHello() {
		return "{\"message\" : \"hello\""
				+ (getUserResource().getUserUuid() != null ? ", \"user\" : \""
						+ getUserResource().getUserUuid() + "\"" : "") + " }";
	}
}

package org.usergrid.rest.applications.users.extensions;

import javax.ws.rs.GET;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.junit.Ignore;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.usergrid.rest.applications.users.AbstractUserExtensionResource;
import org.usergrid.rest.applications.users.UserResource;

@Ignore
@Produces(MediaType.APPLICATION_JSON)
public class TestResource extends AbstractUserExtensionResource {

	private static Logger log = LoggerFactory.getLogger(TestResource.class);

	public TestResource(UserResource userResource) throws Exception {
		super(userResource);
		log.info("TestResource");
	}

	@GET
	public String sayHello() {
		return "{\"message\" : \"hello\""
				+ (getUserResource().getUserUuid() != null ? ", \"user\" : \""
						+ getUserResource().getUserUuid() + "\"" : "") + " }";
	}
}

add ignore annotation to TestResource so JUnit does assume it's a runnable test