diff --git a/optics/src/test/java/com/github/tonivade/purefun/optics/IsoTest.java b/optics/src/test/java/com/github/tonivade/purefun/optics/IsoTest.java index 45214d791..040c722d0 100644 --- a/optics/src/test/java/com/github/tonivade/purefun/optics/IsoTest.java +++ b/optics/src/test/java/com/github/tonivade/purefun/optics/IsoTest.java @@ -6,7 +6,6 @@ import static org.junit.jupiter.api.Assertions.assertAll; import static org.junit.jupiter.api.Assertions.assertEquals; -import java.awt.Point; import org.junit.jupiter.api.Test; import com.github.tonivade.purefun.Kind; import com.github.tonivade.purefun.core.Tuple; @@ -16,6 +15,8 @@ public class IsoTest { + record Point(int x, int y) {} + private final Iso> pointToTuple = Iso.of(p -> Tuple.of(p.x, p.y), t -> new Point(t.get1(), t.get2())); private final Iso, Point> tupleToPoint = pointToTuple.reverse();