1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 13:32:07 +01:00

Remove superfluous ' "" +' statements

Using

sed -i 's; "" +;;' <file>

to remove those.
This commit is contained in:
Florian Schmaus 2020-04-15 09:35:13 +02:00
parent 77d12d4758
commit da5f59a996
2 changed files with 8 additions and 8 deletions

View file

@ -57,7 +57,7 @@ public class MessageFasteningElementsTest {
*/
@Test
public void fasteningElementSerializationTest() {
String xml = "" +
String xml =
"<apply-to xmlns='urn:xmpp:fasten:0' id='origin-id-1'>" +
" <i-like-this xmlns='urn:example:like'/>" +
"</apply-to>";
@ -73,7 +73,7 @@ public class MessageFasteningElementsTest {
@ParameterizedTest
@EnumSource(SmackTestUtil.XmlPullParserKind.class)
public void fasteningDeserializationTest(SmackTestUtil.XmlPullParserKind parserKind) throws XmlPullParserException, IOException, SmackParsingException {
String xml = "" +
String xml =
"<apply-to xmlns='urn:xmpp:fasten:0' id='origin-id-1'>" +
" <i-like-this xmlns='urn:example:like'/>" +
" <external name='custom' element-namespace='urn:example:custom'/>" +
@ -102,7 +102,7 @@ public class MessageFasteningElementsTest {
@Test
public void fasteningDeserializationClearTest() throws XmlPullParserException, IOException, SmackParsingException {
String xml = "" +
String xml =
"<apply-to xmlns='urn:xmpp:fasten:0' id='origin-id-1' clear='true'>" +
" <i-like-this xmlns='urn:example:like'/>" +
"</apply-to>";
@ -114,7 +114,7 @@ public class MessageFasteningElementsTest {
@Test
public void fasteningElementWithExternalElementsTest() {
String xml = "" +
String xml =
"<apply-to xmlns='urn:xmpp:fasten:0' id='origin-id-2'>" +
" <external name='body'/>" +
" <external name='custom' element-namespace='urn:example:custom'/>" +

View file

@ -43,7 +43,7 @@ public class TestKeys {
/**
* Public key of xmpp:juliet@capulet.lit.
*/
public static final String JULIET_PUB = "" +
public static final String JULIET_PUB =
"-----BEGIN PGP PUBLIC KEY BLOCK-----\n" +
"\n" +
"mQENBFrxov4BCAChZwPrBxxIlwzpieR5T2pnaOZLWH0WqSON6rVjvfbJHWdDi3Th\n" +
@ -66,7 +66,7 @@ public class TestKeys {
/**
* Private key of xmpp:juliet@capulet.lit.
*/
public static final String JULIET_PRIV = "" +
public static final String JULIET_PRIV =
"-----BEGIN PGP PRIVATE KEY BLOCK-----\n" +
"\n" +
"lQOYBFrxov4BCAChZwPrBxxIlwzpieR5T2pnaOZLWH0WqSON6rVjvfbJHWdDi3Th\n" +
@ -104,7 +104,7 @@ public class TestKeys {
/**
* Public key of xmpp:romeo@montague.lit.
*/
public static final String ROMEO_PUB = "" +
public static final String ROMEO_PUB =
"-----BEGIN PGP PUBLIC KEY BLOCK-----\n" +
"\n" +
"mQENBFrxopkBCADiYg/+mEObXgxuMW6/LFKpEyaJK9pBMgutuxnYZ9PXWZmOhDIT\n" +
@ -127,7 +127,7 @@ public class TestKeys {
/**
* Private key of xmpp:romeo@montague.lit.
*/
public static final String ROMEO_PRIV = "" +
public static final String ROMEO_PRIV =
"-----BEGIN PGP PRIVATE KEY BLOCK-----\n" +
"\n" +
"lQOYBFrxopkBCADiYg/+mEObXgxuMW6/LFKpEyaJK9pBMgutuxnYZ9PXWZmOhDIT\n" +