mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-25 15:52:06 +01:00
Fix (Privacy|Time)ProviderTest
XML attributes must be separated by a whitespace.
This commit is contained in:
parent
870756997f
commit
4e7cd83220
2 changed files with 14 additions and 14 deletions
|
@ -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/>"
|
||||
|
|
|
@ -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>"
|
||||
|
|
Loading…
Reference in a new issue