File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
tests/konsist/src/test/kotlin/io/element/android/tests/konsist Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import com.lemonappdev.konsist.api.ext.list.withoutName
20
20
import com.lemonappdev.konsist.api.ext.list.withoutNameStartingWith
21
21
import com.lemonappdev.konsist.api.verify.assertEmpty
22
22
import com.lemonappdev.konsist.api.verify.assertTrue
23
+ import io.element.android.libraries.architecture.BaseFlowNode
23
24
import io.element.android.libraries.architecture.Presenter
24
25
import org.junit.Test
25
26
@@ -44,6 +45,16 @@ class KonsistClassNameTest {
44
45
}
45
46
}
46
47
48
+ @Test
49
+ fun `Classes extending 'BaseFlowNode' should have 'FlowNode' suffix` () {
50
+ Konsist .scopeFromProject()
51
+ .classes()
52
+ .withAllParentsOf(BaseFlowNode ::class )
53
+ .assertTrue {
54
+ it.name.endsWith(" FlowNode" )
55
+ }
56
+ }
57
+
47
58
@Test
48
59
fun `Classes extending 'PreviewParameterProvider' name MUST end with 'Provider' and MUST contain provided class name` () {
49
60
Konsist .scopeFromProduction()
You can’t perform that action at this time.
0 commit comments