@@ -820,55 +820,55 @@ class XMLTestJVM {
820
820
}
821
821
822
822
@ UnitTest
823
- def xTokenTest {
823
+ def xTokenTest : Unit = {
824
824
val x = xml.parsing.ConstructingParser .fromSource(toSource(" a" ), false )
825
825
assertEquals((): Unit , x.xToken('b' ))
826
826
}
827
827
828
828
@ UnitTest (expected = classOf [FatalError ])
829
- def xCharDataFailure {
829
+ def xCharDataFailure : Unit = {
830
830
val x = xml.parsing.ConstructingParser .fromSource(toSource(" " ), false )
831
831
832
832
x.xCharData
833
833
}
834
834
835
835
@ UnitTest (expected = classOf [FatalError ])
836
- def xCommentFailure {
836
+ def xCommentFailure : Unit = {
837
837
val x = xml.parsing.ConstructingParser .fromSource(toSource(" " ), false )
838
838
839
839
x.xComment
840
840
}
841
841
842
842
@ UnitTest
843
- def xmlProcInstrTest {
843
+ def xmlProcInstrTest : Unit = {
844
844
val x = xml.parsing.ConstructingParser .fromSource(toSource(" aa" ), false )
845
845
846
846
assertEquals(new UnprefixedAttribute (" aa" , Text (" " ), Null ), x.xmlProcInstr)
847
847
}
848
848
849
849
@ UnitTest (expected = classOf [FatalError ])
850
- def notationDeclFailure {
850
+ def notationDeclFailure : Unit = {
851
851
val x = xml.parsing.ConstructingParser .fromSource(toSource(" " ), false )
852
852
853
853
x.notationDecl
854
854
}
855
855
856
856
@ UnitTest
857
- def pubidLiteralTest {
857
+ def pubidLiteralTest : Unit = {
858
858
val x = xml.parsing.ConstructingParser .fromSource(toSource(" " ), false )
859
859
860
860
assertEquals(" " , x.pubidLiteral)
861
861
}
862
862
863
863
@ UnitTest
864
- def xAttributeValueTest {
864
+ def xAttributeValueTest : Unit = {
865
865
val x = xml.parsing.ConstructingParser .fromSource(toSource(" '" ), false )
866
866
867
867
assertEquals(" " , x.xAttributeValue)
868
868
}
869
869
870
870
@ UnitTest
871
- def xEntityValueTest {
871
+ def xEntityValueTest : Unit = {
872
872
val x = xml.parsing.ConstructingParser .fromSource(toSource(" " ), false )
873
873
874
874
assertEquals(" " , x.xEntityValue)
0 commit comments