Skip to content

Add integration test for ObjC calling interface methods with @ObjectiveCKmpMethod#2751

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_915354020
Open

Add integration test for ObjC calling interface methods with @ObjectiveCKmpMethod#2751
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_915354020

Conversation

@copybara-service
Copy link
Copy Markdown

Add integration test for ObjC calling interface methods with @ObjectiveCKmpMethod

Verifies that Objective-C can call interface methods annotated with @ObjectiveCKmpMethod that are implemented by Java subclasses, ensuring adapter methods are correctly generated in J2ObjC and J2KT.

  • Added InterfaceMethodTestClass.java in common directory.
  • Added InterfaceMethodTest.m in coexistence and preprocessor to test calling from ObjC via the protocol.
  • Added tests to ListsTest.m to verify mapping of lists of interfaces.

…veCKmpMethod

Verifies that Objective-C can call interface methods annotated with `@ObjectiveCKmpMethod` that are implemented by Java subclasses, ensuring adapter methods are correctly generated in J2ObjC and J2KT.

-   Added `InterfaceMethodTestClass.java` in `common` directory.
-   Added `InterfaceMethodTest.m` in `coexistence` and `preprocessor` to test calling from ObjC via the protocol.
-   Added tests to `ListsTest.m` to verify mapping of lists of interfaces.

PiperOrigin-RevId: 915354020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant