title: Hello World ScalaTest Failing: not found: type MyScalatraServlet
body: <p>I'm trying to get Hello World to get a green test in my hello world scalatra application. The code for the servlet is:</p>
  
  <pre><code>package com.graphular.app
  
  import org.scalatra._
  import scalate.ScalateSupport
  
  class MyScalatraServlet extends GraphularStack {
    get("/") {
      &lt;html&gt;
        &lt;body&gt;
          &lt;h1&gt;Hello, world!&lt;/h1&gt;
          Say &lt;a href="hello-scalate"&gt;hello to Scalate&lt;/a&gt;.
        &lt;/body&gt;
      &lt;/html&gt;
    }
  }
  </code></pre>
  
  <p>It appears to work in the browser and I'm quite happy with that. I wrote the test for it and is as so:</p>
  
  <pre><code>import org.scalatra.test.scalatest._
  import org.scalatest.FunSuite
  
  class MyScalatraServletTests extends ScalatraSuite with FunSuite {
    addServlet(classOf[MyScalatraServlet], "/*")
    test("simple get") {
      get("/") {
        status should equal(200)
        body should include("hi!")
      }
    }
  }
  </code></pre>
  
  <p>My <code>libraryDependencies</code> are:</p>
  
  <pre><code>"org.scalatra" %% "scalatra" % ScalatraVersion,
  "org.scalatra" %% "scalatra-scalate" % ScalatraVersion,
  "org.scalatra" %% "scalatra-scalatest" % ScalatraVersion % "test",
  "ch.qos.logback" % "logback-classic" % "1.0.6" % "runtime",
  "org.eclipse.jetty" % "jetty-webapp" % "8.1.8.v20121106" % "container",
  "org.eclipse.jetty.orbit" % "javax.servlet" % "3.0.0.v201112011016" % "container;provided;test" artifacts (Artifact("javax.servlet", "jar", "jar"))
  </code></pre>
  
  <p>I thought this was going to work, but instead I keep receiving:</p>
  
  <pre><code>[error] /Users/benmorgan/Sites/scala/graphular/src/test/scala/com/graphular/app/MyScalatraServletSpec.scala:7: not found: type MyScalatraServlet
  [error]   addServlet(classOf[MyScalatraServlet], "/*")
  </code></pre>
  
  <p>I cannot figure this out for the love of me...</p>