@@ -42,7 +42,7 @@ public void setUp() throws Exception {
42
42
43
43
@ Test
44
44
public void testAttributeWithBooleanValue () throws Exception {
45
- final String expected = "<?xml version= \" 1.0 \" encoding= \" UTF-8 \" ?> \n < !DOCTYPE html>\n <input checked>" ;
45
+ final String expected = "<!DOCTYPE html>\n <input checked>" ;
46
46
final QName elQName = new QName ("input" );
47
47
writer .startElement (elQName );
48
48
writer .attribute ("checked" , "checked" );
@@ -54,7 +54,7 @@ public void testAttributeWithBooleanValue() throws Exception {
54
54
55
55
@ Test
56
56
public void testAttributeWithNonBooleanValue () throws Exception {
57
- final String expected = "<?xml version= \" 1.0 \" encoding= \" UTF-8 \" ?> \n < !DOCTYPE html>\n <input name=\" name\" >" ;
57
+ final String expected = "<!DOCTYPE html>\n <input name=\" name\" >" ;
58
58
final QName elQName = new QName ("input" );
59
59
writer .startElement (elQName );
60
60
writer .attribute ("name" , "name" );
@@ -66,7 +66,7 @@ public void testAttributeWithNonBooleanValue() throws Exception {
66
66
67
67
@ Test
68
68
public void testAttributeQNameWithBooleanValue () throws Exception {
69
- final String expected = "<?xml version= \" 1.0 \" encoding= \" UTF-8 \" ?> \n < !DOCTYPE html>\n <input checked>" ;
69
+ final String expected = "<!DOCTYPE html>\n <input checked>" ;
70
70
final QName elQName = new QName ("input" );
71
71
final QName attrQName = new QName ("checked" );
72
72
writer .startElement (elQName );
@@ -79,7 +79,7 @@ public void testAttributeQNameWithBooleanValue() throws Exception {
79
79
80
80
@ Test
81
81
public void testAttributeQNameWithNonBooleanValue () throws Exception {
82
- final String expected = "<?xml version= \" 1.0 \" encoding= \" UTF-8 \" ?> \n < !DOCTYPE html>\n <input name=\" name\" >" ;
82
+ final String expected = "<!DOCTYPE html>\n <input name=\" name\" >" ;
83
83
final QName elQName = new QName ("input" );
84
84
final QName attrQName = new QName ("name" );
85
85
writer .startElement (elQName );
0 commit comments