Settings implements Parcelable { public void setLocalizedTexts(LocalizedTexts localizedTexts) { this.localizedTexts = localizedTexts; } Settings(Settings settings);  Settings(); private  Settings(Parcel in); void mergeWithSurveyServerSettings(Settings settings); boolean firstSurveyDelayPassed(long timeFrom); void setSurveyImmediately(boolean surveyImmediately); void setShowOptOut(boolean showOptOut); boolean isShowOptOut(); boolean isSurveyImmediately(); void setSkipFollowupScreenForPromoters(boolean skipFollowupScreenForPromoters); boolean shouldSkipFollowupScreenForPromoters(); void setSkipFeedbackScreen(boolean skipFeedbackScreen); boolean skipFeedbackScreen(); int getTimeDelayInMillis(); LocalizedTexts getLocalizedTexts(); String getSurveyQuestion(); String getAnchorLikely(); String getAnchorNotLikely(); String getBtnSubmit(); String getBtnDismiss(); String getBtnEditScore(); String getBtnOptOut(); String getFollowupQuestion(int score); String getFollowupPlaceholder(int score); String getCustomThankYouMessage(int score); String getFinalThankYou(int score); String getThankYouLinkText(int score); Uri getThankYouLinkUri(String email, int score, String comment); boolean isThankYouActionConfigured(String email, int score, String comment); String getSocialShareQuestion(); String getSocialShareDecline(); void setTimeDelay(int timeDelay); void setFirstSurveyDelay(long firstSurvey); Long getFirstSurveyDelay(); void setUserID(long userID); Long getUserID(); void setAccountID(long accountID); Long getAccountID(); void setLocalCustomMessage(WootricCustomMessage customMessage); WootricCustomMessage getLocalCustomMessage(); void setLocalizedTexts(LocalizedTexts localizedTexts); void setAdminPanelCustomMessage(WootricCustomMessage adminPanelCustomMessage); WootricCustomMessage getAdminPanelCustomMessage(); void setLocalCustomThankYou(WootricCustomThankYou localCustomThankYou); WootricCustomThankYou getLocalCustomThankYou(); void setAdminPanelCustomThankYou(WootricCustomThankYou adminPanelCustomThankYou); WootricCustomThankYou getAdminPanelCustomThankYou(); void setAdminPanelTimeDelay(int adminPanelTimeDelay); int getAdminPanelTimeDelay(); void setDailyResponseCap(int dailyResponseCap); void setRegisteredPercent(Integer registeredPercent); void setVisitorPercent(Integer visitorPercent); void setResurveyThrottle(Integer resurveyThrottle); void setDeclineResurveyThrottle(Integer declineResurveyThrottle); Integer getDailyResponseCap(); Integer getRegisteredPercent(); Integer getVisitorPercent(); Integer getResurveyThrottle(); Integer getDeclineResurveyThrottle(); String getLanguageCode(); void setLanguageCode(String languageCode); String getEventName(); void setEventName(String eventName); String getProductName(); void setProductName(String productName); String getRecommendTarget(); void setRecommendTarget(String recommendTarget); String getFacebookPageId(); void setFacebookPageId(String facebookPageId); String getTwitterPage(); boolean isTwitterEnabled(); boolean isFacebookEnabled(); void setTwitterPage(String twitterPage); String getSurveyType(); int getSurveyTypeScale(); void setSurveyType(String surveyType); void setCustomThankYou(WootricCustomThankYou customThankYou); void setCustomSurveyTypeScale(int customSurveyTypeScale); int getSurveyColor(); void setSurveyColor(int surveyColor); int getScoreColor(); void setScoreColor(int scoreColor); int getThankYouButtonBackgroundColor(); void setThankYouButtonBackgroundColor(int thankYouButtonBackgroundColor); int getSocialSharingColor(); void setSocialSharingColor(int socialSharingColor); String getAccountToken(); String getClientId(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); static Settings fromJson(JSONObject settingsObject); static final Creator<Settings> CREATOR; }
@Test public void setLocalizedTexts() throws Exception { Settings settings = new Settings(); Settings surveyServerSettings = new Settings(); LocalizedTexts localizedTexts = new LocalizedTexts(); surveyServerSettings.setLocalizedTexts(localizedTexts); settings.mergeWithSurveyServerSettings(surveyServerSettings); assertThat(settings.getLocalizedTexts()).isEqualTo(localizedTexts); }