Skip to content

Commit f1d8869

Browse files
committed
Give specific exception in unit test
* src/test/scala/scala/xml/pull/XMLEventReaderTest.scala (missingTagTest): Expect scala.xml.parsing.FatalError.
1 parent b77b06f commit f1d8869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/scala/scala/xml/pull/XMLEventReaderTest.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class XMLEventReaderTest {
4040
er.stop // allow thread to be garbage-collected
4141
}
4242

43-
@Test(expected = classOf[Exception])
43+
@Test(expected = classOf[scala.xml.parsing.FatalError])
4444
def missingTagTest: Unit = {
4545
val data=
4646
"""<?xml version="1.0" ?>

0 commit comments

Comments
 (0)