You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 17, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: inflation-inject-processor/src/test/java/app/cash/inject/inflation/processor/InflationInjectProcessorTest.kt
+138Lines changed: 138 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1061,5 +1061,143 @@ class InflationInjectProcessorTest {
1061
1061
@Test funmultipleModulesAcrossRoundsFails() {
1062
1062
}
1063
1063
1064
+
@Test funmultipleViewsStableOrder() {
1065
+
val inputViewA =JavaFileObjects.forSourceString("test.TestViewA", """
1066
+
package test;
1067
+
1068
+
import android.content.Context;
1069
+
import android.util.AttributeSet;
1070
+
import android.view.View;
1071
+
import app.cash.inject.inflation.Inflated;
1072
+
import app.cash.inject.inflation.InflationInject;
1073
+
1074
+
class TestViewA extends View {
1075
+
@InflationInject
1076
+
TestViewA(@Inflated Context context, @Inflated AttributeSet attrs, Long foo) {
1077
+
super(context, attrs);
1078
+
}
1079
+
}
1080
+
""")
1081
+
val inputViewB =JavaFileObjects.forSourceString("test.TestViewA", """
1082
+
package test;
1083
+
1084
+
import android.content.Context;
1085
+
import android.util.AttributeSet;
1086
+
import android.view.View;
1087
+
import app.cash.inject.inflation.Inflated;
1088
+
import app.cash.inject.inflation.InflationInject;
1089
+
1090
+
class TestViewB extends View {
1091
+
@InflationInject
1092
+
TestViewB(@Inflated Context context, @Inflated AttributeSet attrs, Long foo) {
1093
+
super(context, attrs);
1094
+
}
1095
+
}
1096
+
""")
1097
+
val inputModule =JavaFileObjects.forSourceString("test.TestModule", """
0 commit comments