ConfigManager { public JSONArray getTriggerMessageHashes() { return mTriggerMessageHashes; } private  ConfigManager();  ConfigManager(Context context);  ConfigManager(Context context, MParticle.Environment environment, String apiKey, String apiSecret); static ConfigManager getInstance(Context context); JSONArray getLatestKitConfiguration(); UserStorage getUserStorage(); UserStorage getUserStorage(long mpId); static UserStorage getUserStorage(Context context); static UserStorage getUserStorage(Context context, long mpid); void deleteUserStorage(Context context, long mpid); void deleteUserStorage(long mpId); synchronized void updateConfig(JSONObject responseJSON); synchronized void updateConfig(JSONObject responseJSON, boolean newConfig); String getActiveModuleIds(); boolean getIncludeSessionHistory(); boolean getRestrictAAIDBasedOnLAT(); void delayedStart(); JSONArray getTriggerMessageMatches(); long getInfluenceOpenTimeoutMillis(); void enableUncaughtExceptionLogging(boolean userTriggered); void disableUncaughtExceptionLogging(boolean userTriggered); boolean getLogUnhandledExceptions(); void setLogUnhandledExceptions(boolean log); String getApiKey(); String getApiSecret(); long getUploadInterval(); static MParticle.Environment getEnvironment(); void setUploadInterval(int uploadInterval); int getSessionTimeout(); void setSessionTimeout(int sessionTimeout); boolean isPushEnabled(); String getPushSenderId(); @Nullable String getPushInstanceId(); PushRegistrationHelper.PushRegistration getPushRegistration(); void setPushRegistrationFetched(); boolean isPushRegistrationFetched(); @Nullable String getPushInstanceIdBackground(); void setPushSenderId(String senderId); void setPushInstanceId(@Nullable String token); void setPushRegistration(PushRegistrationHelper.PushRegistration pushRegistration); void setPushRegistrationInBackground(PushRegistrationHelper.PushRegistration pushRegistration); void clearPushRegistration(); void clearPushRegistrationBackground(); String getLicenseKey(); boolean isLicensingEnabled(); void setPushSoundEnabled(boolean pushSoundEnabled); void setPushVibrationEnabled(boolean pushVibrationEnabled); boolean isEnabled(); void setOptOut(boolean optOut); boolean getOptedOut(); boolean isAutoTrackingEnabled(); boolean isPushSoundEnabled(); boolean isPushVibrationEnabled(); void setPushNotificationIcon(int pushNotificationIcon); void setPushNotificationTitle(int pushNotificationTitle); void setDisplayPushNotifications(Boolean display); static Boolean isDisplayPushNotifications(Context context); static JSONArray getPushKeys(Context context); static int getPushTitle(Context context); static int getPushIcon(Context context); static int getBreadcrumbLimit(Context context); static int getBreadcrumbLimit(Context context, long mpId); static String getCurrentUserLtv(Context context); void setBreadcrumbLimit(int newLimit); void setBreadcrumbLimit(int newLimit, long mpId); static void setNeedsToMigrate(Context context, boolean needsToMigrate); synchronized JSONObject getProviderPersistence(); void setMpid(long newMpid, boolean isLoggedInUser); long getMpid(); long getMpid(boolean allowTemporary); static long getMpid(Context context); static long getMpid(Context context, boolean allowTemporary); boolean mpidExists(long mpid); Set<Long> getMpids(); static void setIdentityRequestInProgress(boolean inProgress); void mergeUserConfigs(long subjectMpId, long targetMpId); int getAudienceTimeout(); int getCurrentRampValue(); JSONArray getTriggerMessageHashes(); boolean shouldTrigger(BaseMPMessage message); int getUserBucket(); void setIntegrationAttributes(int integrationId, Map<String, String> newAttributes); Map<String, String> getIntegrationAttributes(int integrationId); JSONObject getIntegrationAttributes(); Map<MParticle.IdentityType, String> getUserIdentities(long mpId); JSONArray getUserIdentityJson(); @NonNull JSONArray getUserIdentityJson(long mpId); void saveUserIdentityJson(JSONArray userIdentities); void saveUserIdentityJson(JSONArray userIdentities, long mpId); String getDeviceApplicationStamp(); JSONObject getCookies(long mpId); String getIdentityApiContext(); void setIdentityApiContext(String context); String getPreviousAdId(); void setPreviousAdId(); int getIdentityConnectionTimeout(); int getConnectionTimeout(); void setIdentityConnectionTimeout(int connectionTimeout); static void addMpIdChangeListener(IdentityApi.MpIdChangeListener listener); ConsentState getConsentState(long mpid); void setConsentState(ConsentState state, long mpid); NetworkOptions getNetworkOptions(); synchronized void setNetworkOptions(NetworkOptions networkOptions); @NonNull String getWorkspaceToken(); int getAliasMaxWindow(); static final String CONFIG_JSON; static final String KEY_UNHANDLED_EXCEPTIONS; static final String KEY_PUSH_MESSAGES; static final String KEY_EMBEDDED_KITS; static final String KEY_AAID_LAT; static final String VALUE_APP_DEFINED; static final String VALUE_CUE_CATCH; static final String PREFERENCES_FILE; static final String WORKSPACE_TOKEN; static final int DEFAULT_CONNECTION_TIMEOUT_SECONDS; static final int MINIMUM_CONNECTION_TIMEOUT_SECONDS; static final int DEFAULT_SESSION_TIMEOUT_SECONDS; static final int DEFAULT_UPLOAD_INTERVAL; }
@Test public void testGetTriggerMessageHashes() throws Exception { JSONArray hashes = manager.getTriggerMessageHashes(); for (int i = 0; i < hashes.length(); i++) { int hash = hashes.getInt(i); assertTrue(hash == 1217787541 || hash == 2 || hash == 3); } }