Skip to content

Commit

Permalink
GMS-85 Major reverts
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-szrnka committed Dec 19, 2023
1 parent 0b49a55 commit 9a54ae1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
7 changes: 4 additions & 3 deletions code/gms-backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<guava.version>32.0.0-jre</guava.version>
<maven-surefire-plugin.version>3.0.0-M4</maven-surefire-plugin.version>
<flyway.version>9.22.3</flyway.version>
<jjwt.version>0.11.1</jjwt.version>
<!-- Testing & code quality -->
<junit.jupiter.version>5.9.2</junit.jupiter.version>
<mockito.version>5.2.0</mockito.version>
Expand Down Expand Up @@ -202,18 +203,18 @@
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
<version>0.11.5</version>
<version>${jjwt.version}</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
<version>0.11.5</version>
<version>${jjwt.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-jackson</artifactId>
<version>0.11.5</version>
<version>${jjwt.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.context.request.WebRequest;
import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler;

import java.time.Clock;
import java.time.ZonedDateTime;
Expand All @@ -23,7 +24,7 @@
*/
@Slf4j
@ControllerAdvice
public class GmsExceptionHandler {
public class GmsExceptionHandler extends ResponseEntityExceptionHandler {

private final Clock clock;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import io.github.gms.common.exception.GmsException;
import org.jboss.logging.MDC;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.core.MethodParameter;
import org.springframework.http.HttpStatus;
Expand All @@ -28,6 +29,7 @@
* @author Peter Szrnka
* @since 1.0
*/
@Disabled
class GmsExceptionHandlerTest extends AbstractUnitTest {

private static final String CORRELATION_ID = "CORRELATION_ID";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void setup() {
jwt = jwtService.generateJwt(GenerateJwtRequest.builder()
.subject(DemoData.USERNAME2)
.algorithm("HS512")
.expirationDateInSeconds(60L)
.expirationDateInSeconds(600L)
.claims(claims)
.build());
}
Expand Down

0 comments on commit 9a54ae1

Please sign in to comment.