Skip to content

Instantly share code, notes, and snippets.

@ttddyy
ttddyy / TransactionTest.java
Created December 22, 2020 19:02
Class level rollback TestExecutionListener
package com.example;
import javax.sql.DataSource;
import com.example.TransactionTest.MyTestExecutionListener;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.MethodOrderer.OrderAnnotation;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
@ttddyy
ttddyy / AsyncResourceRetriever.java
Last active February 22, 2024 22:14
Async JWKS retriever
/*
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software