# How to unit test Parse

**URL:** <https://community.parseplatform.org/t/how-to-unit-test-parse/1913>\
**Category:** Android SDK\
**Tags:** unit-tests\
**Created:** [August 20, 2021, 5:24am UTC](https://community.parseplatform.org/t/how-to-unit-test-parse/1913 "2021-08-20T05:24:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Popcorn](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/p/6a8cbe/32.png) [@Popcorn](https://community.parseplatform.org/u/Popcorn)\
**Post date:** [August 20, 2021, 5:24am UTC](https://community.parseplatform.org/t/how-to-unit-test-parse/1913/1 "2021-08-20T05:24:43Z")

</div>

I just got into Android development and I want to test my interaction between server and Android client. However, Parse needs additional setup before I can test anything (Initialize Parse in a custom class that extends `Application` and register it in `AndroidManifest.xml`). How can I do that? Thank you.  
Example code I want to test `test/java/.../UserUnitTest.kt`:

```auto
class UserUnitTest{
    @Test
    fun getUserFromBlog() {
        val queryBlog = ParseQuery.getQuery<ParseObject>("Blog")
        val blog = queryBlog.get("someBlogId")
        val author = blog.getParseUser("user")
        assertNotEquals(null, author)
    }
}

```

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [August 20, 2021, 3:28pm UTC](https://community.parseplatform.org/t/how-to-unit-test-parse/1913/2 "2021-08-20T15:28:19Z")

</div>

I am not expert in Android unit tests, but the Parse.initialize() function does not need to be called inside an Application class. I believe you can call it in the beginning of your tests.
