-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
113 changed files
with
2,235 additions
and
2,208 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
30 changes: 30 additions & 0 deletions
30
android/app/src/androidTest/java/com/zzang/chongdae/CommentRoomsFragmentTest.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,30 @@ | ||
package com.zzang.chongdae | ||
|
||
import androidx.fragment.app.testing.FragmentScenario | ||
import androidx.test.espresso.Espresso.onView | ||
import androidx.test.espresso.assertion.ViewAssertions.matches | ||
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed | ||
import androidx.test.espresso.matcher.ViewMatchers.withId | ||
import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
import com.zzang.chongdae.presentation.view.comment.CommentRoomsFragment | ||
import org.junit.Before | ||
import org.junit.Test | ||
import org.junit.jupiter.api.DisplayName | ||
import org.junit.runner.RunWith | ||
|
||
@RunWith(AndroidJUnit4::class) | ||
class CommentRoomsFragmentTest { | ||
private lateinit var scenario: FragmentScenario<CommentRoomsFragment> | ||
|
||
@Before | ||
fun setUp() { | ||
scenario = FragmentScenario.launchInContainer(CommentRoomsFragment::class.java) | ||
} | ||
|
||
@Test | ||
@DisplayName("댓글방 목록으로 이동하면 채팅이라는 텍스트뷰가 보여야 한다") | ||
fun commentRoomTest1() { | ||
// then | ||
onView(withId(R.id.tv_comment_text)).check(matches(isDisplayed())) | ||
} | ||
} |
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.