Skip to content

Commit 61c5c63

Browse files
committed
Port JavaCompatibilityTest to Scalatest
1 parent 70a2496 commit 61c5c63

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed
Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
package org.geoscript.geocss
22

3-
import org.specs2._
3+
import org.scalatest.FunSuite, org.scalatest.matchers.ShouldMatchers
44
import org.geoscript.geocss.compat.CSS2SLD
55

6-
class JavaCompatibilityTest extends Specification {
7-
def is =
8-
"Java compatibility layer can convert CSS to Style" ! {
9-
val stream = getClass.getResourceAsStream("/minimal.css")
10-
val reader = new java.io.InputStreamReader(stream)
11-
val style = CSS2SLD.convert(reader)
12-
style must not(beNull)
13-
}
6+
class JavaCompatibilityTest extends FunSuite with ShouldMatchers {
7+
test("Java compatibility layer can convert CSS to Style") {
8+
val stream = getClass.getResourceAsStream("/minimal.css")
9+
val reader = new java.io.InputStreamReader(stream)
10+
val style = CSS2SLD.convert(reader)
11+
style should not be (null)
12+
}
1413
}
15-
16-

0 commit comments

Comments
 (0)