// Do not include certain default namespace on the root-element ('stream') or stanza level. This makes stanzas re-usable between, for example, c2s and s2s.
// Do not include certain default namespace on the root-element ('stream') or stanza level. This makes stanzas re-usable between, for example, c2s and s2s.
@@ -141,4 +141,24 @@ public class XMPPPacketReaderTest
...
@@ -141,4 +141,24 @@ public class XMPPPacketReaderTest
Assert.assertFalse("'jabber:client' should not occur before 'something:else'",result.asXML().substring(0,result.asXML().indexOf("something:else")).contains("jabber:client"));
Assert.assertFalse("'jabber:client' should not occur before 'something:else'",result.asXML().substring(0,result.asXML().indexOf("something:else")).contains("jabber:client"));
Assert.assertTrue("'jabber:client' should occur after 'something:else'",result.asXML().substring(result.asXML().indexOf("something:else")).contains("jabber:client"));
Assert.assertTrue("'jabber:client' should occur after 'something:else'",result.asXML().substring(result.asXML().indexOf("something:else")).contains("jabber:client"));
}
}
/**
* Check that a websocket connection woudl also work.
Assert.assertFalse("'jabber:client' should not occur before 'something:else'",result.asXML().substring(0,result.asXML().indexOf("something:else")).contains("jabber:client"));
Assert.assertTrue("'jabber:client' should occur after 'something:else'",result.asXML().substring(result.asXML().indexOf("something:else")).contains("jabber:client"));