Skip to content

Commit 0df9136

Browse files
committed
2 parents 1cfb854 + 43a568e commit 0df9136

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

.idea/.gitignore

-3
This file was deleted.

components/org.wso2.carbon.identity.authz.spicedb/pom.xml

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717
~
1818
-->
1919

20-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2221
<modelVersion>4.0.0</modelVersion>
2322
<parent>
2423
<groupId>org.wso2.carbon.identity.authz.spicedb</groupId>
2524
<artifactId>identity-authz-spicedb</artifactId>
26-
<version>0.1.0-SNAPSHOT</version>
25+
<version>0.1.1-SNAPSHOT</version>
2726
<relativePath>../../pom.xml</relativePath>
2827
</parent>
2928
<packaging>bundle</packaging>

components/org.wso2.carbon.identity.authz.spicedb/src/test/java/org/wso2/carbon/identity/authz/spicedb/handler/spicedb/SpicedbPermissionRequestServiceTest.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public void tearDown() {
9999
service = null;
100100
accessEvaluationRequest = null;
101101
bulkAccessEvaluationRequest = null;
102-
103102
}
104103

105104
@Test
@@ -128,7 +127,6 @@ public void testEvaluateForSuccessfulResponse() throws Exception {
128127
StatusLine statusLine = mock(StatusLine.class);
129128
when(mockedResponse.getStatusLine()).thenReturn(statusLine);
130129
when(statusLine.getStatusCode()).thenReturn(HttpStatus.SC_OK);
131-
132130
httpHandlerMock.when(() -> HttpHandler.sendPOSTRequest(
133131
SpiceDbApiConstants.PERMISSION_CHECK, REQUEST_BODY))
134132
.thenReturn(mockedResponse);
@@ -218,6 +216,7 @@ public void testEvaluateForUnknownErrorResponse() {
218216

219217
@Test
220218
public void testEvaluateForIOException() {
219+
221220
try (MockedStatic<HttpHandler> httpHandlerMock = Mockito.mockStatic(HttpHandler.class);
222221
MockedStatic<JsonUtil> jsonUtilMock = Mockito.mockStatic(JsonUtil.class)) {
223222

@@ -238,6 +237,7 @@ public void testEvaluateForIOException() {
238237

239238
@Test
240239
public void testEvaluateForURISyntaxException() {
240+
241241
try (MockedStatic<HttpHandler> httpHandlerMock = Mockito.mockStatic(HttpHandler.class);
242242
MockedStatic<JsonUtil> jsonUtilMock = Mockito.mockStatic(JsonUtil.class)) {
243243

@@ -322,7 +322,6 @@ public void testBulkEvaluateForErrorResponse() {
322322
StatusLine statusLine = mock(StatusLine.class);
323323
when(mockedResponse.getStatusLine()).thenReturn(statusLine);
324324
when(statusLine.getStatusCode()).thenReturn(HttpStatus.SC_BAD_REQUEST);
325-
326325
httpHandlerMock.when(() -> HttpHandler.sendPOSTRequest(
327326
SpiceDbApiConstants.PERMISSIONS_BULKCHECK, REQUEST_BODY))
328327
.thenReturn(mockedResponse);

pom.xml

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
~ under the License.
1818
-->
1919

20-
<project xmlns="http://maven.apache.org/POM/4.0.0"
21-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2321
<modelVersion>4.0.0</modelVersion>
2422

2523
<parent>
@@ -30,7 +28,7 @@
3028

3129
<groupId>org.wso2.carbon.identity.authz.spicedb</groupId>
3230
<artifactId>identity-authz-spicedb</artifactId>
33-
<version>0.1.0-SNAPSHOT</version>
31+
<version>0.1.1-SNAPSHOT</version>
3432
<packaging>pom</packaging>
3533

3634
<scm>

0 commit comments

Comments
 (0)