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() + "\"" : "") + " }";
	}
}

@@ -140,16 +140,41 @@
 aType;%0A%0A
+import org.junit.Ignore;%0A
 import o
@@ -356,16 +356,24 @@
 ource;%0A%0A
+@Ignore%0A
 @Produce

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