mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-07 13:41:08 +01:00
"Smackify" HOXT code: Use Smack programming idioms
This commit is contained in:
parent
4d57848a0f
commit
9ea5c0a2ce
9 changed files with 102 additions and 104 deletions
|
|
@ -181,7 +181,7 @@ public class AbstractHttpOverXmppProviderTest {
|
|||
}
|
||||
|
||||
// TODO The method name makes no sense after the HOXT re-design, change to parseHttpOverXmppResp()
|
||||
private HttpOverXmppResp parseAbstractBody(String string, String tag) throws Exception {
|
||||
private static HttpOverXmppResp parseAbstractBody(String string, String tag) throws Exception {
|
||||
HttpOverXmppRespProvider provider = new HttpOverXmppRespProvider();
|
||||
XmlPullParser parser = PacketParserUtils.getParserFor(string, tag);
|
||||
|
||||
|
|
@ -190,7 +190,7 @@ public class AbstractHttpOverXmppProviderTest {
|
|||
return (HttpOverXmppResp) iq;
|
||||
}
|
||||
|
||||
private void checkHeaders(HeadersExtension headers, Map<String, String> expectedHeaders) {
|
||||
private static void checkHeaders(HeadersExtension headers, Map<String, String> expectedHeaders) {
|
||||
Collection<Header> collection = headers.getHeaders();
|
||||
|
||||
assertEquals(collection.size(), expectedHeaders.size());
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ public class HttpOverXmppReqProviderTest {
|
|||
assertEquals(req.isJingle(), true);
|
||||
}
|
||||
|
||||
private HttpOverXmppReq parseReq(String string) throws Exception {
|
||||
private static HttpOverXmppReq parseReq(String string) throws Exception {
|
||||
HttpOverXmppReqProvider provider = new HttpOverXmppReqProvider();
|
||||
XmlPullParser parser = PacketParserUtils.getParserFor(string);
|
||||
IQ iq = provider.parse(parser);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue