Back to Jukito Home
A B C E F G I J M O P R S T U V W 

A

All - Annotation Type in org.jukito
This annotation can be used on one or more parameter of a test function.

B

BindingsCollector - Class in org.jukito
Collects all the bindings from a Guice module, so that Jukito can identify missing bindings and bind them to mock or instances.
BindingsCollector.BindingInfo - Class in org.jukito
Information on a binding, used by Jukito to identify provided keys and needed keys.
BindingsCollector.BindingInfo() - Constructor for class org.jukito.BindingsCollector.BindingInfo
 
BindingsCollector.GuiceBindingVisitor<T> - Class in org.jukito
This visitor collects all information on guice bindings.
BindingsCollector.GuiceBindingVisitor() - Constructor for class org.jukito.BindingsCollector.GuiceBindingVisitor
 
BindingsCollector.GuiceElementVisitor - Class in org.jukito
This visitor collects all information on various guice elements.
BindingsCollector.GuiceElementVisitor() - Constructor for class org.jukito.BindingsCollector.GuiceElementVisitor
 
BindingsCollector.GuiceScopingVisitor - Class in org.jukito
This visitor collects all information on guice scopes associated to the bindings.
BindingsCollector.GuiceScopingVisitor() - Constructor for class org.jukito.BindingsCollector.GuiceScopingVisitor
 
bindingsObserved - Variable in class org.jukito.JukitoModule
 
bindMany(Class<T>, Class<? extends T>...) - Method in class org.jukito.TestModule
This method binds many different classes to the same interface.
bindMany(TypeLiteral<T>, TypeLiteral<? extends T>...) - Method in class org.jukito.TestModule
This method binds many different type litterals to the same type litteral.
bindManyInstances(Class<T>, V...) - Method in class org.jukito.TestModule
This method binds many different instances to the same class or interface.
bindManyInstances(TypeLiteral<T>, V...) - Method in class org.jukito.TestModule
This method binds many different instances to the same type literal.
bindMock(Class<T>) - Method in class org.jukito.TestModule
Binds an interface to a mocked version of itself.
bindMock(TypeLiteral<T>) - Method in class org.jukito.TestModule
Binds an interface annotated with a @Named to a mocked version of itself.
bindNamed(Class<T>, String) - Method in class org.jukito.TestModule
Binds an interface annotated with a @Named.
bindNamed(TypeLiteral<T>, String) - Method in class org.jukito.TestModule
Binds an interface annotated with a @Named.
bindNamedMock(Class<T>, String) - Method in class org.jukito.TestModule
Binds an interface annotated with a @Named to a mocked version of itself.
bindNamedMock(TypeLiteral<T>, String) - Method in class org.jukito.TestModule
Binds an interface annotated with a @Named to a mocked version of itself.
bindNamedSpy(Class<T>, String) - Method in class org.jukito.TestModule
Binds a concrete object type annotated with a @Named so that spies of instances are returned instead of instances themselves.
bindNamedSpy(TypeLiteral<T>, String) - Method in class org.jukito.TestModule
Binds a concrete object type annotated with a @Named so that spies of instances are returned instead of instances themselves.
bindScopes() - Method in class org.jukito.TestModule
 
bindSpy(Class<T>) - Method in class org.jukito.TestModule
Binds a concrete object type so that spies of instances are returned instead of instances themselves.
bindSpy(TypeLiteral<T>) - Method in class org.jukito.TestModule
Binds a concrete object type so that spies of instances are returned instead of instances themselves.
boundInstance - Variable in class org.jukito.BindingsCollector.BindingInfo
 

C

clear() - Static method in class org.jukito.TestScope
Clears all the instances of test-scoped singletons.
collectBindings() - Method in class org.jukito.BindingsCollector
 
computeTestMethods() - Method in class org.jukito.JukitoRunner
 
configure() - Method in class org.jukito.JukitoModule
 
configure() - Method in class org.jukito.TestModule
 
configureTest() - Method in class org.jukito.TestModule
Configures a test Module via the exposed methods.
create(Binding<?>, Key<?>, Object) - Static method in class org.jukito.BindingsCollector.BindingInfo
 
createTest() - Method in class org.jukito.JukitoRunner
 

E

EAGER_SINGLETON - Static variable in class org.jukito.TestScope
Eager test-scoped singleton are similar to test-scoped TestScope.SINGLETON but they get instantiated automatically with each new test.
ensureProvidedKey(Key<T>, Errors) - Static method in class org.jukito.GuiceUtils
 
evaluate() - Method in class org.jukito.InjectedAfterStatements
 
evaluate() - Method in class org.jukito.InjectedBeforeStatements
 

F

forceMock(Class<?>) - Method in class org.jukito.JukitoModule
By default, only abstract classes, interfaces and classes annotated with TestMockSingleton are automatically mocked.

G

get() - Method in class org.jukito.MockProvider
 
getBindingsObserved() - Method in class org.jukito.BindingsCollector
 
getBindingsToUseForParameters() - Method in class org.jukito.InjectedFrameworkMethod
 
getInjector() - Method in class org.jukito.JukitoRunner
Access the Guice injector.
getMethodKeys(Method, Errors) - Static method in class org.jukito.GuiceUtils
 
getProvidedKey(Key<Provider<T>>, Errors) - Static method in class org.jukito.GuiceUtils
 
getProvidedType(TypeLiteral<? extends Provider<? extends T>>, Errors) - Static method in class org.jukito.GuiceUtils
 
getReportWriter() - Method in class org.jukito.JukitoModule
Override and return the Writer you want to use to report the tree of test objects,and whether they were mocked, spied, automatically instantiated, or explicitly bound.
GuiceUtils - Class in org.jukito
A number of useful static methods to manipulate Guice object.
GuiceUtils() - Constructor for class org.jukito.GuiceUtils
 

I

InjectedAfterStatements - Class in org.jukito
A Statement invoking a list of methods with parameters by filling-in these parameters with injected instances.
InjectedAfterStatements(Statement, List<FrameworkMethod>, Object, Injector) - Constructor for class org.jukito.InjectedAfterStatements
 
InjectedBeforeStatements - Class in org.jukito
A Statement invoking a list of methods with parameters by filling-in these parameters with injected instances.
InjectedBeforeStatements(Statement, List<FrameworkMethod>, Object, Injector) - Constructor for class org.jukito.InjectedBeforeStatements
 
InjectedFrameworkMethod - Class in org.jukito
This class is an extension of FrameworkMethod that makes it possible to specify which Binding to use for parameters marked with @All.
InjectedFrameworkMethod(Method) - Constructor for class org.jukito.InjectedFrameworkMethod
 
InjectedFrameworkMethod(Method, List<Binding<?>>) - Constructor for class org.jukito.InjectedFrameworkMethod
 
isProvider(Key<?>) - Static method in class org.jukito.GuiceUtils
 

J

JukitoModule - Class in org.jukito
A guice Module with a bit of syntactic sugar to bind within typical test scopes.
JukitoModule() - Constructor for class org.jukito.JukitoModule
 
JukitoRunner - Class in org.jukito
TODO: Rework this documentation

This class implements the mockito runner but allows Guice dependency injection.

JukitoRunner(Class<?>) - Constructor for class org.jukito.JukitoRunner
 

M

methodInvoker(FrameworkMethod, Object) - Method in class org.jukito.JukitoRunner
 
MockProvider<T> - Class in org.jukito
For use in test cases where an Provider is required to provide an object and the test case needs to provide a mock of the object.
MockProvider(Class<T>) - Constructor for class org.jukito.MockProvider
Construct a Provider that will return mocked objects of the specified types.

O

org.jukito - package org.jukito
 

P

printReport(List<BindingsCollector.BindingInfo>) - Method in class org.jukito.JukitoModule
Outputs the report, see #setReportWriter(Writer).

R

run(RunNotifier) - Method in class org.jukito.JukitoRunner
 

S

setBindingsObserved(List<BindingsCollector.BindingInfo>) - Method in class org.jukito.JukitoModule
Attach this JukitoModule to a list of the bindings that were observed by a preliminary run of BindingsCollector.
setTestClass(Class<?>) - Method in class org.jukito.TestModule
Attach the TestModule to a given test class.
SINGLETON - Static variable in class org.jukito.TestScope
Test-scoped singletons are typically used in test cases for objects that correspond to singletons in the application.

T

testClass - Variable in class org.jukito.TestModule
 
TestEagerSingleton - Annotation Type in org.jukito
This annotation can be used on any classes that should be bound within the TestScope.EAGER_SINGLETON scope.
TestMockSingleton - Annotation Type in org.jukito
This annotation can be used on any classes that should be bound as a mock within the TestScope.SINGLETON scope.
TestModule - Class in org.jukito
A guice Module with a bit of syntactic sugar to bind within typical test scopes.
TestModule() - Constructor for class org.jukito.TestModule
 
TestScope - Class in org.jukito
Container of the TestScope.SINGLETON and TestScope.EAGER_SINGLETON scopes for test cases running with the JukitoRunner.
TestScope() - Constructor for class org.jukito.TestScope
 
TestSingleton - Annotation Type in org.jukito
This annotation can be used on any classes that should be bound within the TestScope.SINGLETON scope.

U

UseModules - Annotation Type in org.jukito
This annotation can be used on a test class together with @RunWith(JukitoRunner.class) to use the bindings contained in the specified modules for the test.

V

validateInstanceMethods(List<Throwable>) - Method in class org.jukito.JukitoRunner
Adds to errors for each method annotated with @Test, @Before, or @After that is not a public, void instance method with no arguments.
validatePublicVoidMethods(Class<? extends Annotation>, boolean, List<Throwable>) - Method in class org.jukito.JukitoRunner
Adds to errors if any method in this class is annotated with the provided annotation, but: is not public, or returns something other than void, or is static (given isStatic is false), or is not static (given isStatic is true).
validateTestMethods(List<Throwable>) - Method in class org.jukito.JukitoRunner
Adds to errors for each method annotated with @Testthat is not a public, void instance method with no arguments.
visit(ProviderBinding<? extends T>) - Method in class org.jukito.BindingsCollector.GuiceBindingVisitor
 
visit(ProviderKeyBinding<? extends T>) - Method in class org.jukito.BindingsCollector.GuiceBindingVisitor
 
visit(ProviderInstanceBinding<? extends T>) - Method in class org.jukito.BindingsCollector.GuiceBindingVisitor
 
visit(InstanceBinding<? extends T>) - Method in class org.jukito.BindingsCollector.GuiceBindingVisitor
 
visit(ConvertedConstantBinding<? extends T>) - Method in class org.jukito.BindingsCollector.GuiceBindingVisitor
 
visit(UntargettedBinding<? extends T>) - Method in class org.jukito.BindingsCollector.GuiceBindingVisitor
 
visit(LinkedKeyBinding<? extends T>) - Method in class org.jukito.BindingsCollector.GuiceBindingVisitor
 
visit(ConstructorBinding<? extends T>) - Method in class org.jukito.BindingsCollector.GuiceBindingVisitor
 
visit(Binding<T>) - Method in class org.jukito.BindingsCollector.GuiceElementVisitor
 
visit(Message) - Method in class org.jukito.BindingsCollector.GuiceElementVisitor
 
visitEagerSingleton() - Method in class org.jukito.BindingsCollector.GuiceScopingVisitor
 
visitScope(Scope) - Method in class org.jukito.BindingsCollector.GuiceScopingVisitor
 
visitScopeAnnotation(Class<? extends Annotation>) - Method in class org.jukito.BindingsCollector.GuiceScopingVisitor
 

W

withAfters(FrameworkMethod, Object, Statement) - Method in class org.jukito.JukitoRunner
 
withBefores(FrameworkMethod, Object, Statement) - Method in class org.jukito.JukitoRunner
 
A B C E F G I J M O P R S T U V W 
Back to Jukito Home

Copyright © 2010-2013 ArcBees Inc.. All Rights Reserved.