test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/ShpReaderTest.java
@Test
    public void testTicket12843() throws Exception {
        File file = new File(TestUtils.getRegressionDataFile(12843, "test.shp"));
        try (InputStream is = new FileInputStream(file)) {
            Collection<Way> ways = ShpReader.parseDataSet(is, file, null, null).getWays();
            assertFalse(ways.isEmpty());
            for (Way way : ways) {
                assertEquals("Test", way.get("name"));
            }
        }
    }
/**
     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/12843">#12843</a>
     * @throws Exception if an error occurs during reading
     */
Non-regression test for ticket #12843
@throws Exception if an error occurs during reading
Non - regression test for ticket #12843 @throws Exception if an error occurs during reading
@Test
    public void testTicket12843() throws Exception {
        File file = new File(TestUtils.getRegressionDataFile(12843, "test.shp"));
        try (InputStream is = new FileInputStream(file)) {
            Collection<Way> ways = ShpReader.parseDataSet(is, file, null, null).getWays();
            assertFalse(ways.isEmpty());
            for (Way way : ways) {
                assertEquals("Test", way.get("name"));
            }
        }
    }
@ Test public void testTicket12843 ( ) throws Exception { File file = new File ( TestUtils . getRegressionDataFile ( 12843 , "test.shp" ) ) ; try ( InputStream is = new FileInputStream ( file ) ) { Collection < Way > ways = ShpReader . parseDataSet ( is , file , null , null ) . getWays ( ) ; assertFalse ( ways . isEmpty ( ) ) ; for ( Way way : ways ) { assertEquals ( "Test" , way . get ( "name" ) ) ; } } }
Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/12843">#12843</a>
 @throws Exception if an error occurs during reading
Non - regression test for ticket <a href = " https : // josm . openstreetmap . de / ticket / 12843 " > #12843< / a > @throws Exception if an error occurs during reading