1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

Fix (Privacy|Time)ProviderTest

XML attributes must be separated by a whitespace.
This commit is contained in:
Florian Schmaus 2019-04-28 23:18:52 +02:00
parent 870756997f
commit 4e7cd83220
2 changed files with 14 additions and 14 deletions

View file

@ -1,6 +1,6 @@
/** /**
* *
* Copyright 2012 Florian Schmaus * Copyright 2012-2019 Florian Schmaus
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -40,9 +40,9 @@ public class PrivacyProviderTest extends InitExtensions {
"<iq type='result' id='getlist2' to='romeo@example.net/orchard'>" "<iq type='result' id='getlist2' to='romeo@example.net/orchard'>"
+ "<query xmlns='jabber:iq:privacy'>" + "<query xmlns='jabber:iq:privacy'>"
+ "<list name='public'>" + "<list name='public'>"
+ "<item type='jid'" + "<item type='jid' "
+ "value='tybalt@example.com'" + "value='tybalt@example.com' "
+ "action='deny'" + "action='deny' "
+ "order='1'/>" + "order='1'/>"
+ "<item action='allow' order='2'/>" + "<item action='allow' order='2'/>"
+ "</list>" + "</list>"
@ -73,9 +73,9 @@ public class PrivacyProviderTest extends InitExtensions {
"<iq type='result' id='getlist2' to='romeo@example.net/orchard'>" "<iq type='result' id='getlist2' to='romeo@example.net/orchard'>"
+ "<query xmlns='jabber:iq:privacy'>" + "<query xmlns='jabber:iq:privacy'>"
+ "<list name='public'>" + "<list name='public'>"
+ "<item type='jid'" + "<item type='jid' "
+ "value='tybalt@example.com'" + "value='tybalt@example.com' "
+ "action='deny'" + "action='deny' "
+ "order='1'/>" + "order='1'/>"
+ "<item action='allow' order='2'>" + "<item action='allow' order='2'>"
+ "<message/>" + "<message/>"

View file

@ -1,6 +1,6 @@
/** /**
* *
* Copyright 2014 Florian Schmaus * Copyright 2014-2019 Florian Schmaus
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -32,9 +32,9 @@ public class TimeProviderTest {
public void parseTimeWithIntrospectionTest() throws Exception { public void parseTimeWithIntrospectionTest() throws Exception {
// @formatter:off // @formatter:off
final String request = final String request =
"<iq type='get'" "<iq type='get' "
+ "from='romeo@montague.net/orchard'" + "from='romeo@montague.net/orchard' "
+ "to='juliet@capulet.com/balcony'" + "to='juliet@capulet.com/balcony' "
+ "id='time_1'>" + "id='time_1'>"
+ "<time xmlns='urn:xmpp:time'/>" + "<time xmlns='urn:xmpp:time'/>"
+ "</iq>"; + "</iq>";
@ -44,9 +44,9 @@ public class TimeProviderTest {
// @formatter:off // @formatter:off
final String response = final String response =
"<iq type='result'" "<iq type='result' "
+ "from='juliet@capulet.com/balcony'" + "from='juliet@capulet.com/balcony' "
+ "to='romeo@montague.net/orchard'" + "to='romeo@montague.net/orchard' "
+ "id='time_1'>" + "id='time_1'>"
+ "<time xmlns='urn:xmpp:time'>" + "<time xmlns='urn:xmpp:time'>"
+ "<tzo>-06:00</tzo>" + "<tzo>-06:00</tzo>"