-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Telemetry for new evaluation methods (#534)
- Loading branch information
Showing
7 changed files
with
230 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
src/test/java/io/split/android/client/SplitClientImplFlagSetsTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package io.split.android.client; | ||
|
||
import static org.mockito.Mockito.verify; | ||
|
||
import org.junit.Test; | ||
|
||
import java.util.Collections; | ||
import java.util.Map; | ||
|
||
public class SplitClientImplFlagSetsTest extends SplitClientImplBaseTest { | ||
|
||
@Test | ||
public void getTreatmentsByFlagSetDelegatesToTreatmentManager() { | ||
Map<String, Object> attributes = Collections.singletonMap("key", "value"); | ||
splitClient.getTreatmentsByFlagSet("set", attributes); | ||
|
||
verify(treatmentManager).getTreatmentsByFlagSet("set", attributes, false); | ||
} | ||
|
||
@Test | ||
public void getTreatmentsByFlagSetsDelegatesToTreatmentManager() { | ||
Map<String, Object> attributes = Collections.singletonMap("key", "value"); | ||
splitClient.getTreatmentsByFlagSets(Collections.singletonList("set"), attributes); | ||
|
||
verify(treatmentManager).getTreatmentsByFlagSets(Collections.singletonList("set"), attributes, false); | ||
} | ||
|
||
@Test | ||
public void getTreatmentsWithConfigByFlagSetDelegatesToTreatmentManager() { | ||
Map<String, Object> attributes = Collections.singletonMap("key", "value"); | ||
splitClient.getTreatmentsWithConfigByFlagSet("set", attributes); | ||
|
||
verify(treatmentManager).getTreatmentsWithConfigByFlagSet("set", attributes, false); | ||
} | ||
|
||
@Test | ||
public void getTreatmentsWithConfigByFlagSetsDelegatesToTreatmentManager() { | ||
Map<String, Object> attributes = Collections.singletonMap("key", "value"); | ||
splitClient.getTreatmentsWithConfigByFlagSets(Collections.singletonList("set"), attributes); | ||
|
||
verify(treatmentManager).getTreatmentsWithConfigByFlagSets(Collections.singletonList("set"), attributes, false); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters