urbanairship-core/src/test/java/com/urbanairship/location/LocationServiceTest.java
private void sendIntent(String action, Bundle extras) {
        Intent intent = new Intent();
        intent.setAction(action);
        if (extras != null) {
            intent.putExtras(extras);
        }
        locationService.onHandleIntent(intent);
    }
/**
     * Helper method to simulate sending an intent to the location service.
     *
     * @param action The action to send.
     * @param extras Optional extras.
     */
Helper method to simulate sending an intent to the location service.
@param action The action to send.
@param extras Optional extras.
Helper method to simulate sending an intent to the location service . @param action The action to send . @param extras Optional extras .
private void sendIntent(String action, Bundle extras) {
        Intent intent = new Intent();
        intent.setAction(action);
        if (extras != null) {
            intent.putExtras(extras);
        }
        locationService.onHandleIntent(intent);
    }
private void sendIntent ( String action , Bundle extras ) { Intent intent = new Intent ( ) ; intent . setAction ( action ) ; if ( extras != null ) { intent . putExtras ( extras ) ; } locationService . onHandleIntent ( intent ) ; }
Helper method to simulate sending an intent to the location service.
Helper method to simulate sending an intent to the location service .