Skip to content

Commit 8842476

Browse files
mmerdesrtroilo
authored andcommitted
#470: cleanup naming and imports
1 parent c305419 commit 8842476

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

oshdb-util/src/test/java/org/heigit/ohsome/oshdb/util/celliterator/IterateByContributionTest.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import static org.junit.jupiter.api.Assertions.assertEquals;
44

55
import java.io.ObjectInputStream;
6-
import java.sql.SQLException;
76
import java.util.List;
87
import java.util.TreeSet;
98
import java.util.stream.Collectors;
@@ -15,7 +14,6 @@
1514
import org.heigit.ohsome.oshdb.util.celliterator.CellIterator.IterateAllEntry;
1615
import org.heigit.ohsome.oshdb.util.taginterpreter.DefaultTagInterpreter;
1716
import org.heigit.ohsome.oshdb.util.tagtranslator.JdbcTagTranslator;
18-
import org.heigit.ohsome.oshdb.util.tagtranslator.TagTranslator;
1917
import org.junit.jupiter.api.AfterAll;
2018
import org.junit.jupiter.api.BeforeAll;
2119
import org.junit.jupiter.api.Test;
@@ -30,7 +28,7 @@ class IterateByContributionTest {
3028
* Set up of test framework, loading H2 driver and connection via jdbc.
3129
*/
3230
@BeforeAll
33-
static void setUpClass() throws ClassNotFoundException, SQLException {
31+
static void setUpClass() {
3432
// connect to the "Big"DB
3533
source = JdbcConnectionPool.create(
3634
"jdbc:h2:../data/test-data;ACCESS_MODE_DATA=r",
@@ -53,7 +51,7 @@ void testIssue108() throws Exception {
5351
int countCreated = 0;
5452
int countOther = 0;
5553

56-
var tt = new JdbcTagTranslator(source);
54+
var tagTranslator = new JdbcTagTranslator(source);
5755
try (var conn = source.getConnection();
5856
var stmt = conn.createStatement();
5957
var oshCellsRawData = stmt.executeQuery("select data from " + TableNames.T_NODES)) {
@@ -70,7 +68,7 @@ void testIssue108() throws Exception {
7068
List<IterateAllEntry> result = (new CellIterator(
7169
timestamps,
7270
OSHDBBoundingBox.bboxWgs84Coordinates(8.0, 9.0, 49.0, 50.0),
73-
new DefaultTagInterpreter(tt),
71+
new DefaultTagInterpreter(tagTranslator),
7472
oshEntity -> oshEntity.getId() == 617308093,
7573
osmEntity -> true,
7674
false

0 commit comments

Comments
 (0)