diff options
Diffstat (limited to 'bundle-plugin/src/test/scala/com/yahoo/container/plugin/util/IOTest.scala')
-rw-r--r-- | bundle-plugin/src/test/scala/com/yahoo/container/plugin/util/IOTest.scala | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bundle-plugin/src/test/scala/com/yahoo/container/plugin/util/IOTest.scala b/bundle-plugin/src/test/scala/com/yahoo/container/plugin/util/IOTest.scala index 7efb0392f5e..d96273d81e1 100644 --- a/bundle-plugin/src/test/scala/com/yahoo/container/plugin/util/IOTest.scala +++ b/bundle-plugin/src/test/scala/com/yahoo/container/plugin/util/IOTest.scala @@ -1,23 +1,22 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.container.plugin.util -import org.scalatest.junit.{AssertionsForJUnit, JUnitSuite} +import org.scalatest.junit.{JUnitSuite, ShouldMatchersForJUnit} import org.junit.Test + import IO.using import java.io.Closeable -import org.scalatest.Matchers - /** * @author tonytv */ -class IOTest extends JUnitSuite with AssertionsForJUnit with Matchers { +class IOTest extends JUnitSuite with ShouldMatchersForJUnit { class ClosingException extends RuntimeException class FunctionException extends RuntimeException object throwWhenClosingResource extends Closeable { def close() { - throw new ClosingException() + throw new ClosingException(); } } |