summaryrefslogtreecommitdiffstats
path: root/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/TestResourceBase.scala
diff options
context:
space:
mode:
Diffstat (limited to 'container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/TestResourceBase.scala')
-rw-r--r--container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/TestResourceBase.scala26
1 files changed, 0 insertions, 26 deletions
diff --git a/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/TestResourceBase.scala b/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/TestResourceBase.scala
deleted file mode 100644
index 5ccd89b30ac..00000000000
--- a/container-test-jars/jersey-resources/src/main/scala/com/yahoo/container/test/jars/jersey/resources/TestResourceBase.scala
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.container.test.jars.jersey.resources
-
-import javax.ws.rs.core.MediaType
-import javax.ws.rs.{Produces, GET}
-
-import scala.reflect.ClassTag
-
-/**
- * @author tonytv
- */
-class TestResourceBase {
- @GET
- @Produces(Array(MediaType.TEXT_PLAIN))
- def get() = TestResourceBase.content(getClass)
-}
-
-object TestResourceBase {
- def content(clazz: Class[_ <: TestResourceBase]): String =
- "Response from " + clazz.getName
-
- def content[T <: TestResourceBase](implicit classTag: ClassTag[T]): String = {
- val clazz = classTag.runtimeClass.asInstanceOf[Class[_ <: TestResourceBase]]
- content(clazz)
- }
-}