-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/v6.0' into 'master'
Release v6.0 See merge request mobile/android/android!2215
- Loading branch information
Showing
171 changed files
with
2,772 additions
and
3,277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
app/src/androidTest/java/test/mega/privacy/android/app/InstrumentedTestExampleTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package test.mega.privacy.android.app | ||
|
||
import android.content.Context | ||
import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
import androidx.test.platform.app.InstrumentationRegistry | ||
import com.google.common.truth.Truth.assertThat | ||
import mega.privacy.android.app.R | ||
import org.junit.Before | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
|
||
@RunWith(AndroidJUnit4::class) | ||
class InstrumentedTestExampleTest { | ||
|
||
private lateinit var appContext: Context | ||
|
||
@Before | ||
fun setup() { | ||
// Context of the app under test. | ||
appContext = InstrumentationRegistry.getInstrumentation().targetContext | ||
} | ||
|
||
@Test | ||
fun test_readPackageIdFromContext() { | ||
assertThat(appContext.packageName).isEqualTo("mega.privacy.android.app") | ||
} | ||
|
||
@Test | ||
fun test_readStringFromContext_LocalizedString() { | ||
assertThat(appContext.getString(R.string.app_name)).isEqualTo("MEGA") | ||
|
||
assertThat(appContext.getString(R.string.prolite_account)).isEqualTo("Pro Lite") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.