-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix error message when changeset filter is used in snapshot query (#294)
* fix error message when changeset filter is used in snapshot query closes #289 * add test
- Loading branch information
Showing
7 changed files
with
105 additions
and
0 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
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
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
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
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
56 changes: 56 additions & 0 deletions
56
src/test/java/org/heigit/ohsome/ohsomeapi/inputprocessing/DummyTagTranslator.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,56 @@ | ||
package org.heigit.ohsome.ohsomeapi.inputprocessing; | ||
|
||
import java.util.Collection; | ||
import java.util.Map; | ||
import java.util.Optional; | ||
import java.util.Set; | ||
import org.heigit.ohsome.oshdb.OSHDBRole; | ||
import org.heigit.ohsome.oshdb.OSHDBTag; | ||
import org.heigit.ohsome.oshdb.util.OSHDBTagKey; | ||
import org.heigit.ohsome.oshdb.util.tagtranslator.OSMRole; | ||
import org.heigit.ohsome.oshdb.util.tagtranslator.OSMTag; | ||
import org.heigit.ohsome.oshdb.util.tagtranslator.OSMTagKey; | ||
import org.heigit.ohsome.oshdb.util.tagtranslator.TagTranslator; | ||
|
||
public class DummyTagTranslator implements TagTranslator { | ||
|
||
@Override | ||
public Optional<OSHDBTagKey> getOSHDBTagKeyOf(OSMTagKey osmTagKey) { | ||
return Optional.empty(); | ||
} | ||
|
||
@Override | ||
public Optional<OSHDBTag> getOSHDBTagOf(OSMTag osmTag) { | ||
return Optional.empty(); | ||
} | ||
|
||
@Override | ||
public Map<OSMTag, OSHDBTag> getOSHDBTagOf(Collection<OSMTag> collection) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public Optional<OSHDBRole> getOSHDBRoleOf(OSMRole osmRole) { | ||
return Optional.empty(); | ||
} | ||
|
||
@Override | ||
public Map<OSMRole, OSHDBRole> getOSHDBRoleOf(Collection<OSMRole> collection) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public OSMTag lookupTag(OSHDBTag oshdbTag) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public Map<OSHDBTag, OSMTag> lookupTag(Set<? extends OSHDBTag> set) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public OSMRole lookupRole(OSHDBRole oshdbRole) { | ||
return null; | ||
} | ||
} |
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