-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding toString method and the related test
- Loading branch information
Matt
committed
Sep 9, 2023
1 parent
2b294b3
commit 38d07b9
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/test/java/io/github/makbn/jlmap/model/JLBoundsTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apackage io.github.makbn.jlmap.model; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
class JLBoundsTest { | ||
|
||
@Test | ||
void testToString() { | ||
JLBounds bounds = JLBounds.builder() | ||
.northEast(JLLatLng.builder().lat(10).lng(10).build()) | ||
.southWest(JLLatLng.builder().lat(40).lng(60).build()) | ||
.build(); | ||
|
||
assertEquals("[[10.000000, 10.000000], [40.000000, 60.000000]]", bounds.toString()); | ||
} | ||
} |