structs_test.go
changeset 24 fff79efe06f6
parent 22 d6b7b4cbf50d
child 25 7437d6eed227
--- a/structs_test.go	Wed Dec 28 13:24:08 2011 -0700
+++ b/structs_test.go	Wed Dec 28 13:28:45 2011 -0700
@@ -69,13 +69,13 @@
 
 func TestStreamErrorMarshal(t *testing.T) {
 	name := xml.Name{Space: nsStreams, Local: "ack"}
-	e := &StreamError{Any: definedCondition{XMLName: name}}
+	e := &StreamError{Any: Generic{XMLName: name}}
 	exp := `<stream:error><ack xmlns="` + nsStreams +
 		`"></ack></stream:error>`;
 	assertMarshal(t, exp, e)
 
 	txt := errText{Lang: "pt", Text: "things happen"}
-	e = &StreamError{Any: definedCondition{XMLName: name}, Text: &txt}
+	e = &StreamError{Any: Generic{XMLName: name}, Text: &txt}
 	exp = `<stream:error><ack xmlns="` + nsStreams +
 		`"></ack><text xmlns="` + nsStreams +
 		`" xml:lang="pt">things happen</text></stream:error>`