- java.lang.Object
-
- de.carne.test.swt.tester.IntDialogMock
-
public abstract class IntDialogMock extends java.lang.ObjectInterface for mocking of standard dialog results during a test run.
-
-
Constructor Summary
Constructors Constructor Description IntDialogMock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidofferResult(int result)Adds a result to the result queue.voidofferResult(java.util.function.IntSupplier resultSupplier)Adds a result to the result queue.protected @Nullable java.util.function.IntSupplierpollResult()Gets the next result from the result queue.
-
-
-
Method Detail
-
offerResult
public void offerResult(int result)
Adds a result to the result queue.- Parameters:
result- the result to add.
-
offerResult
public void offerResult(java.util.function.IntSupplier resultSupplier)
Adds a result to the result queue.- Parameters:
resultSupplier- the result to add.
-
pollResult
protected @Nullable java.util.function.IntSupplier pollResult()
Gets the next result from the result queue.- Returns:
- the next result from the result queue or
nullif the result queue is empty.
-
-