Skip to content

Commit 2aac4f0

Browse files
shorten line and rename const
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent bf217b9 commit 2aac4f0

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

library/src/androidTest/java/com/owncloud/android/lib/resources/shares/UpdateShareRemoteOperationIT.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ class UpdateShareRemoteOperationIT : AbstractIT() {
161161
when {
162162
capability.version.isNewerOrEqual(NextcloudVersion.nextcloud_22) -> {
163163
assertEquals(
164-
"Password needs to be at least 10 characters long. Password is present in compromised password list. Please choose a different password.",
164+
"Password needs to be at least 10 characters long. " +
165+
"Password is present in compromised password list. " +
166+
"Please choose a different password.",
165167
result.message
166168
)
167169
}

library/src/test/java/com/owncloud/android/lib/common/network/WebdavEntryTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import java.io.ByteArrayInputStream
3131

3232
class WebdavEntryTest {
3333
companion object {
34-
private const val exampleMultiStatus = """<?xml version="1.0"?>
34+
private const val EXAMPLE_MULTI_STATUS = """<?xml version="1.0"?>
3535
<d:multistatus xmlns:d="DAV:" xmlns:nc="http://nextcloud.org/ns" xmlns:oc="http://owncloud.org/ns">
3636
<d:response>
3737
<d:href>/remote.php/dav/files/test/test.md</d:href>
@@ -81,7 +81,7 @@ class WebdavEntryTest {
8181

8282
private fun getElement(): Element {
8383
val document = DomUtil.parseDocument(
84-
ByteArrayInputStream(exampleMultiStatus.toByteArray())
84+
ByteArrayInputStream(EXAMPLE_MULTI_STATUS.toByteArray())
8585
)
8686
return document.documentElement
8787
}

0 commit comments

Comments
 (0)