@Test public void getSenderId() throws Exception { when(mAppConfig.getString(GcmController.PREF_SENDER_ID)) .thenReturn(TEST_ID); String senderId = mController.getSenderId(); assertEquals(senderId, TEST_ID); }
public String getSenderId() { return mAppConfig.getString(PREF_SENDER_ID); }
GcmController { public String getSenderId() { return mAppConfig.getString(PREF_SENDER_ID); } }
GcmController { public String getSenderId() { return mAppConfig.getString(PREF_SENDER_ID); } GcmController(AppConfig appConfig, SharedPreferences sharedPreferences); }
GcmController { public String getSenderId() { return mAppConfig.getString(PREF_SENDER_ID); } GcmController(AppConfig appConfig, SharedPreferences sharedPreferences); String getSenderId(); String getRegistrationId(); void storeRegistrationId(String id); }
GcmController { public String getSenderId() { return mAppConfig.getString(PREF_SENDER_ID); } GcmController(AppConfig appConfig, SharedPreferences sharedPreferences); String getSenderId(); String getRegistrationId(); void storeRegistrationId(String id); static final String OS_ANDROID; static final String PROPERTY_GCM_REG_ID; static final String PREF_SENDER_ID; }