1class ConduitClientTests {
2
3 private val conduitClient = ConduitClient()
4
5 @Test
6 fun 'GET articles'()
7
8 {
9 val articles = conduitClient.api.getarticles().execute()
10 asserNotNull(articles.body() ?.articles)
11 }
12
13
14}
15
1 private fun toggleLeftDrawer() {
2 if (drawerLayout.isDrawerOpen(leftDrawerMenu)) {
3 drawerLayout.closeDrawer(leftDrawerMenu)
4 } else {
5 drawerLayout.openDrawer(leftDrawerMenu)
6 }
7 }
1 private fun toggleLeftDrawer() {
2 if (drawerLayout.isDrawerOpen(leftDrawerMenu)) {
3 drawerLayout.closeDrawer(leftDrawerMenu)
4 } else {
5 drawerLayout.openDrawer(leftDrawerMenu)
6 }
7 }