Skip to content

Commit

Permalink
refactor string conversion, remove unnecessary test dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
philipptrenz committed Dec 19, 2023
1 parent 788df87 commit d9a649f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
7 changes: 0 additions & 7 deletions ext/scimv2/logic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,11 @@ under the License.
<artifactId>antlr4-runtime</artifactId>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -819,11 +819,7 @@ public Pair<UserUR, StatusR> toUserUpdate(final UserTO before, final SCIMPatchOp
// Workaround for Microsoft Entra being not SCIM compliant on PATCH requests
if (op.getValue().get(0) instanceof String) {
String a = (String) op.getValue().get(0);
if (a.equalsIgnoreCase("true")) {
op.setValue(List.of(true));
} else if (a.equalsIgnoreCase("false")) {
op.setValue(List.of(false));
}
op.setValue(List.of(BooleanUtils.toBoolean(a)));
}

statusR = new StatusR.Builder(
Expand Down

0 comments on commit d9a649f

Please sign in to comment.