Index
All Classes and Interfaces|All Packages
A
- AGCtx(Map<String, Object>) - Constructor for class io.github.imagineDevit.giwt.TestCaseContext.AGCtx
- AGCtxFn<T,
R> - Interface in io.github.imagineDevit.giwt.statements.functions.context -
TextCase context consumer.
- and() - Method in class io.github.imagineDevit.giwt.expectations.OnValueChain
-
Returns the expectable used by this OnValueChain.
- and(String, AGCtxFn<T, R>) - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.GivenCtxStmt
- and(String, TCtxFn<T, R>) - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.ThenCtxStmt
- and(String, AndGivenFn<T>) - Method in record class io.github.imagineDevit.giwt.TestCase.GivenStmt
- and(String, ThenFn<R>) - Method in record class io.github.imagineDevit.giwt.TestCase.ThenStmt
- andGiven(String, AGCtxFn<T, R>) - Method in class io.github.imagineDevit.giwt.TestCaseWithContext
- andGiven(String, AndGivenFn<T>) - Method in class io.github.imagineDevit.giwt.TestCase
-
Adds another Given statement to the current test case with the provided message and function.
- AndGivenFn<T> - Interface in io.github.imagineDevit.giwt.statements.functions.givens
- andThen(String, TCtxFn<T, R>) - Method in class io.github.imagineDevit.giwt.TestCaseWithContext
- andThen(String, ThenFn<R>) - Method in class io.github.imagineDevit.giwt.TestCase
-
Adds a then statement to the current test case with the provided message and a consumer function.
C
- consumeValue(Consumer<T>) - Method in class io.github.imagineDevit.giwt.TestCaseState
-
Consumes the current value using a provided Consumer.
- createTestCase(String, TestCaseReport.TestReport, TestParameters.Parameter) - Method in class io.github.imagineDevit.giwt.JGiwtTestExecutor
-
This method is used to create a new test case.
E
- empty() - Static method in class io.github.imagineDevit.giwt.TestCaseCtxResult
-
Factory method to create a new TestCaseCtxResult with a null value
- empty() - Static method in class io.github.imagineDevit.giwt.TestCaseCtxState
-
Factory method to create a new TestCaseCtxState with no initial value.
- empty() - Static method in class io.github.imagineDevit.giwt.TestCaseResult
-
Factory method to create a new TestCaseResult with no initial value.
- empty() - Static method in class io.github.imagineDevit.giwt.TestCaseState
-
Factory method to create a new TestCaseState with no initial value.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.TestCase.GivenStmt
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.TestCase.ThenStmt
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.TestCase.WhenStmt
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class io.github.imagineDevit.giwt.TestCaseCtxResult
- equals(Object) - Method in class io.github.imagineDevit.giwt.TestCaseCtxState
- equals(Object) - Method in class io.github.imagineDevit.giwt.TestCaseResult
- equals(Object) - Method in class io.github.imagineDevit.giwt.TestCaseState
- equals(Object) - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.GivenCtxStmt
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.ThenCtxStmt
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.WhenCtxStmt
-
Indicates whether some other object is "equal to" this one.
G
- GCtx() - Constructor for class io.github.imagineDevit.giwt.TestCaseContext.GCtx
- GCtxFn<T,
R> - Interface in io.github.imagineDevit.giwt.statements.functions.context -
TextCase context consumer.
- getResult() - Method in class io.github.imagineDevit.giwt.TestCaseContext.TCtx
-
Get the context result If the result is not present, an empty result is returned
- getState() - Method in class io.github.imagineDevit.giwt.TestCaseContext
-
Get the context state
- getVar(String) - Method in class io.github.imagineDevit.giwt.TestCaseContext
-
Get a context variable
- given(String, GCtxFn<T, R>) - Method in class io.github.imagineDevit.giwt.TestCaseWithContext
- given(String, GivenRFn) - Method in class io.github.imagineDevit.giwt.TestCase
-
Creates a new Given statement with the provided message and (runnable) function.
- given(String, GivenSFn<T>) - Method in class io.github.imagineDevit.giwt.TestCase
-
Creates a new Given statement with the provided message and (supplier) function.
- given(String, T) - Method in class io.github.imagineDevit.giwt.TestCase
-
Creates a new Given statement with the provided message and value.
- given(String, T) - Method in class io.github.imagineDevit.giwt.TestCaseWithContext
- GivenCtxStmt(TestCaseWithContext<T, R>) - Constructor for record class io.github.imagineDevit.giwt.TestCaseWithContext.GivenCtxStmt
-
Creates an instance of a
GivenCtxStmtrecord class. - GivenFFn<T> - Interface in io.github.imagineDevit.giwt.statements.functions.givens
- GivenRFn - Interface in io.github.imagineDevit.giwt.statements.functions.givens
- GivenSFn<T> - Interface in io.github.imagineDevit.giwt.statements.functions.givens
- GivenStmt(TestCase<T, R>) - Constructor for record class io.github.imagineDevit.giwt.TestCase.GivenStmt
-
Creates an instance of a
GivenStmtrecord class.
H
- hashCode() - Method in record class io.github.imagineDevit.giwt.TestCase.GivenStmt
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.TestCase.ThenStmt
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.TestCase.WhenStmt
-
Returns a hash code value for this object.
- hashCode() - Method in class io.github.imagineDevit.giwt.TestCaseCtxResult
- hashCode() - Method in class io.github.imagineDevit.giwt.TestCaseCtxState
- hashCode() - Method in class io.github.imagineDevit.giwt.TestCaseResult
- hashCode() - Method in class io.github.imagineDevit.giwt.TestCaseState
- hashCode() - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.GivenCtxStmt
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.ThenCtxStmt
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.WhenCtxStmt
-
Returns a hash code value for this object.
I
- io.github.imagineDevit.giwt - package io.github.imagineDevit.giwt
- io.github.imagineDevit.giwt.expectations - package io.github.imagineDevit.giwt.expectations
- io.github.imagineDevit.giwt.statements.functions.context - package io.github.imagineDevit.giwt.statements.functions.context
- io.github.imagineDevit.giwt.statements.functions.givens - package io.github.imagineDevit.giwt.statements.functions.givens
- io.github.imagineDevit.giwt.statements.functions.thens - package io.github.imagineDevit.giwt.statements.functions.thens
- io.github.imagineDevit.giwt.statements.functions.whens - package io.github.imagineDevit.giwt.statements.functions.whens
J
- JExpectable<T> - Interface in io.github.imagineDevit.giwt.expectations
-
[JExpectable] is an interface that extends [Expectable] and provides additional methods to verify expectations.
- JGiwtTestEngine - Class in io.github.imagineDevit.giwt
-
This class extends the GiwtTestEngine class and is used to create a test engine for JGiwt.
- JGiwtTestEngine() - Constructor for class io.github.imagineDevit.giwt.JGiwtTestEngine
-
The constructor for the JGiwtTestEngine class.
- JGiwtTestExecutor - Class in io.github.imagineDevit.giwt
-
This class extends the GiwtTestExecutor class and is used to create a test executor for JGiwt.
- JGiwtTestExecutor() - Constructor for class io.github.imagineDevit.giwt.JGiwtTestExecutor
-
The constructor for the JGiwtTestExecutor class.
M
- map(Function<R, S>) - Method in class io.github.imagineDevit.giwt.TestCaseResult
-
Applies a function to the current value and returns a new TestCaseResult with the result.
O
- of(R) - Static method in class io.github.imagineDevit.giwt.TestCaseCtxResult
-
Factory method to create a new TestCaseCtxResult with a given value
- of(R) - Static method in class io.github.imagineDevit.giwt.TestCaseResult
-
Factory method to create a new TestCaseResult with a given value.
- of(T) - Static method in class io.github.imagineDevit.giwt.TestCaseCtxState
-
Factory method to create a new TestCaseCtxState with a given value.
- of(T) - Static method in class io.github.imagineDevit.giwt.TestCaseState
-
Factory method to create a new TestCaseState with a given value.
- ofErr(Exception) - Static method in class io.github.imagineDevit.giwt.TestCaseCtxResult
-
Factory method to create a new TestCaseCtxResult with a given Exception
- ofErr(Throwable) - Static method in class io.github.imagineDevit.giwt.TestCaseResult
-
Factory method to create a new TestCaseResult with a given exception.
- OnFailureChain<E extends io.github.imagineDevit.giwt.core.expectations.Expectation.OnFailure> - Class in io.github.imagineDevit.giwt.expectations
-
The OnFailureChain class represents a chain of expectations that are verified with an error.
- OnFailureChain(Throwable) - Constructor for class io.github.imagineDevit.giwt.expectations.OnFailureChain
-
Constructs a new OnFailure instance with the given error.
- OnValueChain<T,
E extends io.github.imagineDevit.giwt.core.expectations.Expectation.OnValue<T>> - Class in io.github.imagineDevit.giwt.expectations -
The OnValueChain class represents a chain of expectations that are verified with a value.
- OnValueChain(T, Expectable<T>) - Constructor for class io.github.imagineDevit.giwt.expectations.OnValueChain
-
Constructs a new OnValueChain instance with the given value and expectable.
R
- result() - Method in class io.github.imagineDevit.giwt.TestCaseCtxResult
-
Method to get the result of the TestCaseCtxResult
- resultError() - Method in class io.github.imagineDevit.giwt.TestCaseResult
- resultValue() - Method in class io.github.imagineDevit.giwt.TestCaseResult
- run() - Method in class io.github.imagineDevit.giwt.TestCase
- run() - Method in class io.github.imagineDevit.giwt.TestCaseWithContext
- run(TestCase) - Method in class io.github.imagineDevit.giwt.JGiwtTestExecutor
-
This method is used to run a test case.
S
- safeGetVar(String) - Method in class io.github.imagineDevit.giwt.TestCaseContext
-
Get a context variable safely
- setResult(TestCaseCtxResult<R>) - Method in class io.github.imagineDevit.giwt.TestCaseContext.WCtx
-
Set the context result
- setState(T) - Method in class io.github.imagineDevit.giwt.TestCaseContext.GCtx
-
Set the context state
- setVar(String, Object) - Method in class io.github.imagineDevit.giwt.TestCaseContext
-
Set a context variable
- shouldBe(ExpectedToBe...) - Method in interface io.github.imagineDevit.giwt.expectations.JExpectable
-
Verifies that the result value should be the provided expectations.
- shouldBe(ExpectedToBe<T>) - Method in interface io.github.imagineDevit.giwt.expectations.JExpectable
- shouldFail(ExpectedToFail) - Method in interface io.github.imagineDevit.giwt.expectations.JExpectable
- shouldFail(ExpectedToFail...) - Method in interface io.github.imagineDevit.giwt.expectations.JExpectable
-
Verifies that the result value should fail the provided expectations.
- shouldHave(ExpectedToHave...) - Method in interface io.github.imagineDevit.giwt.expectations.JExpectable
-
Verifies that the result value should have the provided expectations.
- shouldHave(ExpectedToHave<T>) - Method in interface io.github.imagineDevit.giwt.expectations.JExpectable
- shouldMatch(ExpectedToMatch...) - Method in interface io.github.imagineDevit.giwt.expectations.JExpectable
-
Verifies that the result value should match the provided expectations.
- shouldMatch(ExpectedToMatch<T>) - Method in interface io.github.imagineDevit.giwt.expectations.JExpectable
T
- TCtx(Map<String, Object>) - Constructor for class io.github.imagineDevit.giwt.TestCaseContext.TCtx
- TCtxFn<T,
R> - Interface in io.github.imagineDevit.giwt.statements.functions.context -
TextCase with context result consumer.
- testCase() - Method in record class io.github.imagineDevit.giwt.TestCase.GivenStmt
-
Returns the value of the
testCaserecord component. - testCase() - Method in record class io.github.imagineDevit.giwt.TestCase.ThenStmt
-
Returns the value of the
testCaserecord component. - testCase() - Method in record class io.github.imagineDevit.giwt.TestCase.WhenStmt
-
Returns the value of the
testCaserecord component. - testCase() - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.GivenCtxStmt
-
Returns the value of the
testCaserecord component. - testCase() - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.ThenCtxStmt
-
Returns the value of the
testCaserecord component. - testCase() - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.WhenCtxStmt
-
Returns the value of the
testCaserecord component. - TestCase<T,
R> - Class in io.github.imagineDevit.giwt -
Test case representation
- TestCase(String, TestCaseReport.TestReport, TestParameters.Parameter) - Constructor for class io.github.imagineDevit.giwt.TestCase
- TestCase.GivenStmt<T,
R> - Record Class in io.github.imagineDevit.giwt - TestCase.ThenStmt<T,
R> - Record Class in io.github.imagineDevit.giwt - TestCase.WhenStmt<T,
R> - Record Class in io.github.imagineDevit.giwt - TestCaseContext<T,
R> - Class in io.github.imagineDevit.giwt -
A context for a test case
- TestCaseContext.AGCtx<T,
R> - Class in io.github.imagineDevit.giwt - TestCaseContext.GCtx<T,
R> - Class in io.github.imagineDevit.giwt - TestCaseContext.TCtx<T,
R> - Class in io.github.imagineDevit.giwt - TestCaseContext.WCtx<T,
R> - Class in io.github.imagineDevit.giwt - TestCaseCtxResult<R> - Class in io.github.imagineDevit.giwt
-
A result of a test case with context
- TestCaseCtxState<T> - Class in io.github.imagineDevit.giwt
-
A state of a test case with context
- TestCaseResult<R> - Class in io.github.imagineDevit.giwt
-
A result of a test case
- TestCaseState<T> - Class in io.github.imagineDevit.giwt
-
A state of a test case
- TestCaseState(T) - Constructor for class io.github.imagineDevit.giwt.TestCaseState
-
Constructor for TestCaseState.
- TestCaseWithContext<T,
R> - Class in io.github.imagineDevit.giwt -
Test case representation with context
- TestCaseWithContext(String, TestCaseReport.TestReport, TestParameters.Parameter) - Constructor for class io.github.imagineDevit.giwt.TestCaseWithContext
- TestCaseWithContext.GivenCtxStmt<T,
R> - Record Class in io.github.imagineDevit.giwt - TestCaseWithContext.ThenCtxStmt<T,
R> - Record Class in io.github.imagineDevit.giwt - TestCaseWithContext.WhenCtxStmt<T,
R> - Record Class in io.github.imagineDevit.giwt - then(String, TCtxFn<T, R>) - Method in class io.github.imagineDevit.giwt.TestCaseWithContext
- then(String, TCtxFn<T, R>) - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.WhenCtxStmt
- then(String, ThenFn<R>) - Method in class io.github.imagineDevit.giwt.TestCase
-
Adds a Then statement to the current test case with the provided message and a consumer function.
- then(String, ThenFn<R>) - Method in record class io.github.imagineDevit.giwt.TestCase.WhenStmt
- ThenCtxStmt(TestCaseWithContext<T, R>) - Constructor for record class io.github.imagineDevit.giwt.TestCaseWithContext.ThenCtxStmt
-
Creates an instance of a
ThenCtxStmtrecord class. - ThenFn<R> - Interface in io.github.imagineDevit.giwt.statements.functions.thens
- ThenStmt(TestCase<T, R>) - Constructor for record class io.github.imagineDevit.giwt.TestCase.ThenStmt
-
Creates an instance of a
ThenStmtrecord class. - toAGCtx() - Method in class io.github.imagineDevit.giwt.TestCaseContext.GCtx
-
Convert the context to a AGCtx
- toString() - Method in record class io.github.imagineDevit.giwt.TestCase.GivenStmt
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.TestCase.ThenStmt
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.TestCase.WhenStmt
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.GivenCtxStmt
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.ThenCtxStmt
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.WhenCtxStmt
-
Returns a string representation of this record class.
- toTCtx() - Method in class io.github.imagineDevit.giwt.TestCaseContext.WCtx
-
Convert the context to a TCtx
- toWCtx() - Method in class io.github.imagineDevit.giwt.TestCaseContext.AGCtx
-
Convert the context to a WCtx
- toWCtx() - Method in class io.github.imagineDevit.giwt.TestCaseContext.GCtx
-
Convert the context to a WCtx
V
- value() - Method in class io.github.imagineDevit.giwt.TestCaseCtxState
-
Returns the current value.
- value() - Method in class io.github.imagineDevit.giwt.TestCaseState
-
Returns the current value.
W
- WCtx(Map<String, Object>) - Constructor for class io.github.imagineDevit.giwt.TestCaseContext.WCtx
- WCtxFns<T,
R> - Interface in io.github.imagineDevit.giwt.statements.functions.context -
TextCase with context state consumer.
- WCtxFns.WCtxFFn<T,
R> - Interface in io.github.imagineDevit.giwt.statements.functions.context - WCtxFns.WCtxSFn<T,
R> - Interface in io.github.imagineDevit.giwt.statements.functions.context - when(String, WCtxFns.WCtxFFn<T, R>) - Method in class io.github.imagineDevit.giwt.TestCaseWithContext
- when(String, WCtxFns.WCtxSFn<T, R>) - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.GivenCtxStmt
- when(String, WhenFn.C<T>) - Method in record class io.github.imagineDevit.giwt.TestCase.GivenStmt
- when(String, WhenFn.F<T, R>) - Method in record class io.github.imagineDevit.giwt.TestCase.GivenStmt
- when(String, WhenFn.F<T, R>) - Method in class io.github.imagineDevit.giwt.TestCase
-
Adds a When statement to the current test case with the provided message and a function.
- when(String, WhenFn.R) - Method in record class io.github.imagineDevit.giwt.TestCase.GivenStmt
- when(String, WhenFn.R) - Method in class io.github.imagineDevit.giwt.TestCase
-
Adds a When statement to the current test case with the provided message and a runnable function
- when(String, WhenFn.S<R>) - Method in record class io.github.imagineDevit.giwt.TestCase.GivenStmt
- when(String, WhenFn.S<R>) - Method in class io.github.imagineDevit.giwt.TestCase
-
Adds a When statement to the current test case with the provided message and a supplier function.
- whenc(String, WhenFn.C<T>) - Method in class io.github.imagineDevit.giwt.TestCase
-
Adds a When statement to the current test case with the provided message and a consumer function
- WhenCtxStmt(TestCaseWithContext<T, R>) - Constructor for record class io.github.imagineDevit.giwt.TestCaseWithContext.WhenCtxStmt
-
Creates an instance of a
WhenCtxStmtrecord class. - WhenFn - Interface in io.github.imagineDevit.giwt.statements.functions.whens
- WhenFn.C<T> - Interface in io.github.imagineDevit.giwt.statements.functions.whens
- WhenFn.F<T,
R> - Interface in io.github.imagineDevit.giwt.statements.functions.whens - WhenFn.R - Interface in io.github.imagineDevit.giwt.statements.functions.whens
- WhenFn.S<R> - Interface in io.github.imagineDevit.giwt.statements.functions.whens
- whenr(String, WCtxFns.WCtxSFn<T, R>) - Method in class io.github.imagineDevit.giwt.TestCaseWithContext
- whenr(String, WhenFn.R) - Method in class io.github.imagineDevit.giwt.TestCase
-
Adds a When statement to the current test case with the provided message and a runnable function
- whens(String, WhenFn.S<R>) - Method in class io.github.imagineDevit.giwt.TestCase
-
Adds a When statement to the current test case with the provided message and a runnable function
- WhenStmt(TestCase<T, R>) - Constructor for record class io.github.imagineDevit.giwt.TestCase.WhenStmt
-
Creates an instance of a
WhenStmtrecord class. - withContext() - Method in class io.github.imagineDevit.giwt.TestCase
All Classes and Interfaces|All Packages