Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for assertHasErrors (0.06 seconds)

  1. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/JSpecifyNullabilityChangesTest.kt

                        public String @Nullable [] foo() { return new String[] {"some", null}; }
                    }
                """
            ) {
                assertHasErrors(
                    "Field nonFinalField: Nullability breaking change.",
                    "Field finalField: From non-nullable to nullable breaking change.",
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu May 15 17:05:08 GMT 2025
    - 18K bytes
    - Click Count (0)
  2. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/JSpecifyNullUnmarkedChangesTest.kt

                        public @$nullUnmarkedAnnotationName String[] baz() { return new String[] {"some", null}; }
                    }
                """
            ) {
                assertHasErrors(
                    "Method com.example.Source.foo(): From non-null returning to null-unmarked returning breaking change.",
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Oct 27 09:26:32 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  3. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SinceAndIncubatingRulesKotlinTest.kt

               $publicKotlinMembers
    
                const val cathedral = "cathedral"
    
                """
            ) {
    
                assertHasNoInformation()
                assertHasNoWarning()
                assertHasErrors(
    
                    // Kotlin file-facade classes are ignored by the @since rule
                    listOf("Class com.example.SourceKt: Is not annotated with @Incubating."),
    
                    added("Field", "cathedral"),
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Jun 06 17:52:09 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  4. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

            }
    
            fun assertHasErrors(vararg errors: List<String>) {
                assertHasErrors(*errors.toList().flatten().toTypedArray())
            }
    
            fun assertHasErrors(vararg errorWithDetail: Pair<String, List<String>>) {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 10:14:25 GMT 2025
    - 18K bytes
    - Click Count (0)
  5. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/UpgradedPropertiesChangesTest.kt

                                public abstract Property<String> getSourceCompatibility();
                            }
                        """
                    )
                }
            ) {
                assertHasErrors(
                    "Method com.example.Task.getSourceCompatibility(): Is not binary compatible." to listOf("Method return type has changed", "Method is now abstract"),
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 24 14:15:15 GMT 2025
    - 26.2K bytes
    - Click Count (0)
Back to Top