From c3700c9234d4cebff8201411cc6006d61db1ad29 Mon Sep 17 00:00:00 2001 From: Madhur Gupta <30932899+madhurgupta10@users.noreply.github.com> Date: Mon, 28 Dec 2020 15:53:03 +0530 Subject: [PATCH] Added Signup Activity Test (#4134) --- .../nrw/commons/auth/SignupActivityTest.kt | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 app/src/test/kotlin/fr/free/nrw/commons/auth/SignupActivityTest.kt diff --git a/app/src/test/kotlin/fr/free/nrw/commons/auth/SignupActivityTest.kt b/app/src/test/kotlin/fr/free/nrw/commons/auth/SignupActivityTest.kt new file mode 100644 index 000000000..92d4f6053 --- /dev/null +++ b/app/src/test/kotlin/fr/free/nrw/commons/auth/SignupActivityTest.kt @@ -0,0 +1,29 @@ +package fr.free.nrw.commons.auth + +import fr.free.nrw.commons.TestCommonsApplication +import org.junit.Assert +import org.junit.Before +import org.junit.Test +import org.junit.runner.RunWith +import org.robolectric.Robolectric +import org.robolectric.RobolectricTestRunner +import org.robolectric.annotation.Config + + +@RunWith(RobolectricTestRunner::class) +@Config(sdk = [21], application = TestCommonsApplication::class) +class SignupActivityTest { + + private lateinit var activity: SignupActivity + + @Before + fun setUp() { + activity = Robolectric.buildActivity(SignupActivity::class.java).create().get() + } + + @Test + @Throws(Exception::class) + fun checkActivityNotNull() { + Assert.assertNotNull(activity) + } +} \ No newline at end of file