File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
main/java/io/split/client/api
test/java/io/split/client Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,15 @@ public class SplitView {
2424 public List <String > treatments ;
2525 public long changeNumber ;
2626 public Map <String , String > configs ;
27+ public String defaultTreatment ;
2728
2829 public static SplitView fromParsedSplit (ParsedSplit parsedSplit ) {
2930 SplitView splitView = new SplitView ();
3031 splitView .name = parsedSplit .feature ();
3132 splitView .trafficType = parsedSplit .trafficTypeName ();
3233 splitView .killed = parsedSplit .killed ();
3334 splitView .changeNumber = parsedSplit .changeNumber ();
35+ splitView .defaultTreatment = parsedSplit .defaultTreatment ();
3436
3537 Set <String > treatments = new HashSet <String >();
3638 for (ParsedCondition condition : parsedSplit .parsedConditions ()) {
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ public void splitCallWithExistentSplit() {
6767 Assert .assertEquals (1 , theOne .treatments .size ());
6868 Assert .assertEquals ("off" , theOne .treatments .get (0 ));
6969 Assert .assertEquals (0 , theOne .configs .size ());
70+ Assert .assertEquals ("off" , theOne .defaultTreatment );
7071 }
7172
7273 @ Test
You can’t perform that action at this time.
0 commit comments