not found: value assertThrows
<p>I have the following test class:</p>

<pre><code>import org.scalatest.FunSuite

@RunWith(classOf[JUnitRunner])
class NodeScalaSuite extends FunSuite {
</code></pre>

<p>With this test method:</p>

<pre><code>  test("Now doesn't terminate future that's not done") {
    val testFuture: Future[Int] = Future{
      wait(1000)
      10
    }
    assertThrows[NoSuchElementException]{
      testFuture.now
    }
  }
</code></pre>

<p>I am getting this error:</p>

<pre><code>not found: value assertThrows
</code></pre>

<p>I looked over the ScalaTest documentation from here <a href="http://doc.scalatest.org/3.0.0/#org.scalatest.FunSuite" rel="noreferrer">http://doc.scalatest.org/3.0.0/#org.scalatest.FunSuite</a> and the code that's similar to mine seems to work fine.</p>

<p>What's the issue?</p>