-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop'
- Loading branch information
Showing
204 changed files
with
10,310 additions
and
2,826 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
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
50 changes: 50 additions & 0 deletions
50
app/src/androidTest/java/br/com/fenix/bilingualmangareader/view/ui/menu/MenuActivityTest.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,50 @@ | ||
package br.com.fenix.bilingualmangareader.view.ui.menu | ||
|
||
import android.content.Intent | ||
import android.os.Bundle | ||
import androidx.test.core.app.ApplicationProvider | ||
import androidx.test.ext.junit.rules.ActivityScenarioRule | ||
import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
import br.com.fenix.bilingualmangareader.R | ||
import br.com.fenix.bilingualmangareader.util.constants.GeneralConsts | ||
import junit.framework.TestCase | ||
import org.junit.FixMethodOrder | ||
import org.junit.Rule | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
import org.junit.runners.MethodSorters | ||
import java.util.concurrent.CountDownLatch | ||
|
||
@FixMethodOrder(MethodSorters.NAME_ASCENDING) | ||
@RunWith(AndroidJUnit4::class) | ||
class MenuActivityTest { | ||
|
||
private var intent: Intent? = null | ||
|
||
init { | ||
intent = Intent(ApplicationProvider.getApplicationContext(), MenuActivity::class.java) | ||
|
||
val bundle = Bundle() | ||
bundle.putInt(GeneralConsts.KEYS.FRAGMENT.ID, R.id.frame_select_manga) | ||
intent?.putExtras(bundle) | ||
} | ||
|
||
|
||
@get:Rule | ||
val activityScenarioRule = ActivityScenarioRule<MenuActivity>(intent) | ||
|
||
private val awaitProcessSeconds = 2L | ||
|
||
@Test | ||
fun `1_test_select_manga`() { | ||
val waiter = CountDownLatch(1) | ||
val scenario = activityScenarioRule.scenario | ||
|
||
scenario.onActivity { | ||
val fragment = it.supportFragmentManager.findFragmentById(R.id.root_frame_menu) | ||
TestCase.assertTrue(fragment is SelectMangaFragment) | ||
} | ||
|
||
waiter.await() | ||
} | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.