Home
last modified time | relevance | path

Searched refs:assertMethod (Results 1 – 13 of 13) sorted by relevance

/tools/metalava/metalava-model-psi/src/test/java/com/android/tools/metalava/model/psi/
DPsiMethodItemTest.kt69 val ctorItem = codebase.assertClass("Foo").assertMethod("Foo", "") in method return type is non-null()
72 val methodItem = codebase.assertClass("Foo").assertMethod("bar", "") in method return type is non-null()
107 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("bar", "") in child method does not need to be added to signature file if super method is concrete()
135 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("bar", "") in child method only needs to be added to signature file if all multiple direct super methods requires override()
164 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("bar", "") in child method does not need to be added to signature file if override requiring super method is hidden()
181 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("clone", "") in child method need to be added to signature file if extending Object method and return type changes()
198 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("clone", "") in child method need to be added to signature file if extending Object method and visibility changes()
218 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("clone", "") in child method does not need to be added to signature file even if extending Object method and modifier changes when it is not a direct override()
235 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("toString", "") in child method does not need to be added to signature file if extending Object method and modifier does not change()
260 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("bar", "") in hidden child method can be added to signature file to resolve compile error()
[all …]
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/
DCommonModelTest.kt193 val barFoo = latest.assertClass("test.pkg.Bar").assertMethod("foo", "int") in test findCorrespondingItemIn does not find super methods()
211 previouslyReleased.assertClass("test.pkg.Foo").assertMethod("foo", "int") in test findCorrespondingItemIn does find super methods()
215 val barFoo = latest.assertClass("test.pkg.Bar").assertMethod("foo", "int") in test findCorrespondingItemIn does find super methods()
239 previouslyReleased.assertClass("test.pkg.Foo").assertMethod("foo", "int") in test findCorrespondingItemIn does duplicate super methods()
243 val fooFoo = latest.assertClass("test.pkg.Foo").assertMethod("foo", "int") in test findCorrespondingItemIn does duplicate super methods()
244 val barFoo = latest.assertClass("test.pkg.Bar").assertMethod("foo", "int") in test findCorrespondingItemIn does duplicate super methods()
DBootstrapSourceModelProviderTest.kt119 val methodItem = testClass.assertMethod("method", "") in 060 - check method exists()
541 val itf1Mtd1 = itfCls1.assertMethod("method1", "") in 150 - advanced superMethods() test on methoditem()
542 val itf1Mtd2 = itfCls1.assertMethod("method2", "java.lang.Object") in 150 - advanced superMethods() test on methoditem()
545 val itf2Mtd1 = itfCls2.assertMethod("method1", "") in 150 - advanced superMethods() test on methoditem()
548 val cls1Mtd1 = classItem1.assertMethod("method1", "") in 150 - advanced superMethods() test on methoditem()
549 val cls1Mtd2 = classItem1.assertMethod("method2", "java.lang.Object") in 150 - advanced superMethods() test on methoditem()
552 val cls2Mtd1 = classItem2.assertMethod("method1", "") in 150 - advanced superMethods() test on methoditem()
555 val cls3Mtd1 = classItem3.assertMethod("method1", "") in 150 - advanced superMethods() test on methoditem()
803 val methodItem = testClass.assertMethod("foo", "") in 210 Test Method exception list()
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/classitem/
DCommonEnumTest.kt80 val values = fooClass.assertMethod(JAVA_ENUM_VALUES, "java.lang.String") in Test enum synthetic methods are not included in the enum class()
85 val valueOf = fooClass.assertMethod(JAVA_ENUM_VALUE_OF, "int") in Test enum synthetic methods are not included in the enum class()
90 val getEntries = fooClass.assertMethod("getEntries", "java.lang.String") in Test enum synthetic methods are not included in the enum class()
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/typeitem/
DCommonTypeModifiersTest.kt973 val platformString = fooClass.assertMethod("platformString", "").returnType() in <lambda>()
977 val nullableString = fooClass.assertMethod("nullableString", "").returnType() in <lambda>()
980 val nonNullString = fooClass.assertMethod("nonNullString", "").returnType() in <lambda>()
1054 fooClass.assertMethod("platformStringPlatformArray", "").returnType() in <lambda>()
1064 fooClass.assertMethod("platformStringNullableArray", "").returnType() in <lambda>()
1074 fooClass.assertMethod("nonNullStringPlatformArray", "").returnType() in <lambda>()
1082 fooClass.assertMethod("nullableStringNonNullArray", "").returnType() in <lambda>()
1089 fooClass.assertMethod("nullableStringNullableArray", "").returnType() in <lambda>()
1238 .assertMethod("platformStringPlatformVararg", "java.lang.String[]") in <lambda>()
1251 .assertMethod("nullableStringPlatformVararg", "java.lang.String[]") in <lambda>()
[all …]
DCommonTypeItemTest.kt1316 val mVar = parent.assertMethod("getM", "").returnType() in Test convertType()
1321 val nArray = parent.assertMethod("getNArray", "").returnType() in Test convertType()
1327 val mList = parent.assertMethod("getMList", "").returnType() in Test convertType()
1333 val mToNMap = parent.assertMethod("getMap", "").returnType() in Test convertType()
1340 val wildcards = parent.assertMethod("getWildcards", "").returnType() in Test convertType()
DCommonTypeParameterItemTest.kt411 val method = codebase.assertClass("test.pkg.Foo").assertMethod("foo", "") in Test toType()
/tools/metalava/metalava-model-text/src/test/java/com/android/tools/metalava/model/text/
DTextMethodItemTest.kt41 val ctorItem = cls.assertMethod("Foo", "") in text method item return type is non-null()
42 val methodItem = cls.assertMethod("bar", "") in text method item return type is non-null()
DApiFileTest.kt112 codebase.assertClass("test.pkg.Foo").assertMethod("foo", "").throwsTypes().first() in <lambda>()
147 codebase.assertClass("test.pkg.Foo").assertMethod("foo", "").throwsTypes().first() in <lambda>()
172 codebase.assertClass("test.pkg.Foo").assertMethod("foo", "").throwsTypes().first() in <lambda>()
206 codebase.assertClass("test.pkg.Foo").assertMethod("foo", "").throwsTypes().first() in <lambda>()
238 codebase.assertClass("test.pkg.Foo").assertMethod("foo", "").throwsTypes().first() in <lambda>()
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/methoditem/
DCommonParameterItemTest.kt211 .assertMethod("equals", "java.lang.Object") in Test publicName reports correct name when called on binary class - Object#equals()
239 .assertMethod("onLayout", "boolean, int, int, int, int") in Test publicName reports correct name when called on binary class - ViewGroup#onLayout()
DCommonMethodItemTest.kt85 .assertMethod("method", "") in <lambda>()
DCommonCopyMethodItemTest.kt80 override fun getMember(sourceClassItem: ClassItem) = sourceClassItem.assertMethod("method", "") in getMember()
/tools/metalava/metalava-model/src/testFixtures/java/com/android/tools/metalava/model/
DAssertions.kt55 fun ClassItem.assertMethod(methodName: String, parameters: String): MethodItem { in ClassItem() method