Index
All Classes and Interfaces|All Packages
A
- all(ExpectedToMatch.Matching<T>...) - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToMatch
-
Creates an all expectation for a value.
- All(List<ExpectedToMatch.Matching<T>>) - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.All
-
Creates an instance of a
Allrecord class. - and(String, CtxConsumer<R, TestCaseContext.GCtx<T, R>>) - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.GivenCtxStmt
- and(String, ResCtxConsumer<T, R>) - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.ThenCtxStmt
- and(String, GivenFFn<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, CtxConsumer<R, TestCaseContext.GCtx<T, R>>) - Method in class io.github.imagineDevit.giwt.TestCaseWithContext
- andGiven(String, GivenFFn<T>) - Method in class io.github.imagineDevit.giwt.TestCase
-
Adds another Given statement to the current test case with the provided message and function.
- andThen(String, ResCtxConsumer<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.
- anItemEqualTo(T) - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToHave
-
Creates an expectation for a value to contain a specific item.
- AnItemEqualTo(T) - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToHave.AnItemEqualTo
-
Creates an instance of a
AnItemEqualTorecord class. - applyOnState(Consumer<T>) - Method in class io.github.imagineDevit.giwt.TestCaseContext.WCtx
-
Apply an action on the context state
B
- between(T, T) - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToBe
-
Creates an expectation that a value should be between the min and max values.
- Between(T, T) - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.Between
-
Creates an instance of a
Betweenrecord class.
C
- clazz() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToFail.WihType
-
Returns the value of the
clazzrecord component. - 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.
- CtxConsumer<R,
C extends TestCaseContext<?, R>> - Interface in io.github.imagineDevit.giwt.statements.functions.context -
TextCase context consumer.
D
- description() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.Matching
-
Returns the value of the
descriptionrecord component.
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.expectations.ExpectedToBe.Between
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.EqualTo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.GreaterThan
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.LesserThan
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.NotEqualTo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.NotNull
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.Null
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.OneOf
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToFail.WihType
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToFail.WithMessage
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToHave.AnItemEqualTo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToHave.Size
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.All
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.Matching
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.None
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.One
-
Indicates whether some other object is "equal to" this one.
- 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 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.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.utils.Val.Setted
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.imagineDevit.giwt.utils.Val.Unsetted
-
Indicates whether some other object is "equal to" this one.
- equalTo(T) - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToBe
-
Creates an expectation that a value should be equal to the expected value.
- EqualTo(T) - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.EqualTo
-
Creates an instance of a
EqualTorecord class. - Expectable<T> - Interface in io.github.imagineDevit.giwt.expectations
-
This interface provides methods for asserting the state of a result value.
- Expectation<T> - Interface in io.github.imagineDevit.giwt.expectations
-
This interface represents an expectation, which is a condition that a value must satisfy.
- Expectation.OnFailure - Interface in io.github.imagineDevit.giwt.expectations
-
This interface represents a failed expectation.
- Expectation.OnValue<T> - Interface in io.github.imagineDevit.giwt.expectations
-
This interface represents a successful expectation.
- expected() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.EqualTo
-
Returns the value of the
expectedrecord component. - expected() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.NotEqualTo
-
Returns the value of the
expectedrecord component. - ExpectedToBe<T> - Interface in io.github.imagineDevit.giwt.expectations
-
This interface provides a set of static methods to create different types of expectations.
- ExpectedToBe.Between<T> - Record Class in io.github.imagineDevit.giwt.expectations
-
This record represents an expectation that a value should be between the min and max values.
- ExpectedToBe.EqualTo<T> - Record Class in io.github.imagineDevit.giwt.expectations
-
This record represents an expectation that a value should be equal to the expected value.
- ExpectedToBe.GreaterThan<T> - Record Class in io.github.imagineDevit.giwt.expectations
-
This record represents an expectation that a value should be greater than the min value.
- ExpectedToBe.LesserThan<T> - Record Class in io.github.imagineDevit.giwt.expectations
-
This record represents an expectation that a value should be lesser than the max value.
- ExpectedToBe.NotEqualTo<T> - Record Class in io.github.imagineDevit.giwt.expectations
-
This record represents an expectation that a value should not be equal to the expected value.
- ExpectedToBe.NotNull<T> - Record Class in io.github.imagineDevit.giwt.expectations
-
This record represents an expectation that a value should not be null.
- ExpectedToBe.Null<T> - Record Class in io.github.imagineDevit.giwt.expectations
-
This record represents an expectation that a value should be null.
- ExpectedToBe.OneOf<T> - Record Class in io.github.imagineDevit.giwt.expectations
-
This record represents an expectation that a value should be one of the values in the collection.
- ExpectedToFail - Interface in io.github.imagineDevit.giwt.expectations
-
This interface provides a set of static methods to create different types of failure expectations.
- ExpectedToFail.WihType - Record Class in io.github.imagineDevit.giwt.expectations
-
This record represents a failure expectation that an exception should be of a specific type.
- ExpectedToFail.WithMessage - Record Class in io.github.imagineDevit.giwt.expectations
-
This record represents a failure expectation that an exception should have a specific message.
- ExpectedToHave<T> - Interface in io.github.imagineDevit.giwt.expectations
-
This interface defines the expectations for a given value.
- ExpectedToHave.AnItemEqualTo<T> - Record Class in io.github.imagineDevit.giwt.expectations
-
This record defines an expectation for a value to contain a specific item.
- ExpectedToHave.Size<T> - Record Class in io.github.imagineDevit.giwt.expectations
-
This record defines an expectation for a value to have a specific size.
- ExpectedToMatch<T> - Interface in io.github.imagineDevit.giwt.expectations
-
This interface defines the expectations for a value to match a certain condition.
- ExpectedToMatch.All<T> - Record Class in io.github.imagineDevit.giwt.expectations
-
This record defines an all expectation for a value.
- ExpectedToMatch.Matching<T> - Record Class in io.github.imagineDevit.giwt.expectations
-
This record defines a matching expectation for a value.
- ExpectedToMatch.None<T> - Record Class in io.github.imagineDevit.giwt.expectations
-
This record defines a none expectation for a value.
- ExpectedToMatch.One<T> - Record Class in io.github.imagineDevit.giwt.expectations
-
This record defines a one expectation for a value.
G
- GCtx() - Constructor for class io.github.imagineDevit.giwt.TestCaseContext.GCtx
- get() - Method in class io.github.imagineDevit.giwt.TestCaseState
-
Returns an Optional containing the current value, or an empty Optional if the value is null.
- getOr(Supplier<T>) - Method in class io.github.imagineDevit.giwt.utils.MutVal
-
Returns the value if it is set, otherwise sets the value to the result of the supplied function and returns it.
- 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, CtxConsumer<R, TestCaseContext.GCtx<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. - greaterThan(T) - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToBe
-
Creates an expectation that a value should be greater than the min value.
- GreaterThan(T) - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.GreaterThan
-
Creates an instance of a
GreaterThanrecord class.
H
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.Between
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.EqualTo
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.GreaterThan
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.LesserThan
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.NotEqualTo
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.NotNull
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.Null
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.OneOf
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToFail.WihType
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToFail.WithMessage
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToHave.AnItemEqualTo
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToHave.Size
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.All
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.Matching
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.None
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.One
-
Returns a hash code value for this object.
- 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 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.
- hashCode() - Method in record class io.github.imagineDevit.giwt.utils.Val.Setted
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.imagineDevit.giwt.utils.Val.Unsetted
-
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
- io.github.imagineDevit.giwt.utils - package io.github.imagineDevit.giwt.utils
- item() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToHave.AnItemEqualTo
-
Returns the value of the
itemrecord component.
J
- 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.
L
- lesserThan(T) - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToBe
-
Creates an expectation that a value should be lesser than the max value.
- LesserThan(T) - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.LesserThan
-
Creates an instance of a
LesserThanrecord class.
M
- map(Function<T, R>) - Method in class io.github.imagineDevit.giwt.TestCaseResult
-
Applies a function to the current value and returns a new TestCaseResult with the result.
- map(UnaryOperator<T>) - Method in class io.github.imagineDevit.giwt.TestCaseCtxState
-
Applies a function to the current value and returns a new TestCaseCtxState with the result.
- map(UnaryOperator<T>) - Method in class io.github.imagineDevit.giwt.TestCaseState
-
Applies a function to the current value and returns a new TestCaseState with the result.
- mapState(UnaryOperator<T>) - Method in class io.github.imagineDevit.giwt.TestCaseContext.GCtx
-
Map the context state
- mapToResult(Function<T, R>) - Method in class io.github.imagineDevit.giwt.TestCaseContext.WCtx
-
Apply a function to the context state and set the context result with the returned value
- mapToResult(Function<T, R>) - Method in class io.github.imagineDevit.giwt.TestCaseState
-
Applies a function to the current value and returns a new TestCaseResult with the result.
- matching() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.One
-
Returns the value of the
matchingrecord component. - matching(String, Predicate<T>) - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToMatch
-
Creates a matching expectation for a value.
- Matching(String, Predicate<T>) - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.Matching
-
Creates an instance of a
Matchingrecord class. - matchings() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.All
-
Returns the value of the
matchingsrecord component. - matchings() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.None
-
Returns the value of the
matchingsrecord component. - max() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.Between
-
Returns the value of the
maxrecord component. - max() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.LesserThan
-
Returns the value of the
maxrecord component. - message() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToFail.WithMessage
-
Returns the value of the
messagerecord component. - min() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.Between
-
Returns the value of the
minrecord component. - min() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.GreaterThan
-
Returns the value of the
minrecord component. - MutVal<T> - Class in io.github.imagineDevit.giwt.utils
-
A mutable value container class.
- MutVal() - Constructor for class io.github.imagineDevit.giwt.utils.MutVal
N
- none(ExpectedToMatch.Matching<T>...) - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToMatch
-
Creates a none expectation for a value.
- None(List<ExpectedToMatch.Matching<T>>) - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.None
-
Creates an instance of a
Nonerecord class. - notEqualTo(T) - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToBe
-
Creates an expectation that a value should not be equal to the expected value.
- NotEqualTo(T) - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.NotEqualTo
-
Creates an instance of a
NotEqualTorecord class. - notNull() - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToBe
-
Creates an expectation that a value should not be null.
- NotNull() - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.NotNull
-
Creates an instance of a
NotNullrecord class. - Null() - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.Null
-
Creates an instance of a
Nullrecord class. - null_() - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToBe
-
Creates an expectation that a value should be null.
O
- of(T) - Static method in class io.github.imagineDevit.giwt.TestCaseCtxResult
-
Factory method to create a new TestCaseCtxResult 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.TestCaseResult
-
Factory method to create a new TestCaseResult 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(Exception) - Static method in class io.github.imagineDevit.giwt.TestCaseResult
-
Factory method to create a new TestCaseResult with a given exception.
- one(ExpectedToMatch.Matching<T>) - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToMatch
-
Creates a one expectation for a value.
- One(ExpectedToMatch.Matching<T>) - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.One
-
Creates an instance of a
Onerecord class. - oneOf(Collection<T>) - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToBe
-
Creates an expectation that a value should be one of the values in the collection.
- OneOf(Collection<T>) - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.OneOf
-
Creates an instance of a
OneOfrecord class.
P
- predicate() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.Matching
-
Returns the value of the
predicaterecord component.
R
- ResCtxConsumer<T,
R> - Interface in io.github.imagineDevit.giwt.statements.functions.context -
TextCase with context result consumer.
- result() - Method in class io.github.imagineDevit.giwt.TestCaseCtxResult
-
Method to get the result of the TestCaseCtxResult
- resultError() - Method in interface io.github.imagineDevit.giwt.expectations.Expectable
-
Returns the result error if it is present.
- resultError() - Method in class io.github.imagineDevit.giwt.TestCaseResult
- resultValue() - Method in interface io.github.imagineDevit.giwt.expectations.Expectable
-
Returns the result value if it is present.
- 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
- setStateAsResult() - Method in class io.github.imagineDevit.giwt.TestCaseContext.WCtx
-
Set the context state as the context result
- Setted(Optional<T>) - Constructor for record class io.github.imagineDevit.giwt.utils.Val.Setted
-
Creates an instance of a
Settedrecord class. - 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.Expectable
-
Verifies that the result value should be the provided expectations.
- shouldFail(ExpectedToFail...) - Method in interface io.github.imagineDevit.giwt.expectations.Expectable
-
Verifies that the result value should fail the provided expectations.
- shouldHave(ExpectedToHave...) - Method in interface io.github.imagineDevit.giwt.expectations.Expectable
-
Verifies that the result value should have the provided expectations.
- shouldMatch(ExpectedToMatch...) - Method in interface io.github.imagineDevit.giwt.expectations.Expectable
-
Verifies that the result value should match the provided expectations.
- shouldTest(T) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.Matching
- size() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToHave.Size
-
Returns the value of the
sizerecord component. - size(int) - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToHave
-
Creates an expectation for a value to have a specific size.
- Size(int) - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToHave.Size
-
Creates an instance of a
Sizerecord class. - supplyResult(Supplier<R>) - Method in class io.github.imagineDevit.giwt.TestCaseContext.WCtx
-
Supply the context result
T
- TCtx(Map<String, Object>) - Constructor for class io.github.imagineDevit.giwt.TestCaseContext.TCtx
- 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.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<T> - 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<T> - 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, ResCtxConsumer<T, R>) - Method in class io.github.imagineDevit.giwt.TestCaseWithContext
- then(String, ResCtxConsumer<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. - toResult(Function<T, R>) - Method in class io.github.imagineDevit.giwt.TestCaseCtxState
-
Applies a function to the current value and returns a new TestCaseCtxResult with the result.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.Between
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.EqualTo
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.GreaterThan
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.LesserThan
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.NotEqualTo
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.NotNull
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.Null
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.OneOf
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToFail.WihType
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToFail.WithMessage
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToHave.AnItemEqualTo
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToHave.Size
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.All
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.Matching
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.None
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.One
-
Returns a string representation of this record class.
- 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.
- toString() - Method in record class io.github.imagineDevit.giwt.utils.Val.Setted
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.imagineDevit.giwt.utils.Val.Unsetted
-
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.GCtx
-
Convert the context to a WCtx
U
- Unsetted() - Constructor for record class io.github.imagineDevit.giwt.utils.Val.Unsetted
-
Creates an instance of a
Unsettedrecord class.
V
- Val - Interface in io.github.imagineDevit.giwt.utils
-
The Val interface represents a value that can be either set or unset.
- Val.Setted<T> - Record Class in io.github.imagineDevit.giwt.utils
-
The Setted record represents a set value.
- Val.Unsetted - Record Class in io.github.imagineDevit.giwt.utils
-
The Unsetted record represents an unset value.
- value() - Method in class io.github.imagineDevit.giwt.TestCaseCtxState
-
Returns the current value.
- value() - Method in record class io.github.imagineDevit.giwt.utils.Val.Setted
-
Returns the value of the
valuerecord component. - values() - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.OneOf
-
Returns the value of the
valuesrecord component. - verify(Exception) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToFail.WihType
- verify(Exception) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToFail.WithMessage
- verify(T) - Method in interface io.github.imagineDevit.giwt.expectations.Expectation
-
Verifies the expectation against a value.
- verify(T) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.Between
- verify(T) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.EqualTo
- verify(T) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.GreaterThan
- verify(T) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.LesserThan
- verify(T) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.NotEqualTo
- verify(T) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.NotNull
- verify(T) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.Null
- verify(T) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToBe.OneOf
- verify(T) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToHave.AnItemEqualTo
- verify(T) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToHave.Size
- verify(T) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.All
- verify(T) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.None
- verify(T) - Method in record class io.github.imagineDevit.giwt.expectations.ExpectedToMatch.One
W
- WCtx(Map<String, Object>) - Constructor for class io.github.imagineDevit.giwt.TestCaseContext.WCtx
- when(String, CtxConsumer<R, TestCaseContext.WCtx<T, R>>) - Method in record class io.github.imagineDevit.giwt.TestCaseWithContext.GivenCtxStmt
- when(String, CtxConsumer<R, TestCaseContext.WCtx<T, R>>) - Method in class io.github.imagineDevit.giwt.TestCaseWithContext
- 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 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, CtxConsumer<R, TestCaseContext.WCtx<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
- WhenStmt(TestCase<T, R>) - Constructor for record class io.github.imagineDevit.giwt.TestCase.WhenStmt
-
Creates an instance of a
WhenStmtrecord class. - WihType(Class<?>) - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToFail.WihType
-
Creates an instance of a
WihTyperecord class. - withContext() - Method in class io.github.imagineDevit.giwt.TestCase
- withMessage(String) - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToFail
-
Creates a failure expectation that an exception should have a specific message.
- WithMessage(String) - Constructor for record class io.github.imagineDevit.giwt.expectations.ExpectedToFail.WithMessage
-
Creates an instance of a
WithMessagerecord class. - withType(Class<?>) - Static method in interface io.github.imagineDevit.giwt.expectations.ExpectedToFail
-
Creates a failure expectation that an exception should be of a specific type.
All Classes and Interfaces|All Packages