Fix tests error for arbitraryDataProvider

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-05-02 15:32:06 +02:00
parent 22b0f79fcc
commit fa6ab17192
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -28,7 +28,6 @@ import com.nextcloud.test.RandomStringGenerator
import com.nextcloud.test.RetryTestRule
import com.owncloud.android.AbstractIT
import com.owncloud.android.AbstractOnServerIT
import com.owncloud.android.datamodel.ArbitraryDataProvider
import com.owncloud.android.datamodel.ArbitraryDataProviderImpl
import com.owncloud.android.datamodel.OCFile
import com.owncloud.android.datamodel.e2e.v2.decrypted.DecryptedFolderMetadataFile
@ -62,7 +61,6 @@ import com.owncloud.android.utils.FileStorageUtils
import junit.framework.TestCase
import org.junit.Assume
import org.junit.Before
import org.junit.BeforeClass
import org.junit.Rule
import org.junit.Test
import java.io.File
@ -799,14 +797,9 @@ class EndToEndRandomIT : AbstractOnServerIT() {
)
}
companion object {
private var arbitraryDataProvider: ArbitraryDataProvider? = null
@JvmStatic
@BeforeClass
@Before
@Throws(Exception::class)
fun initClass() {
arbitraryDataProvider = ArbitraryDataProviderImpl(targetContext)
createKeys()
}
@ -903,4 +896,3 @@ class EndToEndRandomIT : AbstractOnServerIT() {
return "1 2 3 4 5 6"
}
}
}