@Test public void shouldReturnDefaultTurnRadius() throws Exception { assertThat(controller.getTurnRadius()).isEqualTo(DEFAULT_TURN_RADIUS); }
public int getTurnRadius() { switch (transitMode) { case WALKING: return walkingTurnRadius; case BIKING: return bikingTurnRadius; case DRIVING: return getTurnRadiusForCurrentDrivingSpeed(); default: return DEFAULT_TURN_RADIUS; } }
ZoomController { public int getTurnRadius() { switch (transitMode) { case WALKING: return walkingTurnRadius; case BIKING: return bikingTurnRadius; case DRIVING: return getTurnRadiusForCurrentDrivingSpeed(); default: return DEFAULT_TURN_RADIUS; } } }
ZoomController { public int getTurnRadius() { switch (transitMode) { case WALKING: return walkingTurnRadius; case BIKING: return bikingTurnRadius; case DRIVING: return getTurnRadiusForCurrentDrivingSpeed(); default: return DEFAULT_TURN_RADIUS; } }  }
ZoomController { public int getTurnRadius() { switch (transitMode) { case WALKING: return walkingTurnRadius; case BIKING: return bikingTurnRadius; case DRIVING: return getTurnRadiusForCurrentDrivingSpeed(); default: return DEFAULT_TURN_RADIUS; } }  int getZoom(); int getTurnRadius(); void setTransitMode(Router.Type transitMode); void setWalkingZoom(int walkingZoom); void setBikingZoom(int bikingZoom); void setDrivingZoom(int drivingZoom); void setDrivingZoom(int zoom, DrivingSpeed speed); void setWalkingTurnRadius(int meters); void setBikingTurnRadius(int meters); void setDrivingTurnRadius(int meters); void setDrivingTurnRadius(int meters, DrivingSpeed speed); void setAverageSpeed(float metersPerSecond); void setCurrentSpeed(float metersPerSecond); static float metersPerSecondToMilesPerHour(float metersPerSecond); static float milesPerHourToMetersPerSecond(float milesPerHour); }
ZoomController { public int getTurnRadius() { switch (transitMode) { case WALKING: return walkingTurnRadius; case BIKING: return bikingTurnRadius; case DRIVING: return getTurnRadiusForCurrentDrivingSpeed(); default: return DEFAULT_TURN_RADIUS; } }  int getZoom(); int getTurnRadius(); void setTransitMode(Router.Type transitMode); void setWalkingZoom(int walkingZoom); void setBikingZoom(int bikingZoom); void setDrivingZoom(int drivingZoom); void setDrivingZoom(int zoom, DrivingSpeed speed); void setWalkingTurnRadius(int meters); void setBikingTurnRadius(int meters); void setDrivingTurnRadius(int meters); void setDrivingTurnRadius(int meters, DrivingSpeed speed); void setAverageSpeed(float metersPerSecond); void setCurrentSpeed(float metersPerSecond); static float metersPerSecondToMilesPerHour(float metersPerSecond); static float milesPerHourToMetersPerSecond(float milesPerHour); static final int DEFAULT_ZOOM; static final int DEFAULT_ZOOM_WALKING; static final int DEFAULT_ZOOM_BIKING; static final int DEFAULT_ZOOM_DRIVING; static final int DEFAULT_TURN_RADIUS; static final int DEFAULT_TURN_RADIUS_WALKING; static final int DEFAULT_TURN_RADIUS_BIKING; static final int DEFAULT_TURN_RADIUS_DRIVING; }