Index

A B C D E F G I J L M N O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values

A

analyzeStatement(int, String) - Static method in class org.blocktest.utils.ComplexityChecker
 
appSrcPath - Static variable in class org.blocktest.utils.Util
 
args(Object...) - Method in class org.blocktest.BTest
For a given lambda test, provide a list of values as the arguments to the lambda function.
ARGS - Static variable in class org.blocktest.utils.Constant
 
ARGS_VAR - Static variable in class org.blocktest.utils.Constant
 
argumentCount - Variable in class org.blocktest.types.StaticMethod
 
assertedVariables - Variable in class org.blocktest.BlockTest
 
ASSERTION - Enum constant in enum org.blocktest.utils.Constant.StatementType
 
assignedVariables - Variable in class org.blocktest.visitors.VariablesCollectionVisitor
 
assignments - Variable in class org.blocktest.visitors.ExtractionVisitor.Context
 
assignVar - Variable in class org.blocktest.types.GivenVariable
 

B

blocktest() - Static method in class org.blocktest.BTest
Declares a block test.
blocktest(String) - Static method in class org.blocktest.BTest
Declares a block test with a name.
BlockTest - Class in org.blocktest
 
BlockTest() - Constructor for class org.blocktest.BlockTest
 
BlockTestConversionVisitor - Class in org.blocktest.visitors
 
BlockTestConversionVisitor() - Constructor for class org.blocktest.visitors.BlockTestConversionVisitor
 
BlockTestRunnerSourceCode - Class in org.blocktest
 
BlockTestRunnerSourceCode() - Constructor for class org.blocktest.BlockTestRunnerSourceCode
 
blockVariables - Variable in class org.blocktest.BlockTest
 
BreakReplacementVisitor - Class in org.blocktest.visitors
 
BreakReplacementVisitor() - Constructor for class org.blocktest.visitors.BreakReplacementVisitor
 
btest - Static variable in class org.blocktest.BTest
 
BTest - Class in org.blocktest
 
buildAssertion() - Method in class org.blocktest.visitors.FlowControllingVisitor
 
buildInitialization() - Method in class org.blocktest.visitors.FlowControllingVisitor
 

C

CHECK_EQ - Static variable in class org.blocktest.utils.Constant
 
CHECK_EXP - Static variable in class org.blocktest.utils.Constant
 
CHECK_FALSE - Static variable in class org.blocktest.utils.Constant
 
CHECK_FLOW - Static variable in class org.blocktest.utils.Constant
 
CHECK_RETURN_EQ - Static variable in class org.blocktest.utils.Constant
 
CHECK_RETURN_FALSE - Static variable in class org.blocktest.utils.Constant
 
CHECK_RETURN_TRUE - Static variable in class org.blocktest.utils.Constant
 
CHECK_TRUE - Static variable in class org.blocktest.utils.Constant
 
checkEq(Object, Object) - Method in class org.blocktest.BTest
Check that the actual object is equal to the expected object.
checkEq(Object, Object, Object) - Method in class org.blocktest.BTest
Check that the actual object is equal to the expected object within a delta.
checkFalse(Object) - Method in class org.blocktest.BTest
Check that the given value or expression is false.
checkFlow(Flow...) - Method in class org.blocktest.BTest
Check the flow of the block under test, as a sequence of Flow objects.
checkReturnEq(Object) - Method in class org.blocktest.BTest
Checks that the return value of the block under test is equal to the expected value.
checkReturnEq(Object, Object) - Method in class org.blocktest.BTest
Checks that the return value of the block under test is equal to the expected value within a delta.
checkReturnFalse() - Method in class org.blocktest.BTest
Check that the return value of the block or lambda is false.
checkReturnTrue() - Method in class org.blocktest.BTest
Check that the return value of the block or lambda is true.
checkTrue(Object) - Method in class org.blocktest.BTest
Check that the given value or expression is true.
className - Variable in class org.blocktest.types.StaticMethod
 
clone() - Method in class org.blocktest.visitors.ExtractionVisitor.Context
 
ComplexityChecker - Class in org.blocktest.utils
 
ComplexityChecker() - Constructor for class org.blocktest.utils.ComplexityChecker
 
COMPOUND_ASSIGN_OPERATORS - Static variable in class org.blocktest.utils.Constant
 
Constant - Class in org.blocktest.utils
 
Constant() - Constructor for class org.blocktest.utils.Constant
 
Constant.StatementType - Enum in org.blocktest.utils
 
Context() - Constructor for class org.blocktest.visitors.ExtractionVisitor.Context
 

D

DeclarationRemovalVisitor - Class in org.blocktest.visitors
 
DeclarationRemovalVisitor(List<String>) - Constructor for class org.blocktest.visitors.DeclarationRemovalVisitor
 
DECLARE_NAME - Static variable in class org.blocktest.utils.Constant
 
DECLARE_NAME_LAMBDA - Static variable in class org.blocktest.utils.Constant
 
declaredVariables - Variable in class org.blocktest.visitors.VariablesCollectionVisitor
 
delay - Variable in class org.blocktest.BlockTest
 
delay(long) - Method in class org.blocktest.BTest
TODO: Need a real example, not sure what this does.
DELAY - Static variable in class org.blocktest.utils.Constant
 
depClassPaths - Static variable in class org.blocktest.utils.Util
 

E

Else - Enum constant in enum org.blocktest.types.Flow
 
Else() - Static method in enum org.blocktest.types.Flow
 
end() - Method in class org.blocktest.BTest
TODO: What is the purpose of this?
end(Object) - Method in class org.blocktest.BTest
Deprecated, use end(EndAt value) instead.
end(Object, boolean) - Method in class org.blocktest.BTest
Deprecated, use end(EndAt value, boolean endAfter) instead.
end(EndAt) - Method in class org.blocktest.BTest
Set the stoppoint of the block test to be at the value specified by the EndAt enum.
end(EndAt, boolean) - Method in class org.blocktest.BTest
Set the stoppoint of the block test to be at the value specified by the EndAt enum, and decide whether to include the construct specified by the EndAt enum.
end(EndAt, int) - Method in class org.blocktest.BTest
Set the stoppoint of the block test to be at the value specified by the EndAt enum, and at the specified instance.
end(EndAt, int, boolean) - Method in class org.blocktest.BTest
Set the stoppoint of the block test to be at the value specified by the EndAt enum, and at the specified instance, and decide whether to include the construct specified by the EndAt enum.
END - Static variable in class org.blocktest.utils.Constant
 
endAfter - Variable in class org.blocktest.BlockTest
 
endAt - Variable in class org.blocktest.BlockTest
 
EndAt - Enum in org.blocktest.types
 
endAtInstances - Variable in class org.blocktest.BlockTest
 
endLineNo - Variable in class org.blocktest.BlockTest
 
endReversed - Variable in class org.blocktest.BlockTest
 
exception - Variable in class org.blocktest.BlockTest
 
expect(Object) - Method in class org.blocktest.BTest
Check that the block or lambda under test throws an exception.
ExtractionVisitor - Class in org.blocktest.visitors
 
ExtractionVisitor(List<BlockTest>) - Constructor for class org.blocktest.visitors.ExtractionVisitor
 
ExtractionVisitor.Context - Class in org.blocktest.visitors
 

F

FIRST_ASSIGN - Enum constant in enum org.blocktest.types.EndAt
For a given block test, stop at the first assignment of (TODO: all?)
FIRST_BLOCK - Enum constant in enum org.blocktest.types.EndAt
For a given block test, stop after observing the first construct with a block body following/preceding the block test.
FIRST_RETURN - Enum constant in enum org.blocktest.types.EndAt
For a given block test, stop at the first return statement following/preceding the block test.
FIRST_STATEMENT - Enum constant in enum org.blocktest.types.EndAt
For a given block test, stop at the first statement following/preceding the block test.
FIRST_THROW - Enum constant in enum org.blocktest.types.EndAt
For a given block test, stop at the first throw statement following/preceding the block test.
Flow - Enum in org.blocktest.types
 
FlowControllingVisitor - Class in org.blocktest.visitors
 
FlowControllingVisitor(BlockTest) - Constructor for class org.blocktest.visitors.FlowControllingVisitor
 
flows - Variable in class org.blocktest.BlockTest
 

G

generateAllPatterns(MethodCallExpr) - Method in class org.blocktest.utils.MethodCallPatternGenerator
 
getTypeFromStr(String) - Static method in class org.blocktest.utils.Util
 
given(Object, Object) - Method in class org.blocktest.BTest
Assigns a value to a variable that is used in the block under test.
given(Object, Object, Object) - Method in class org.blocktest.BTest
Assigns a value to a variable that is used in the block under test, with a specified type.
GIVEN - Enum constant in enum org.blocktest.utils.Constant.StatementType
 
GIVEN - Static variable in class org.blocktest.utils.Constant
 
givens - Variable in class org.blocktest.BlockTest
 
GivenVariable - Class in org.blocktest.types
 
GivenVariable(Type, String, Expression, Expression) - Constructor for class org.blocktest.types.GivenVariable
 
givenVariables - Variable in class org.blocktest.BlockTest
 
globalSymbolTable - Variable in class org.blocktest.visitors.ExtractionVisitor
 
group() - Static method in class org.blocktest.BTest
TODO: Never seen this used.

I

IfStmt - Enum constant in enum org.blocktest.types.Flow
 
IfStmt() - Static method in enum org.blocktest.types.Flow
 
increaseByOne() - Method in class org.blocktest.visitors.FlowControllingVisitor
 
isBlockTest(Node) - Static method in class org.blocktest.utils.Util
 
isConstant(String) - Static method in class org.blocktest.utils.Util
 
isEndStatement(Node) - Static method in class org.blocktest.utils.Util
 
isEndStatement(Node, boolean) - Static method in class org.blocktest.utils.Util
 
isTestStatement(Node) - Static method in class org.blocktest.utils.Util
 
isTestStatement(Node, boolean) - Static method in class org.blocktest.utils.Util
 

J

junitAssertions - Variable in class org.blocktest.BlockTest
 
junitLambdaAssertions - Variable in class org.blocktest.BlockTest
 
junitVersion - Static variable in class org.blocktest.utils.Util
 

L

LAMBDA - Enum constant in enum org.blocktest.types.EndAt
For a given block test, stop at the end of the lambda under test.
LAMBDA - Static variable in class org.blocktest.utils.Constant
 
LAMBDA_RETURN - Static variable in class org.blocktest.utils.Constant
 
LambdaChecker - Class in org.blocktest.utils
 
LambdaChecker() - Constructor for class org.blocktest.utils.LambdaChecker
 
lambdaParameters - Variable in class org.blocktest.BlockTest
 
lambdaReturn - Static variable in class org.blocktest.utils.Constant
 
lambdatest() - Static method in class org.blocktest.BTest
Declares a lambda test.
lambdatest(String) - Static method in class org.blocktest.BTest
Declares a lambda test with a name.
LambdaTransformationVisitor - Class in org.blocktest.visitors
 
LambdaTransformationVisitor() - Constructor for class org.blocktest.visitors.LambdaTransformationVisitor
 
LAST_REFERENCE - Enum constant in enum org.blocktest.types.EndAt
For a given block test, stop at the last reference of the variable(s) in the assignment clauses following/preceding the block test.
lineNo - Variable in class org.blocktest.BlockTest
 
loadXml - Static variable in class org.blocktest.utils.Util
 
localAssignments - Variable in class org.blocktest.BlockTest
 
localSymbolTable - Variable in class org.blocktest.BlockTest
 

M

main(String[]) - Static method in class org.blocktest.BlockTestRunnerSourceCode
 
main(String[]) - Static method in class org.blocktest.utils.ComplexityChecker
 
main(String[]) - Static method in class org.blocktest.utils.LambdaChecker
 
METHOD_RETURN - Static variable in class org.blocktest.utils.Constant
 
MethodCallPatternGenerator - Class in org.blocktest.utils
 
MethodCallPatternGenerator() - Constructor for class org.blocktest.utils.MethodCallPatternGenerator
 
methodName - Variable in class org.blocktest.types.StaticMethod
 
methodReturn - Static variable in class org.blocktest.utils.Constant
 
mock(Object...) - Method in class org.blocktest.BTest
Mock the method calls of the block or lambda under test.
MOCK - Static variable in class org.blocktest.utils.Constant
 
MOCK_STR - Static variable in class org.blocktest.utils.Constant
 
mockMethods - Variable in class org.blocktest.BlockTest
 
mockStr(Object...) - Method in class org.blocktest.BTest
TODO: What does this do?

N

name - Variable in class org.blocktest.types.GivenVariable
 
NO_INIT - Static variable in class org.blocktest.utils.Constant
 
noInit(Object...) - Method in class org.blocktest.BTest
Specifies that for the given list of variables, do not initialize their values by inferring from context.
normalizeType(ResolvedReferenceTypeDeclaration) - Static method in class org.blocktest.utils.TypeResolver
 
normalizeType(ResolvedType) - Static method in class org.blocktest.utils.TypeResolver
 

O

org.blocktest - package org.blocktest
 
org.blocktest.types - package org.blocktest.types
 
org.blocktest.utils - package org.blocktest.utils
 
org.blocktest.visitors - package org.blocktest.visitors
 

P

PRIMITIVE_TYPES - Static variable in class org.blocktest.utils.Constant
 

R

renameGiven(String) - Static method in class org.blocktest.utils.Util
 
renameGivenVariables - Variable in class org.blocktest.BlockTest
 
replaceExpressionsWithVariables(Node, Set<String>) - Static method in class org.blocktest.utils.Util
 
resolveType(Type) - Static method in class org.blocktest.utils.TypeResolver
 
resolveType(Type, Map<String, String>) - Static method in class org.blocktest.utils.TypeResolver
Resolve and erase the type of a type node, handling some corner cases: type parameters (need typeParams), and inner class of parent class.

S

setup() - Static method in class org.blocktest.utils.TypeResolver
 
setup(Runnable) - Method in class org.blocktest.BTest
Set up the right environment to test a block or lambda by executing the Runnable.
setup(String) - Method in class org.blocktest.BTest
 
SETUP - Static variable in class org.blocktest.utils.Constant
 
setupBlock - Variable in class org.blocktest.BlockTest
 
sSymbolResolver - Static variable in class org.blocktest.utils.TypeResolver
 
start(Object) - Method in class org.blocktest.BTest
Deprecated, use start(EndAt value) instead.
start(Object, boolean) - Method in class org.blocktest.BTest
Deprecated, use start(EndAt value, boolean endAfter) instead.
start(EndAt) - Method in class org.blocktest.BTest
Set the start point of the block test to be at the value specified by the EndAt enum.
start(EndAt, boolean) - Method in class org.blocktest.BTest
Set the start point of the block test to be at the value specified by the EndAt enum, and decide whether to include the construct specified by the EndAt enum.
start(EndAt, int) - Method in class org.blocktest.BTest
Set the start point of the block test to be at the value specified by the EndAt enum, and at the specified instance.
start(EndAt, int, boolean) - Method in class org.blocktest.BTest
Set the start point of the block test to be at the value specified by the EndAt enum, and at the specified instance, and decide whether to include the construct specified by the EndAt enum.
START - Static variable in class org.blocktest.utils.Constant
 
startLineNo - Variable in class org.blocktest.BlockTest
 
statements - Variable in class org.blocktest.BlockTest
 
staticFields - Static variable in class org.blocktest.TestExtraction
 
StaticMethod - Class in org.blocktest.types
 
StaticMethod(String, String, int) - Constructor for class org.blocktest.types.StaticMethod
 
staticPrivateFields - Static variable in class org.blocktest.TestExtraction
 
sTypeSolver - Static variable in class org.blocktest.utils.TypeResolver
 
substituteMockedValues(BlockStmt, Map<String, List<Expression>>) - Static method in class org.blocktest.utils.Util
 
symbolTable - Variable in class org.blocktest.visitors.ExtractionVisitor.Context
 

T

TARGET - Enum constant in enum org.blocktest.utils.Constant.StatementType
 
TestConverter - Class in org.blocktest
 
TestConverter(HashMap<String, HashSet<Type>>) - Constructor for class org.blocktest.TestConverter
 
TestExtraction - Class in org.blocktest
 
TestExtraction() - Constructor for class org.blocktest.TestExtraction
 
testName - Variable in class org.blocktest.BlockTest
 
Then - Enum constant in enum org.blocktest.types.Flow
 
Then() - Static method in enum org.blocktest.types.Flow
 
ThisFieldReplacementVisitor - Class in org.blocktest.visitors
 
ThisFieldReplacementVisitor() - Constructor for class org.blocktest.visitors.ThisFieldReplacementVisitor
 
toAssignExpr() - Method in class org.blocktest.types.GivenVariable
 
toJUnit(BlockTest) - Method in class org.blocktest.TestConverter
Converts a BlockTest to a JUnit test method.
toString() - Method in class org.blocktest.BlockTest
 
toString() - Method in class org.blocktest.types.GivenVariable
 
toString() - Method in class org.blocktest.types.StaticMethod
 
type - Variable in class org.blocktest.types.GivenVariable
 
TypeResolver - Class in org.blocktest.utils
 
TypeResolver() - Constructor for class org.blocktest.utils.TypeResolver
 

U

Util - Class in org.blocktest.utils
 
Util() - Constructor for class org.blocktest.utils.Util
 

V

value - Variable in class org.blocktest.types.GivenVariable
 
valueOf(String) - Static method in enum org.blocktest.types.EndAt
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.blocktest.types.Flow
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.blocktest.utils.Constant.StatementType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.blocktest.types.EndAt
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.blocktest.types.Flow
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.blocktest.utils.Constant.StatementType
Returns an array containing the constants of this enum type, in the order they are declared.
VariablesCollectionVisitor - Class in org.blocktest.visitors
 
VariablesCollectionVisitor() - Constructor for class org.blocktest.visitors.VariablesCollectionVisitor
 
visit(ConstructorDeclaration, Void) - Method in class org.blocktest.visitors.BlockTestConversionVisitor
 
visit(ConstructorDeclaration, ExtractionVisitor.Context) - Method in class org.blocktest.visitors.ExtractionVisitor
 
visit(MethodDeclaration, ExtractionVisitor.Context) - Method in class org.blocktest.visitors.ExtractionVisitor
 
visit(Parameter, ExtractionVisitor.Context) - Method in class org.blocktest.visitors.ExtractionVisitor
 
visit(VariableDeclarator, Void) - Method in class org.blocktest.visitors.VariablesCollectionVisitor
 
visit(VariableDeclarator, ExtractionVisitor.Context) - Method in class org.blocktest.visitors.ExtractionVisitor
 
visit(AssignExpr, Void) - Method in class org.blocktest.visitors.VariablesCollectionVisitor
 
visit(AssignExpr, ExtractionVisitor.Context) - Method in class org.blocktest.visitors.ExtractionVisitor
 
visit(FieldAccessExpr, Void) - Method in class org.blocktest.visitors.ThisFieldReplacementVisitor
 
visit(LambdaExpr, ExtractionVisitor.Context) - Method in class org.blocktest.visitors.ExtractionVisitor
 
visit(BlockStmt, Void) - Method in class org.blocktest.visitors.BlockTestConversionVisitor
 
visit(BlockStmt, ExtractionVisitor.Context) - Method in class org.blocktest.visitors.ExtractionVisitor
 
visit(BreakStmt, Void) - Method in class org.blocktest.visitors.BreakReplacementVisitor
 
visit(DoStmt, Void) - Method in class org.blocktest.visitors.BlockTestConversionVisitor
 
visit(ExpressionStmt, Void) - Method in class org.blocktest.visitors.DeclarationRemovalVisitor
 
visit(ExpressionStmt, Void) - Method in class org.blocktest.visitors.LambdaTransformationVisitor
 
visit(ExpressionStmt, ExtractionVisitor.Context) - Method in class org.blocktest.visitors.ExtractionVisitor
 
visit(ForEachStmt, Void) - Method in class org.blocktest.visitors.BlockTestConversionVisitor
 
visit(ForEachStmt, ExtractionVisitor.Context) - Method in class org.blocktest.visitors.ExtractionVisitor
 
visit(ForStmt, Void) - Method in class org.blocktest.visitors.BlockTestConversionVisitor
 
visit(ForStmt, ExtractionVisitor.Context) - Method in class org.blocktest.visitors.ExtractionVisitor
 
visit(IfStmt, Void) - Method in class org.blocktest.visitors.BlockTestConversionVisitor
 
visit(IfStmt, Void) - Method in class org.blocktest.visitors.FlowControllingVisitor
 
visit(SwitchEntry, Void) - Method in class org.blocktest.visitors.BlockTestConversionVisitor
 
visit(TryStmt, Void) - Method in class org.blocktest.visitors.BlockTestConversionVisitor
 
visit(WhileStmt, Void) - Method in class org.blocktest.visitors.BlockTestConversionVisitor
 
A B C D E F G I J L M N O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values