Class SearchQuestionTestHelper


  • public class SearchQuestionTestHelper
    extends Object
    • Constructor Detail

      • SearchQuestionTestHelper

        public SearchQuestionTestHelper()
    • Method Detail

      • setCurrentProfileConfig

        public static void setCurrentProfileConfig​(Map<String,​String> profileConfig,
                                                   com.funnelback.publicui.search.model.transaction.SearchQuestion question)
        Sets the map as the profile config options to use on the given search question. The map is not copied so further changes to the map will be reflected in the SearchQuestion. Example: SearchTransaction st = new SearchTransaction(); Map profileOptions = new HashMap<>(); SearchQuestionProfileConfigurationHelper.setProfileConfigOptions(profileOptions, st.getQuestion()); profileOptions.put("foo", "bar"); // a will be set to "bar". String a = st.getQuestion().getCurrentProfileConfig().get("foo");
        Parameters:
        profileConfig - the profile config options.
        question - the SearchQuestion which will have its SearchQuestion.getCurrentProfileConfig() return a config which uses the given map.
      • setProfileConfigSetting

        public static void setProfileConfigSetting​(com.funnelback.publicui.search.model.transaction.SearchQuestion question,
                                                   String key,
                                                   String value)
        Sets a profile config setting on the search question.
        Parameters:
        question -
        key -
        value -