Skip to content

Commit 847bcd0

Browse files
committed
update unit test name
1 parent 644c14f commit 847bcd0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

jts/src/test/java/com/baeldung/jts/JtsApplicationTests.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,28 @@
88

99
public class JtsApplicationTests {
1010
@Test
11-
public void givenPolygon2D_whenContainPoint_thenContainmentIsTrue() throws Exception {
11+
public void givenPolygon2D_whenContainPoint_thenContainmentIsTrueUnitTest() throws Exception {
1212
Geometry point = GeometryFactoryUtil.readWKT("POINT (10 20)");
1313
Geometry polygon = GeometryFactoryUtil.readWKT("POLYGON ((0 0, 0 40, 40 40, 40 0, 0 0))");
1414
Assert.assertTrue(JTSOperationUtils.isContainment(point, polygon));
1515
}
1616

1717
@Test
18-
public void givenRectangle1_whenIntersectWithRectangle2_thenIntersectionIsTrue() throws Exception {
18+
public void givenRectangle1_whenIntersectWithRectangle2_thenIntersectionIsTrueUnitTest() throws Exception {
1919
Geometry rectangle1 = GeometryFactoryUtil.readWKT("POLYGON ((10 10, 10 30, 30 30, 30 10, 10 10))");
2020
Geometry rectangle2 = GeometryFactoryUtil.readWKT("POLYGON ((20 20, 20 40, 40 40, 40 20, 20 20))");
2121
Assert.assertTrue(JTSOperationUtils.checkIntersect(rectangle1, rectangle2));
2222
}
2323

2424
@Test
25-
public void givenPoint_whenAddedBuffer_thenPointIsInsideTheBuffer() throws Exception {
25+
public void givenPoint_whenAddedBuffer_thenPointIsInsideTheBufferUnitTest() throws Exception {
2626
Geometry point = GeometryFactoryUtil.readWKT("POINT (10 10)");
2727
Geometry bufferArea = JTSOperationUtils.getBuffer(point, 5);
2828
Assert.assertTrue(JTSOperationUtils.isContainment(point, bufferArea));
2929
}
3030

3131
@Test
32-
public void givenTwoPoints_whenGetDistanceBetween_thenGetTheDistance() throws Exception {
32+
public void givenTwoPoints_whenGetDistanceBetween_thenGetTheDistanceUnitTest() throws Exception {
3333
Geometry point1 = GeometryFactoryUtil.readWKT("POINT (10 10)");
3434
Geometry point2 = GeometryFactoryUtil.readWKT("POINT (13 14)");
3535
double distance = JTSOperationUtils.getDistance(point1, point2);
@@ -39,7 +39,7 @@ public void givenTwoPoints_whenGetDistanceBetween_thenGetTheDistance() throws Ex
3939
}
4040

4141
@Test
42-
public void givenTwoGeometries_whenGetUnionOfBoth_thenGetTheUnion() throws Exception {
42+
public void givenTwoGeometries_whenGetUnionOfBoth_thenGetTheUnionUnitTest() throws Exception {
4343
Geometry geometry1 = GeometryFactoryUtil.readWKT("POLYGON ((0 0, 0 10, 10 10, 10 0, 0 0))");
4444
Geometry geometry2 = GeometryFactoryUtil.readWKT("POLYGON ((10 0, 10 10, 20 10, 20 0, 10 0))");
4545

@@ -49,7 +49,7 @@ public void givenTwoGeometries_whenGetUnionOfBoth_thenGetTheUnion() throws Excep
4949
}
5050

5151
@Test
52-
public void givenBaseRectangle_whenAnotherRectangleOverlapping_GetTheDifferenceRectangle() throws Exception {
52+
public void givenBaseRectangle_whenAnotherRectangleOverlapping_GetTheDifferenceRectangleUnitTest() throws Exception {
5353
Geometry base = GeometryFactoryUtil.readWKT("POLYGON ((0 0, 0 10, 10 10, 10 0, 0 0))");
5454
Geometry cut = GeometryFactoryUtil.readWKT("POLYGON ((5 0, 5 10, 10 10, 10 0, 5 0))");
5555

@@ -59,7 +59,7 @@ public void givenBaseRectangle_whenAnotherRectangleOverlapping_GetTheDifferenceR
5959
}
6060

6161
@Test
62-
public void givenInvalidGeometryValue_whenValidated_thenGiveFixedResult() throws Exception {
62+
public void givenInvalidGeometryValue_whenValidated_thenGiveFixedResultUnitTest() throws Exception {
6363
Geometry invalidGeo = GeometryFactoryUtil.readWKT("POLYGON ((0 0, 5 5, 5 0, 0 5, 0 0))");
6464
Geometry result = JTSOperationUtils.validateAndRepair(invalidGeo);
6565

0 commit comments

Comments
 (0)