Skip to content

Commit

Permalink
update to junit5
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Oct 20, 2022
1 parent 456575f commit 86c1b5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void testGeometryFilterLength() {
}

@Test
public void testGeometryFilterPerimeter() {
void testGeometryFilterPerimeter() {
FilterExpression expression = parser.parse("perimeter:(4..5)");
OSMEntity entity = createTestOSMEntityWay(new long[] {1, 2, 3, 4, 1});
assertFalse(expression.applyOSMGeometry(entity,
Expand All @@ -196,7 +196,7 @@ public void testGeometryFilterPerimeter() {
}

@Test
public void testGeometryFilterVertices() {
void testGeometryFilterVertices() {
FilterExpression expression = parser.parse("geometry.vertices:(11..13)");
// point
assertFalse(expression.applyOSMGeometry(
Expand Down Expand Up @@ -270,7 +270,7 @@ public void testGeometryFilterVertices() {
}

@Test
public void testGeometryFilterOuters() {
void testGeometryFilterOuters() {
FilterExpression expression = parser.parse("geometry.outers:1");
OSMEntity entity = createTestOSMEntityRelation("type", "multipolygon");
assertFalse(expression.applyOSMGeometry(entity, gf.createMultiPolygon(new Polygon[] {
Expand All @@ -292,7 +292,7 @@ public void testGeometryFilterOuters() {
}

@Test
public void testGeometryFilterInners() {
void testGeometryFilterInners() {
FilterExpression expression = parser.parse("geometry.inners:0");
OSMEntity entity = createTestOSMEntityRelation("type", "multipolygon");
assertTrue(expression.applyOSMGeometry(entity,
Expand Down Expand Up @@ -344,7 +344,7 @@ public void testGeometryFilterInners() {
+ "1.0000003577924967 0))";

@Test
public void testGeometryFilterRoundness() throws ParseException {
void testGeometryFilterRoundness() throws ParseException {
FilterExpression expression = parser.parse("geometry.roundness:(0.8..)");
OSMEntity entity = createTestOSMEntityWay(new long[] {});
assertFalse(expression.applyOSMGeometry(entity,
Expand All @@ -355,7 +355,7 @@ public void testGeometryFilterRoundness() throws ParseException {
}

@Test
public void testGeometryFilterSqareness() throws ParseException {
void testGeometryFilterSqareness() throws ParseException {
FilterExpression expression = parser.parse("geometry.squareness:(0.8..)");
OSMEntity entity = createTestOSMEntityWay(new long[] {});
assertTrue(expression.applyOSMGeometry(entity,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.heigit.ohsome.oshdb.util.geometry;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotEquals;

import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -279,7 +280,7 @@ void testLengthRealFeatures() {
}

@Test
public void testRectilinearity() throws ParseException {
void testRectilinearity() throws ParseException {
final double L = 1E-4;
final double D = 10;
// square
Expand Down

0 comments on commit 86c1b5a

Please sign in to comment.