Skip to content

Instantly share code, notes, and snippets.

View sondemar's full-sized avatar
🎯
Focusing

Mariusz Sondecki sondemar

🎯
Focusing
View GitHub Profile
@sondemar
sondemar / NativeImageResourceProviderTests.java
Created May 13, 2026 11:58
Spring Boot NativeImageResourceProvider Flyway subdirectory path regression test
package org.springframework.boot.flyway.autoconfigure;
import java.io.Reader;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
@sondemar
sondemar / DbTestBase.java
Created July 13, 2018 12:55 — forked from asv/DbTestBase.java
dbunit (springtestdbunit) postgresql truncate + reset sequences
package foo;
import com.github.springtestdbunit.TransactionDbUnitTestExecutionListener;
import com.github.springtestdbunit.annotation.DbUnitConfiguration;
import org.junit.runner.RunWith;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.TestExecutionListeners;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;