StopTimesFieldSetMapper implements GtfsFiledSetMapper<StopTime> { @Override public StopTime mapFieldSet(FieldSet fieldSet) throws BindException { StopTime result = new StopTime(); result.setTripId(fieldSet.readString("trip_id")); result.setArrivalTime(GtfsFiledSetMapper.readTime(fieldSet, "arrival_time")); result.setDepartureTime(GtfsFiledSetMapper.readTime(fieldSet, "departure_time")); result.setStopId(fieldSet.readString("stop_id")); result.setStopSequence(fieldSet.readInt("stop_sequence")); return result; }  @Override StopTime mapFieldSet(FieldSet fieldSet);  }
@Test public void testMapFieldSet() throws Exception { expect(fieldSetMock.readString("trip_id")).andReturn("IC466"); expect(fieldSetMock.readString("arrival_time")).andReturn("05:36:00"); expect(fieldSetMock.readString("departure_time")).andReturn("25:36:00"); expect(fieldSetMock.readString("stop_id")).andReturn("stops:008841673:0"); expect(fieldSetMock.readInt("stop_sequence")).andReturn(1); replayAll(); StopTime actual = mapper.mapFieldSet(fieldSetMock); Assert.assertNotNull(actual); verifyAll(); }