Skip to content

Commit 31beb4b

Browse files
committed
Clean-up of instrumentation classes
1 parent 5842a48 commit 31beb4b

File tree

3 files changed

+4
-28
lines changed

3 files changed

+4
-28
lines changed

instrumentation/src/main/kotlin/de/mannodermaus/junit5/ActivityTest.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ interface Tested<out T : Activity> {
8585
* Launches the Activity under test.
8686
*
8787
* Don't call this method directly, unless you explicitly requested
88-
* not to lazily launch the Activity manually using the launchActivity flag
89-
* in the [ActivityTest] configuration annotation.
88+
* to launch the Activity manually through the [ActivityTest]'s launchActivity flag.
9089
*
9190
* @throws ActivityAlreadyLaunchedException if the Activity was already launched
9291
*/
@@ -100,8 +99,8 @@ interface Tested<out T : Activity> {
10099
fun finishActivity()
101100

102101
/**
103-
* This method can be used to retrieve the Activity result of an Activity that has called setResult.
104-
* Usually, the result is handled in onActivityResult of parent activity, that has called startActivityForResult.
102+
* This method can be used to retrieve the result of an Activity that has called [Activity.setResult].
103+
* Usually, the result is handled in onActivityResult of the parent activity, which has called startActivityForResult.
105104
* This method must not be called before Activity.finish was called.
106105
*
107106
* @throws ActivityNotLaunchedException if the Activity is not running

instrumentation/src/main/kotlin/de/mannodermaus/junit5/Extensions.kt

Lines changed: 0 additions & 23 deletions
This file was deleted.

instrumentation/src/test/kotlin/de/mannodermaus/junit5/test/ExpectThat.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ sealed class ExpectedMessage {
7979

8080
class Containing(private val fragment: String) : ExpectedMessage() {
8181
override fun assertAgainst(actual: String) {
82-
assertThat(actual).contains(fragment)
82+
assertThat(actual).containsOnlyOnce(fragment)
8383
}
8484
}
8585
}

0 commit comments

Comments
 (0)