File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
java-scala/src/test/scala/com/snowplowanalytics/refererparser/scala Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class JsonParseTest extends Specification {
33
33
// Convert the JSON to a List of JObjects
34
34
val testJson = (parse(testString)) match {
35
35
case JArray (lst) => lst
36
+ case _ => throw new Exception (" referer-tests.json is not an array - this should never happen" )
36
37
}
37
38
38
39
val pageHost = " www.snowplowanalytics.com"
@@ -42,6 +43,7 @@ class JsonParseTest extends Specification {
42
43
def getString (node : JValue , name : String ): String =
43
44
(node \ name) match {
44
45
case JString (s) => s
46
+ case _ => throw new Exception (" The value of field '%s' in referer-tests.json is not a string - this should never happen" .format(name))
45
47
}
46
48
47
49
" parse" should {
You can’t perform that action at this time.
0 commit comments