Class SplitClientForTest

  • All Implemented Interfaces:
    io.split.client.SplitClient

    public class SplitClientForTest
    extends Object
    implements io.split.client.SplitClient
    • Constructor Detail

      • SplitClientForTest

        public SplitClientForTest()
    • Method Detail

      • clearTreatments

        public void clearTreatments()
      • registerTreatments

        public void registerTreatments​(Map<String,​String> treatments)
      • registerTreatment

        public void registerTreatment​(String feature,
                                      String treatment)
      • getTreatment

        public String getTreatment​(String key,
                                   String split)
        Specified by:
        getTreatment in interface io.split.client.SplitClient
      • getTreatment

        public String getTreatment​(String key,
                                   String split,
                                   Map<String,​Object> attributes)
        Specified by:
        getTreatment in interface io.split.client.SplitClient
      • getTreatment

        public String getTreatment​(io.split.client.api.Key key,
                                   String split,
                                   Map<String,​Object> attributes)
        Specified by:
        getTreatment in interface io.split.client.SplitClient
      • getTreatmentWithConfig

        public io.split.client.api.SplitResult getTreatmentWithConfig​(String key,
                                                                      String split)
        Specified by:
        getTreatmentWithConfig in interface io.split.client.SplitClient
      • getTreatmentWithConfig

        public io.split.client.api.SplitResult getTreatmentWithConfig​(String key,
                                                                      String split,
                                                                      Map<String,​Object> attributes)
        Specified by:
        getTreatmentWithConfig in interface io.split.client.SplitClient
      • getTreatmentWithConfig

        public io.split.client.api.SplitResult getTreatmentWithConfig​(io.split.client.api.Key key,
                                                                      String split,
                                                                      Map<String,​Object> attributes)
        Specified by:
        getTreatmentWithConfig in interface io.split.client.SplitClient
      • destroy

        public void destroy()
        Specified by:
        destroy in interface io.split.client.SplitClient
      • track

        public boolean track​(String key,
                             String trafficType,
                             String eventType)
        Specified by:
        track in interface io.split.client.SplitClient
      • track

        public boolean track​(String key,
                             String trafficType,
                             String eventType,
                             double value)
        Specified by:
        track in interface io.split.client.SplitClient
      • track

        public boolean track​(String key,
                             String trafficType,
                             String eventType,
                             Map<String,​Object> properties)
        Specified by:
        track in interface io.split.client.SplitClient
      • track

        public boolean track​(String key,
                             String trafficType,
                             String eventType,
                             double value,
                             Map<String,​Object> properties)
        Specified by:
        track in interface io.split.client.SplitClient