A B C E F G H I J L M O P R S T V

A

addAttachment(Class<T>, Object) - Method in interface org.jboss.osgi.husky.Context
Add arbitrary attachment
addAttachment(Class<T>, String, Object) - Method in interface org.jboss.osgi.husky.Context
Add arbitrary attachment with name
addAttachment(String, Object) - Method in interface org.jboss.osgi.husky.Context
Add arbitrary attachment with name
addFailure(Failure) - Method in interface org.jboss.osgi.husky.Response
Add a failure to the response
addPackageListener(PackageListener) - Method in interface org.jboss.osgi.husky.runtime.Connector
Add a PackageListener to this connector

B

Bridge - Interface in org.jboss.osgi.husky
A Bridge intercepts a test and delegates the execution to the same (or another) test in and isolated test environment.
BridgeFactory - Class in org.jboss.osgi.husky
Loads the configured Bridge instance.
BridgeFactory() - Constructor for class org.jboss.osgi.husky.BridgeFactory
 
bundleChanged(BundleEvent) - Method in class org.jboss.osgi.husky.runtime.osgi.HuskyExtender
 

C

Connector - Interface in org.jboss.osgi.husky.runtime
A Connector is the receiving side of a test request.
Context - Interface in org.jboss.osgi.husky
The Context is a bucket of typed/named attachemnts.
Context.Key - Class in org.jboss.osgi.husky
A key for attachements
Context.Key(Class<?>, String) - Constructor for class org.jboss.osgi.husky.Context.Key
Construct the key with optional class and name

E

equals(Object) - Method in class org.jboss.osgi.husky.Context.Key
Two keys are equal if their Context.Key.toString() is equal

F

Failure - Interface in org.jboss.osgi.husky
An abstraction of a test failure that is associated with a test Response.

G

getAttachment(Class<T>) - Method in interface org.jboss.osgi.husky.Context
Get an arbitrary attachment
getAttachment(Class<T>, String) - Method in interface org.jboss.osgi.husky.Context
Get an arbitrary attachment
getAttachment(String) - Method in interface org.jboss.osgi.husky.Context
Get an arbitrary attachment
getAttachmentKeys() - Method in interface org.jboss.osgi.husky.Context
Get attachment keys
getBridge() - Static method in class org.jboss.osgi.husky.BridgeFactory
Loads the bridge class that is configed through the system property Bridge.
getBridge(Object) - Static method in class org.jboss.osgi.husky.BridgeFactory
Get the cached instance of the bridge class that is configed through the system property Bridge.
getBridge(Object, Properties) - Static method in class org.jboss.osgi.husky.BridgeFactory
Loads the bridge class that is configed through the property Bridge.
getCallerClass() - Method in interface org.jboss.osgi.husky.Bridge
Get the caller's class
getCallerFrame() - Method in interface org.jboss.osgi.husky.Bridge
Get the caller's concatination of class name and method.
getCallerMethod() - Method in interface org.jboss.osgi.husky.Bridge
Get the caller's method
getClassName() - Method in interface org.jboss.osgi.husky.Failure
Get the name of the test class that failed
getClassName() - Method in interface org.jboss.osgi.husky.Request
Get the test case name
getClassName() - Method in class org.jboss.osgi.husky.runtime.junit.JUnitFailure
 
getClassPart() - Method in class org.jboss.osgi.husky.Context.Key
Get the class part for this key
getContext() - Method in class org.jboss.osgi.husky.runtime.junit.JUnitPackageListener
 
getContext() - Method in class org.jboss.osgi.husky.runtime.osgi.OSGiJUnitPackageListener
 
getException() - Method in interface org.jboss.osgi.husky.Failure
Get the exceoption that caused the failure.
getException() - Method in class org.jboss.osgi.husky.runtime.junit.JUnitFailure
 
getFailures() - Method in interface org.jboss.osgi.husky.Response
Get the list of test failures
getInvoker() - Method in interface org.jboss.osgi.husky.Bridge
Get the invoker that is associated with this bridge.
getMessage() - Method in interface org.jboss.osgi.husky.Failure
Get the test failure message
getMessage() - Method in class org.jboss.osgi.husky.runtime.junit.JUnitFailure
 
getMethodName() - Method in interface org.jboss.osgi.husky.Failure
Get the name of the test method that failed
getMethodName() - Method in interface org.jboss.osgi.husky.Request
Get the test method name
getMethodName() - Method in class org.jboss.osgi.husky.runtime.junit.JUnitFailure
 
getNamePart() - Method in class org.jboss.osgi.husky.Context.Key
Get the name part for this key
getPackageListeners() - Method in interface org.jboss.osgi.husky.runtime.Connector
Get the set of registered PackageListeners for this connector
getPackageNames() - Method in interface org.jboss.osgi.husky.runtime.PackageListener
Return the list of packages that this listener can handle.
getRunner() - Method in class org.jboss.osgi.husky.runtime.junit.JUnitPackageListener
 
getRunner() - Method in class org.jboss.osgi.husky.runtime.osgi.OSGiJUnitPackageListener
 

H

hashCode() - Method in class org.jboss.osgi.husky.Context.Key
Two keys have the same hashCode if their Context.Key.toString() is equal
HEADER_TEST_PACKAGE - Static variable in class org.jboss.osgi.husky.runtime.osgi.HuskyExtender
The manifest header that identifies a bundle as Husky test bundle: 'Test-Package'
HuskyActivator - Class in org.jboss.osgi.husky.runtime.osgi
This is the Husky BundleActivator.
HuskyActivator() - Constructor for class org.jboss.osgi.husky.runtime.osgi.HuskyActivator
 
HuskyCapability - Class in org.jboss.osgi.husky
Adds the Husky testing capability to the OSGiRuntime under test.
HuskyCapability() - Constructor for class org.jboss.osgi.husky.HuskyCapability
 
HuskyExtender - Class in org.jboss.osgi.husky.runtime.osgi
The Husky extender is a BundleListener that checkes the HuskyExtender.HEADER_TEST_PACKAGE
HuskyExtender(BundleContext) - Constructor for class org.jboss.osgi.husky.runtime.osgi.HuskyExtender
 

I

injectContext(Class<?>, Object, Context) - Method in class org.jboss.osgi.husky.runtime.junit.JUnitRunner
 
injectContext(Class<?>, Object, Context) - Method in interface org.jboss.osgi.husky.runtime.Runner
Inject the Context in the test case instance
injectField(Field, Object, Context) - Method in class org.jboss.osgi.husky.runtime.junit.JUnitRunner
 
injectField(Field, Object, Context) - Method in class org.jboss.osgi.husky.runtime.osgi.OSGiJUnitRunner
 
injectMethod(Method, Object, Context) - Method in class org.jboss.osgi.husky.runtime.junit.JUnitRunner
 
injectMethod(Method, Object, Context) - Method in class org.jboss.osgi.husky.runtime.osgi.OSGiJUnitRunner
 
invoke(Request) - Method in interface org.jboss.osgi.husky.Invoker
Invokes the associated Connector with a given test Request
Invoker - Interface in org.jboss.osgi.husky
An Invoker is the sending side of a test request.
isRemoteConnection(BundleContext) - Static method in class org.jboss.osgi.husky.runtime.osgi.SocketConnector
 

J

JMXConnector - Class in org.jboss.osgi.husky.runtime.osgi
The JMX connector is a Connector that process Husky requests via an JMX invocation.
JMXConnector(BundleContext) - Constructor for class org.jboss.osgi.husky.runtime.osgi.JMXConnector
 
JMXConnectorMBean - Interface in org.jboss.osgi.husky.runtime.osgi
The management interface of the JMXConnector.
JUnitFailure - Class in org.jboss.osgi.husky.runtime.junit
A Failure implementation that can be constructed from a JUnit4 Failure.
JUnitFailure(Failure) - Constructor for class org.jboss.osgi.husky.runtime.junit.JUnitFailure
 
JUnitPackageListener - Class in org.jboss.osgi.husky.runtime.junit
An implementation of a Runner that uses the JUnit4 Test Runner.
JUnitPackageListener(List<String>) - Constructor for class org.jboss.osgi.husky.runtime.junit.JUnitPackageListener
 
JUnitResponse - Class in org.jboss.osgi.husky.runtime.junit
A Response implementation that can be constructed from a JUnit4 Result.
JUnitResponse(Result) - Constructor for class org.jboss.osgi.husky.runtime.junit.JUnitResponse
 
JUnitRunner - Class in org.jboss.osgi.husky.runtime.junit
An implementation of a Runner that uses the JUnit4 Test Runner.
JUnitRunner() - Constructor for class org.jboss.osgi.husky.runtime.junit.JUnitRunner
 

L

loadTestClass(String) - Method in class org.jboss.osgi.husky.runtime.junit.JUnitPackageListener
 
loadTestClass(String) - Method in class org.jboss.osgi.husky.runtime.osgi.OSGiJUnitPackageListener
 

M

match(Request) - Method in interface org.jboss.osgi.husky.runtime.PackageListener
Return true if the given Request is from a package that this listener can handle.

O

OBJECT_NAME - Static variable in class org.jboss.osgi.husky.runtime.osgi.JMXConnector
 
org.jboss.osgi.husky - package org.jboss.osgi.husky
The Husky Test Harness main package see Bridge for details.
org.jboss.osgi.husky.annotation - package org.jboss.osgi.husky.annotation
Annotaions used by the test harness.
org.jboss.osgi.husky.runtime - package org.jboss.osgi.husky.runtime
 
org.jboss.osgi.husky.runtime.junit - package org.jboss.osgi.husky.runtime.junit
JUnit specific implementations
org.jboss.osgi.husky.runtime.osgi - package org.jboss.osgi.husky.runtime.osgi
 
OSGiJUnitPackageListener - Class in org.jboss.osgi.husky.runtime.osgi
An implementation of a Runner that uses the JUnit4 Test Runner.
OSGiJUnitPackageListener(Bundle, List<String>) - Constructor for class org.jboss.osgi.husky.runtime.osgi.OSGiJUnitPackageListener
 
OSGiJUnitRunner - Class in org.jboss.osgi.husky.runtime.osgi
An extension to the JUnitRunner that injects the OSGi BundleContext.
OSGiJUnitRunner() - Constructor for class org.jboss.osgi.husky.runtime.osgi.OSGiJUnitRunner
 

P

PackageListener - Interface in org.jboss.osgi.husky.runtime
A PackageListener that is associated with a Connector.
process(Request) - Method in interface org.jboss.osgi.husky.runtime.Connector
Handles the test request by dispatching to one of the associated PackageListeners.
process(InputStream) - Method in class org.jboss.osgi.husky.runtime.osgi.JMXConnector
 
process(InputStream) - Method in interface org.jboss.osgi.husky.runtime.osgi.JMXConnectorMBean
Consumes the serialized version of an Request and return the the Response from the test run
PROP_SOCKET_CONNECTOR_HOST - Static variable in class org.jboss.osgi.husky.runtime.osgi.SocketConnector
The Husky socket connector host poperty: 'org.jboss.osgi.husky.runtime.connector.host'
PROP_SOCKET_CONNECTOR_PORT - Static variable in class org.jboss.osgi.husky.runtime.osgi.SocketConnector
The Husky socket connector port poperty: 'org.jboss.osgi.husky.runtime.connector.port'
ProvideContext - Annotation Type in org.jboss.osgi.husky.annotation
An annotation that instructs the Runner to inject the Context into the marked field or method on the test case instance prior to the execution of any test method.

R

removeAttachment(Class<T>) - Method in interface org.jboss.osgi.husky.Context
Remove arbitrary attachments
removeAttachment(Class<T>, String) - Method in interface org.jboss.osgi.husky.Context
Remove arbitrary attachments
removeAttachment(String) - Method in interface org.jboss.osgi.husky.Context
Remove arbitrary attachments
removePackageListener(PackageListener) - Method in interface org.jboss.osgi.husky.runtime.Connector
Remove a PackageListener from this connector
Request - Interface in org.jboss.osgi.husky
An abstraction of a test request.
Response - Interface in org.jboss.osgi.husky
An abstraction of a test response.
run() - Method in interface org.jboss.osgi.husky.Bridge
Intercepts a test and delegates the execution to the same test in the same test class.
run(Class<?>) - Method in interface org.jboss.osgi.husky.Bridge
Intercepts a test and delegates the execution to the same test in a different test class.
run(Class<?>, String) - Method in interface org.jboss.osgi.husky.Bridge
Intercepts a test and delegates the execution to another test in a different test class.
Runner - Interface in org.jboss.osgi.husky.runtime
An abstraction of a test runner that executes the given test case in the isolated test environment.
runTests(Context, Class<?>) - Method in class org.jboss.osgi.husky.runtime.junit.JUnitRunner
Run the tests in the given test class.
runTests(Request) - Method in interface org.jboss.osgi.husky.runtime.PackageListener
Called by Connector when this listener indicated that it can handle the test request.
runTests(Context, Class<?>) - Method in interface org.jboss.osgi.husky.runtime.Runner
Run the tests in the given test class.

S

setInvoker(Invoker) - Method in interface org.jboss.osgi.husky.Bridge
Set the invoker that is associated with this bridge.
SocketConnector - Class in org.jboss.osgi.husky.runtime.osgi
The socket connector is a Connector that process Husky requests via an socket invocations.
SocketConnector(BundleContext) - Constructor for class org.jboss.osgi.husky.runtime.osgi.SocketConnector
 
start(BundleContext) - Method in class org.jboss.osgi.husky.runtime.osgi.HuskyActivator
 
start() - Method in class org.jboss.osgi.husky.runtime.osgi.JMXConnector
 
start() - Method in class org.jboss.osgi.husky.runtime.osgi.SocketConnector
 
stop(BundleContext) - Method in class org.jboss.osgi.husky.runtime.osgi.HuskyActivator
 
stop() - Method in class org.jboss.osgi.husky.runtime.osgi.JMXConnector
 
stop() - Method in class org.jboss.osgi.husky.runtime.osgi.SocketConnector
 

T

toString() - Method in class org.jboss.osgi.husky.Context.Key
Returns the String repesentation of this Key.

V

valueOf(String) - Static method in class org.jboss.osgi.husky.Context.Key
 

A B C E F G H I J L M O P R S T V

Copyright © 2009. All Rights Reserved.