You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,7 +189,7 @@ switcher.isItOn();
189
189
Create chained calls to validate the switcher with a more readable and maintainable code.
190
190
191
191
```java
192
-
import static**.MyAppFeatures.*;
192
+
import staticorg.example.MyAppFeatures.*;
193
193
194
194
getSwitcher(FEATURE01)
195
195
.checkValue("My value")
@@ -198,10 +198,22 @@ getSwitcher(FEATURE01)
198
198
```
199
199
200
200
4.**Accessing the last SwitcherResult**
201
-
Switchers stores the last execution result, which can be retrieved using the following operation.
201
+
Switchers stores the last execution result, which can be retrieved using the following operation. Requires enabling executions history for each Switcher using:
202
202
203
203
```java
204
-
switcher.getLastExecutionResult();
204
+
getSwitcher(FEATURE01)
205
+
.keepExecutions();
206
+
.checkValue("My value")
207
+
.checkNetwork("10.0.0.1")
208
+
209
+
switcher.isItOn();
210
+
switcher.getLastExecutionResult(); // returns the last SwitcherResult
0 commit comments