Skip to content

Commit 565833d

Browse files
committed
Add docs for clarifying tests
1 parent cab324e commit 565833d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

code/core/src/androidTest/java/com/adobe/marketing/mobile/services/ui/common/AEPPresentableTests.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ import org.mockito.ArgumentMatchers.eq
3030
import org.mockito.Mockito.mock
3131
import org.mockito.Mockito.`when`
3232

33+
/**
34+
* Tests for [AEPPresentable] that require mocking of Android framework classes.
35+
*/
3336
class AEPPresentableTests {
3437

3538
@Test
@@ -138,6 +141,10 @@ class AEPPresentableTests {
138141
assertTrue(background.peekValue(0).resourceId == android.R.color.transparent)
139142
}
140143

144+
/**
145+
* A sample implementation of [AEPPresentable]. Make an effort to keep this presentation type
146+
* agnostic to avoid test pollution.
147+
*/
141148
internal class SampleAEPPresentable(
142149
private val presentation: InAppMessage,
143150
presentationUtilityProvider: PresentationUtilityProvider,

0 commit comments

Comments
 (0)