Class CodeMieProviderTest

java.lang.Object
org.machanism.machai.ai.provider.codemie.CodeMieProviderTest

class CodeMieProviderTest extends Object
  • Constructor Details

    • CodeMieProviderTest

      CodeMieProviderTest()
  • Method Details

    • tearDown

      @AfterEach void tearDown()
    • getToken_passwordGrant_success_parsesAccessToken

      @Test void getToken_passwordGrant_success_parsesAccessToken() throws Exception
      Throws:
      Exception
    • getToken_clientCredentials_success_parsesAccessToken

      @Test void getToken_clientCredentials_success_parsesAccessToken() throws Exception
      Throws:
      Exception
    • getToken_success_whenJsonSpansMultipleLines

      @Test void getToken_success_whenJsonSpansMultipleLines() throws Exception
      Throws:
      Exception
    • getToken_success_returnsNullWhenTokenNotFound

      @Test void getToken_success_returnsNullWhenTokenNotFound() throws Exception
      Throws:
      Exception
    • getToken_non200_throwsIOException_withStatusCode

      @Test void getToken_non200_throwsIOException_withStatusCode() throws Exception
      Throws:
      Exception
    • getToken_invalidUrl_throwsIllegalArgumentExceptionFromUriCreate

      @Test void getToken_invalidUrl_throwsIllegalArgumentExceptionFromUriCreate()