Package io.split.client.testing
Class SplitClientForTest
- java.lang.Object
-
- io.split.client.testing.SplitClientForTest
-
- All Implemented Interfaces:
io.split.client.SplitClient
public class SplitClientForTest extends Object implements io.split.client.SplitClient
-
-
Constructor Summary
Constructors Constructor Description SplitClientForTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidblockUntilReady()voidclearTreatments()voiddestroy()StringgetTreatment(io.split.client.api.Key key, String split, Map<String,Object> attributes)StringgetTreatment(String key, String split)StringgetTreatment(String key, String split, Map<String,Object> attributes)io.split.client.api.SplitResultgetTreatmentWithConfig(io.split.client.api.Key key, String split, Map<String,Object> attributes)io.split.client.api.SplitResultgetTreatmentWithConfig(String key, String split)io.split.client.api.SplitResultgetTreatmentWithConfig(String key, String split, Map<String,Object> attributes)voidregisterTreatment(String feature, String treatment)voidregisterTreatments(Map<String,String> treatments)Map<String,String>tests()booleantrack(String key, String trafficType, String eventType)booleantrack(String key, String trafficType, String eventType, double value)booleantrack(String key, String trafficType, String eventType, double value, Map<String,Object> properties)booleantrack(String key, String trafficType, String eventType, Map<String,Object> properties)
-
-
-
Method Detail
-
clearTreatments
public void clearTreatments()
-
getTreatment
public String getTreatment(String key, String split)
- Specified by:
getTreatmentin interfaceio.split.client.SplitClient
-
getTreatment
public String getTreatment(String key, String split, Map<String,Object> attributes)
- Specified by:
getTreatmentin interfaceio.split.client.SplitClient
-
getTreatment
public String getTreatment(io.split.client.api.Key key, String split, Map<String,Object> attributes)
- Specified by:
getTreatmentin interfaceio.split.client.SplitClient
-
getTreatmentWithConfig
public io.split.client.api.SplitResult getTreatmentWithConfig(String key, String split)
- Specified by:
getTreatmentWithConfigin interfaceio.split.client.SplitClient
-
getTreatmentWithConfig
public io.split.client.api.SplitResult getTreatmentWithConfig(String key, String split, Map<String,Object> attributes)
- Specified by:
getTreatmentWithConfigin interfaceio.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:
getTreatmentWithConfigin interfaceio.split.client.SplitClient
-
destroy
public void destroy()
- Specified by:
destroyin interfaceio.split.client.SplitClient
-
track
public boolean track(String key, String trafficType, String eventType)
- Specified by:
trackin interfaceio.split.client.SplitClient
-
track
public boolean track(String key, String trafficType, String eventType, double value)
- Specified by:
trackin interfaceio.split.client.SplitClient
-
track
public boolean track(String key, String trafficType, String eventType, Map<String,Object> properties)
- Specified by:
trackin interfaceio.split.client.SplitClient
-
track
public boolean track(String key, String trafficType, String eventType, double value, Map<String,Object> properties)
- Specified by:
trackin interfaceio.split.client.SplitClient
-
blockUntilReady
public void blockUntilReady() throws TimeoutException, InterruptedException- Specified by:
blockUntilReadyin interfaceio.split.client.SplitClient- Throws:
TimeoutExceptionInterruptedException
-
-