Skip to content

Instantly share code, notes, and snippets.

View pawellabaj's full-sized avatar

Paweł Łabaj pawellabaj

View GitHub Profile
@pawellabaj
pawellabaj / OrderedSetTest.java
Last active June 21, 2023 12:14
Without looking into a documentation, will the test pass or fail?
import org.junit.jupiter.api.Test;
import java.util.LinkedHashSet;
import java.util.Set;
import static org.assertj.core.api.Assertions.assertThat;
class OrderSetTest {
@Test
void orderInSetShouldNotBeLost() {
@pawellabaj
pawellabaj / Full.java
Last active July 20, 2023 19:11
Example of generated record with all features provided by AutoRecord
import io.soabase.recordbuilder.core.RecordBuilder;
import pl.com.labaj.autorecord.AutoRecord;
import pl.com.labaj.autorecord.Ignored;
import pl.com.labaj.autorecord.Memoized;
import pl.com.labaj.autorecord.extension.compact.LoggingExtension;
import javax.annotation.Nullable;
import java.util.List;
import java.util.Map;
import java.util.function.Supplier;