mirror of
https://github.com/owncloud/android-library.git
synced 2026-08-11 16:33:03 +00:00
apply suggested changes
delete unused const values bla
This commit is contained in:
committed by
Abel García de Prada
parent
6ec1bd2bb2
commit
257494a9dc
+7
-1
@@ -51,6 +51,12 @@ class ShareeResponseTest {
|
||||
response = loadResponses(EXAMPLE_RESPONSE_JSON, adapter)!!
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `check structure - ok - example response files exist`() {
|
||||
val file = File(EXAMPLE_RESPONSE_JSON)
|
||||
assertTrue(file.exists())
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `check structure - ok - contains meta`() {
|
||||
assertEquals("OK", response.ocs.meta.message!!)
|
||||
@@ -115,7 +121,7 @@ class ShareeResponseTest {
|
||||
|
||||
companion object {
|
||||
val RESOURCES_PATH =
|
||||
"/home/schabi/Projects/owncloud-android/owncloud-android-library/owncloudComLibrary/src/test/resources/com.owncloud.android.lib.resources.sharees.responses"
|
||||
"src/test/responses/com.owncloud.android.lib.resources.sharees.responses"
|
||||
val EXAMPLE_RESPONSE_JSON = "$RESOURCES_PATH/example_sharee_response.json"
|
||||
val EMPTY_RESPONSE_JSON = "$RESOURCES_PATH/empty_sharee_response.json"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user