1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +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");
* 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'>"
+ "<query xmlns='jabber:iq:privacy'>"
+ "<list name='public'>"
+ "<item type='jid'"
+ "value='tybalt@example.com'"
+ "action='deny'"
+ "<item type='jid' "
+ "value='tybalt@example.com' "
+ "action='deny' "
+ "order='1'/>"
+ "<item action='allow' order='2'/>"
+ "</list>"
@ -73,9 +73,9 @@ public class PrivacyProviderTest extends InitExtensions {
"<iq type='result' id='getlist2' to='romeo@example.net/orchard'>"
+ "<query xmlns='jabber:iq:privacy'>"
+ "<list name='public'>"
+ "<item type='jid'"
+ "value='tybalt@example.com'"
+ "action='deny'"
+ "<item type='jid' "
+ "value='tybalt@example.com' "
+ "action='deny' "
+ "order='1'/>"
+ "<item action='allow' order='2'>"
+ "<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");
* you may not use this file except in compliance with the License.
@ -32,9 +32,9 @@ public class TimeProviderTest {
public void parseTimeWithIntrospectionTest() throws Exception {
// @formatter:off
final String request =
"<iq type='get'"
+ "from='romeo@montague.net/orchard'"
+ "to='juliet@capulet.com/balcony'"
"<iq type='get' "
+ "from='romeo@montague.net/orchard' "
+ "to='juliet@capulet.com/balcony' "
+ "id='time_1'>"
+ "<time xmlns='urn:xmpp:time'/>"
+ "</iq>";
@ -44,9 +44,9 @@ public class TimeProviderTest {
// @formatter:off
final String response =
"<iq type='result'"
+ "from='juliet@capulet.com/balcony'"
+ "to='romeo@montague.net/orchard'"
"<iq type='result' "
+ "from='juliet@capulet.com/balcony' "
+ "to='romeo@montague.net/orchard' "
+ "id='time_1'>"
+ "<time xmlns='urn:xmpp:time'>"
+ "<tzo>-06:00</tzo>"