Skip to content

Commit

Permalink
Update instructions on running NLTMAuthentication tests in JDK 11.
Browse files Browse the repository at this point in the history
  • Loading branch information
yogyagamage committed Mar 3, 2023
1 parent 267297a commit 3363c84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ If you want to build **identity-inbound-auth-oauth** from the source code:
1. Install Java 11 (or Java 17)
2. Install Apache Maven 3.x.x (https://maven.apache.org/download.cgi#)
3. Get a clone or download the source from this repository (https://github.com/wso2-extensions/identity-inbound-auth-oauth)
4. Run the Maven command ``mvn clean install`` from the ``identity-inbound-auth-oauth`` directory.
4. Run the Maven command ``mvn clean install`` from the ``identity-inbound-auth-oauth`` directory.

### ℹ️ Important note for Mac (with Apple Silicon) users<br>
>
> There are JDKs that target different types of architectures available to download for macOS. The test class `NTLMAuthenticationGrantHandlerTest` (in *components/org.wso2.carbon.identity.oauth/src/test/java/org/wso2/carbon/identity/oauth2/token/handlers/grant/iwa/ntlm/NTLMAuthenticationGrantHandlerTest.java*) will throw an UnsatisfiedLinkError if the installed JDK in your machine targets the aarch64 (ARM) architecture. Therefore, if you want to run the test class `NTLMAuthenticationGrantHandlerTest` please make sure that a JDK that targets x64 architecture is installed in your machine.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
NTLMAuthenticationGrantHandler.class })

@PowerMockIgnore({ "com.google.common.cache.*" })
//to run this test class you need to ensure that a JDK that targets x64 architecture is installed
//JDK targets aarch64 (ARM), the architecture used by an M1 Mac will throw an UnsatisfiedLinkError
/* To run this test class you need to ensure that a JDK that targets x64 architecture is installed.
If the installed JDK targets the aarch64 (ARM) architecture, the test will fail with an UnsatisfiedLinkError. */
public class NTLMAuthenticationGrantHandlerTest extends PowerMockIdentityBaseTest {

private static final String SECURITY_PACKAGE = "Negotiate";
Expand Down

0 comments on commit 3363c84

Please sign in to comment.