File tree Expand file tree Collapse file tree 3 files changed +4
-28
lines changed
main/kotlin/de/mannodermaus/junit5
test/kotlin/de/mannodermaus/junit5/test Expand file tree Collapse file tree 3 files changed +4
-28
lines changed Original file line number Diff line number Diff 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
Load Diff This file was deleted.
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments