xmpp_test.go
changeset 24 fff79efe06f6
parent 22 d6b7b4cbf50d
child 31 1dc47df5c99f
--- a/xmpp_test.go	Wed Dec 28 13:24:08 2011 -0700
+++ b/xmpp_test.go	Wed Dec 28 13:28:45 2011 -0700
@@ -78,15 +78,15 @@
 }
 
 func TestWriteError(t *testing.T) {
-	se := &StreamError{Any: definedCondition{XMLName:
-			xml.Name{Local: "blah"}}}
+	se := &StreamError{Any: Generic{XMLName: xml.Name{Local:
+				"blah"}}}
 	str := testWrite(se)
 	exp := `<stream:error><blah></blah></stream:error>`
 	assertEquals(t, exp, str)
 
-	se = &StreamError{Any: definedCondition{XMLName:
-			xml.Name{Space: nsStreams, Local: "foo"}},
-		Text: &errText{Lang: "ru", Text: "Пошёл ты"}}
+	se = &StreamError{Any: Generic{XMLName: xml.Name{Space:
+				nsStreams, Local: "foo"}}, Text:
+		&errText{Lang: "ru", Text: "Пошёл ты"}}
 	str = testWrite(se)
 	exp = `<stream:error><foo xmlns="` + nsStreams +
 		`"></foo><text xmlns="` + nsStreams +