mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tests added
This commit is contained in:
@@ -495,6 +495,22 @@ public class XmlSerializerTest extends TestCase {
|
||||
"</BeanWithFieldWithTagAnnotation>", bean);
|
||||
}
|
||||
|
||||
public void testEscapeCharsInTagText() {
|
||||
BeanWithFieldWithTagAnnotation bean = new BeanWithFieldWithTagAnnotation();
|
||||
bean.STRING_V = "a\nb\"<";
|
||||
|
||||
doSerializerTest(
|
||||
"<BeanWithFieldWithTagAnnotation>\n" +
|
||||
" <name>a\nb"<</name>\n" +
|
||||
"</BeanWithFieldWithTagAnnotation>", bean);
|
||||
}
|
||||
|
||||
public void testEscapeCharsInAttributeValue() {
|
||||
final BeanWithPropertiesBoundToAttribute bean = new BeanWithPropertiesBoundToAttribute();
|
||||
bean.name = "a\nb\"<";
|
||||
doSerializerTest("<BeanWithPropertiesBoundToAttribute count=\"3\" name=\"a b"<\" />", bean);
|
||||
}
|
||||
|
||||
public void testShuffledDeserialize() {
|
||||
BeanWithPublicFields bean = new BeanWithPublicFields();
|
||||
bean.INT_V = 987;
|
||||
|
||||
Reference in New Issue
Block a user