Skip to content

Instantly share code, notes, and snippets.

@ferrarimarco
ferrarimarco / LatLongValidationTest.java
Last active October 28, 2023 14:25
Latitude/Longitude regex validation test. You need TestNG, Hamcrest and Lombok to run it.
import static org.hamcrest.Matchers.*;
import static org.hamcrest.MatcherAssert.*;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import lombok.extern.slf4j.Slf4j;
import org.testng.annotations.Test;