Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add AI Setting Methods #279

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vedantnd111
Copy link

@vedantnd111 vedantnd111 commented Oct 12, 2024

Summary:

@vedantnd111 vedantnd111 changed the title AI Setting Methods Add AI Setting Methods Oct 12, 2024
@vedantnd111 vedantnd111 changed the title Add AI Setting Methods feat: Add AI Setting Methods Oct 12, 2024
@andrii-bodnar
Copy link
Member

@vedantnd111 as I can see from the failed CI build, there is an issue in the tests code:

> Task :compileTestJava
/home/runner/work/crowdin-api-client-java/crowdin-api-client-java/src/test/java/com/crowdin/client/ai/AiApiTest.java:25: error: cannot find symbol
        return List.of(RequestMock.build(settingsApi, HttpGet.METHOD_NAME, "api/ai/getAiSettingResponse.json"),
                   ^
  symbol:   method of(RequestMock,RequestMock)
  location: interface List

@vedantnd111
Copy link
Author

@vedantnd111 as I can see from the failed CI build, there is an issue in the tests code:

> Task :compileTestJava
/home/runner/work/crowdin-api-client-java/crowdin-api-client-java/src/test/java/com/crowdin/client/ai/AiApiTest.java:25: error: cannot find symbol
        return List.of(RequestMock.build(settingsApi, HttpGet.METHOD_NAME, "api/ai/getAiSettingResponse.json"),
                   ^
  symbol:   method of(RequestMock,RequestMock)
  location: interface List

I have made some changes to fix this. Please check.


@Test
public void getAiSettingTest() {
System.out.println("test-url: " + settingsApi);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to remove this line of code

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed log statments, but tests are failing because received response is null. I was not able to debug this, could you PTAL?

@timiredmind
Copy link

@vedantnd111 i think it will be better to have a single commit
That would make it easier to review

@andrii-bodnar
Copy link
Member

@vedantnd111 the CI is failing:

> Task :test

AiApiTest > getAiSettingTest() FAILED
    org.opentest4j.AssertionFailedError at AiApiTest.java:35

AiApiTest > editAiSettingTest() FAILED
    org.opentest4j.AssertionFailedError at AiApiTest.java:48

364 tests completed, 2 failed

Please take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants