Class Suite

java.lang.Object
io.split.client.testing.runner.Suite

public class Suite
extends Object
  • Constructor Details

  • Method Details

    • scenarios

      public Set<Scenario> scenarios()
    • merge

      public Suite merge​(Set<Scenario> newScenarios)
      Merge & Permute new Scenarios into existing Scenarios

      Applies each new Scenario on top of each existing Scenario, overriding any existing features with the new Scenario's treatment.

      Creates a permutation of the two collections and then de-duplicates: With New Scenarios [a=on,b=on]&[a=off,b=on] and Existing Scenarios [a=on,b=on]&[a=on,b=off]&[a=on,c=on] The Merged Scenarios would permute to: [a=on,b=on]&[a=off,b=on]&[a=on,b=on]&[a=off,b=on]&[a=on,b=on,c=on]&[a=off,b=on,c=on] Then the return would deduplicate down to: [a=on,b=on]&[a=off,b=on]&[a=on,b=on,c=on]&[a=off,b=on,c=on]

      Parameters:
      newScenarios - The Scenarios to be merged in
      Returns:
      Current Suite Object
    • merge

      public Suite merge​(Suite suite)
    • isOnlyAllControl

      public boolean isOnlyAllControl()
      Validates there is only one Scenario in the Collection and that Scenario has no Tests defined
      Returns:
      If the only scenario in the collection has no tests defined