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

A

addCapability(Capability) - Method in interface org.jboss.osgi.testing.OSGiRuntime
Add a Capability to the runtime.
addFailure(Failure) - Method in interface org.jboss.osgi.husky.Response
Add a failure to the response
assembleBundle(String, String, Class<?>...) - Method in class org.jboss.osgi.testing.OSGiTest
 
assembleBundle(String, String[], Class<?>...) - Method in class org.jboss.osgi.testing.OSGiTest
 
assembleBundle(String, String, Class<?>...) - Method in class org.jboss.osgi.testing.OSGiTestHelper
 
assembleBundle(String, String[], Class<?>...) - Method in class org.jboss.osgi.testing.OSGiTestHelper
 
assertBundleLoadClass(Bundle, String, boolean) - Method in class org.jboss.osgi.testing.OSGiTest
 
assertBundleLoadClass(Bundle, String, boolean) - Method in class org.jboss.osgi.testing.OSGiTestHelper
 
assertBundleState(int, int) - Method in class org.jboss.osgi.testing.OSGiTest
 
assertBundleState(int, int) - Method in class org.jboss.osgi.testing.OSGiTestHelper
 

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.

E

equals(Object) - Method in class org.jboss.osgi.testing.OSGiBundle
Return true if symbolic name and version are equal

F

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

G

getBootstrapProvider() - Method in class org.jboss.osgi.testing.OSGiTestHelper
 
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.
getBundle(String, Version) - Method in interface org.jboss.osgi.testing.OSGiRuntime
Get the OSGiBundle for a given symbolic name and version In case the version is left unspecified, it returns the first bundle that matches the symbolic name.
getBundle(long) - Method in interface org.jboss.osgi.testing.OSGiRuntime
Get the OSGiBundle for a given bundle id.
getBundleId() - Method in class org.jboss.osgi.testing.OSGiBundle
Returns this bundle's unique identifier.
getBundles() - Method in interface org.jboss.osgi.testing.OSGiRuntime
Get the array of installed OSGiBundles
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
 
getContext() - Method in class org.jboss.osgi.husky.runtime.junit.JUnitPackageListener
 
getContext() - Method in class org.jboss.osgi.husky.runtime.osgi.OSGiJUnitPackageListener
 
getDataFile(String) - Method in class org.jboss.osgi.testing.OSGiBundle
Creates a File object for a file in the persistent storage area provided for the bundle by the Framework.
getDefaultRuntime() - Method in class org.jboss.osgi.testing.OSGiTest
Delegates to OSGiTestHelper.getDefaultRuntime()
getDefaultRuntime() - Method in class org.jboss.osgi.testing.OSGiTestHelper
 
getEmbeddedRuntime() - Method in class org.jboss.osgi.testing.OSGiTest
Delegates to OSGiTestHelper.getEmbeddedRuntime()
getEmbeddedRuntime() - Method in class org.jboss.osgi.testing.OSGiTestHelper
 
getEntry(String) - Method in class org.jboss.osgi.testing.OSGiBundle
Returns a URL to the entry at the specified path in this bundle.
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
getFrameworkName() - Method in class org.jboss.osgi.testing.OSGiTest
Delegates to OSGiTestHelper.getFrameworkName()
getFrameworkName() - Method in class org.jboss.osgi.testing.OSGiTestHelper
 
getHeaders() - Method in class org.jboss.osgi.testing.OSGiBundle
Returns this bundle's Manifest headers and values.
getHeaders(String) - Method in class org.jboss.osgi.testing.OSGiBundle
Returns this bundle's Manifest headers and values localized to the specified locale.
getInitialContext() - Method in interface org.jboss.osgi.testing.OSGiRuntime
Get the initial naming context for this OSGiRuntime
getInitialContext() - Method in class org.jboss.osgi.testing.OSGiTest
Delegates to OSGiTestHelper.getInitialContext()
getInitialContext() - Method in class org.jboss.osgi.testing.OSGiTestHelper
 
getInvoker() - Method in interface org.jboss.osgi.husky.Bridge
Get the invoker that is associated with this bridge.
getLocation() - Method in class org.jboss.osgi.testing.OSGiBundle
Returns this bundle's location.
getLongName() - Method in class org.jboss.osgi.testing.OSGiTest
Get the the FQN of this test class.
getMBeanServer() - Method in interface org.jboss.osgi.testing.OSGiRuntime
Get the MBeanServerConnection for this OSGiRuntime
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
 
getPackageAdmin() - Method in interface org.jboss.osgi.testing.OSGiRuntime
Get an abstraction of the PackageAdmin.
getPackageNames() - Method in interface org.jboss.osgi.husky.PackageListener
Return the list of packages that this listener can handle.
getProperty(String) - Method in class org.jboss.osgi.testing.OSGiBundle
Returns the value of the specified property.
getProperty(String) - Method in interface org.jboss.osgi.testing.OSGiServiceReference
Returns the property value to which the specified property key is mapped in the properties Dictionary object of the service referenced by this ServiceReference object.
getPropertyKeys() - Method in interface org.jboss.osgi.testing.OSGiServiceReference
Returns an array of the keys in the properties Dictionary object of the service referenced by this ServiceReference object.
getRemoteRuntime() - Method in class org.jboss.osgi.testing.OSGiTest
Delegates to OSGiTestHelper.getRemoteRuntime()
getRemoteRuntime() - Method in class org.jboss.osgi.testing.OSGiTestHelper
 
getResource(String) - Method in class org.jboss.osgi.testing.OSGiBundle
Find the specified resource from this bundle's class loader.
getResourceFile(String) - Method in class org.jboss.osgi.testing.OSGiTest
Delegates to OSGiTestHelper.getResourceFile(String)
getResourceFile(String) - Method in class org.jboss.osgi.testing.OSGiTestHelper
Try to discover the File for the test resource
getResourceURL(String) - Method in class org.jboss.osgi.testing.OSGiTest
Delegates to OSGiTestHelper.getResourceURL(String)
getResourceURL(String) - Method in class org.jboss.osgi.testing.OSGiTestHelper
Try to discover the URL for the test resource
getRunner() - Method in class org.jboss.osgi.husky.runtime.junit.JUnitPackageListener
 
getRunner() - Method in class org.jboss.osgi.husky.runtime.osgi.OSGiJUnitPackageListener
 
getRuntime() - Method in class org.jboss.osgi.testing.OSGiBundle
Get the runtime associated with this bundle.
getServerHost() - Method in interface org.jboss.osgi.testing.OSGiRuntime
Get the host name that this OSGiRuntime is running on.
getServerHost() - Method in class org.jboss.osgi.testing.OSGiTest
Delegates to OSGiTestHelper.getServerHost()
getServerHost() - Method in class org.jboss.osgi.testing.OSGiTestHelper
 
getServiceReference(String) - Method in interface org.jboss.osgi.testing.OSGiRuntime
Returns a ServiceReference object for a service that implements and was registered under the specified class.
getServiceReference(String, long) - Method in interface org.jboss.osgi.testing.OSGiRuntime
Returns a ServiceReference object for a service that implements and was registered under the specified class.
getServiceReferences(String, String) - Method in interface org.jboss.osgi.testing.OSGiRuntime
Returns an array of ServiceReference objects.
getShortName() - Method in class org.jboss.osgi.testing.OSGiTest
Get the last token in the FQN of this test class.
getState() - Method in class org.jboss.osgi.testing.OSGiBundle
Returns this bundle's current state.
getSymbolicName() - Method in class org.jboss.osgi.testing.OSGiBundle
Returns the symbolic name of this bundle as specified by its Bundle-SymbolicName manifest header.
getTargetContainer() - Method in class org.jboss.osgi.testing.OSGiTest
Delegates to OSGiTestHelper.getTargetContainer()
getTargetContainer() - Method in class org.jboss.osgi.testing.OSGiTestHelper
 
getTestArchiveFile(String) - Method in class org.jboss.osgi.testing.OSGiTest
Delegates to OSGiTestHelper.getTestArchiveFile(String)
getTestArchiveFile(String) - Method in class org.jboss.osgi.testing.OSGiTestHelper
Try to discover the File for the deployment archive
getTestArchivePath(String) - Method in class org.jboss.osgi.testing.OSGiTest
Delegates to OSGiTestHelper.getTestArchivePath(String)
getTestArchivePath(String) - Method in class org.jboss.osgi.testing.OSGiTestHelper
Try to discover the absolute path for the deployment archive
getTestArchiveURL(String) - Method in class org.jboss.osgi.testing.OSGiTest
Delegates to OSGiTestHelper.getTestArchiveURL(String)
getTestArchiveURL(String) - Method in class org.jboss.osgi.testing.OSGiTestHelper
Try to discover the URL for the deployment archive
getTestHelper() - Method in class org.jboss.osgi.testing.OSGiTest
Get the test helper used by this test Overwrite if you need to supply another helper i.e.
getTestPackages(Bundle) - Method in class org.jboss.osgi.husky.runtime.osgi.ManifestProcessor
 
getVersion() - Method in class org.jboss.osgi.testing.OSGiBundle
Returns the version of this bundle.

H

hashCode() - Method in class org.jboss.osgi.testing.OSGiBundle
Returns the hash code for this bundle.
HEADER_TEST_PACKAGE - Static variable in class org.jboss.osgi.husky.runtime.osgi.ManifestProcessor
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 processes the ManifestProcessor.HEADER_TEST_PACKAGE.
HuskyExtender(ManifestProcessor) - Constructor for class org.jboss.osgi.husky.runtime.osgi.HuskyExtender
 
HuskyInterceptor - Class in org.jboss.osgi.husky.runtime.osgi
The Husky interceptor processes the ManifestProcessor.HEADER_TEST_PACKAGE.
HuskyInterceptor(ManifestProcessor) - Constructor for class org.jboss.osgi.husky.runtime.osgi.HuskyInterceptor
 

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
 
installBundle(String) - Method in interface org.jboss.osgi.testing.OSGiRuntime
Install an OSGiBundle from the given location.
invoke(Request) - Method in interface org.jboss.osgi.husky.Invoker
Invokes the associated Connector with a given test Request
invoke(int, InvocationContext) - Method in class org.jboss.osgi.husky.runtime.osgi.HuskyInterceptor
 
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
 
isRemoteRuntime() - Method in interface org.jboss.osgi.testing.OSGiRuntime
Return true if this OSGiRuntime connects to a remote Framework.

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

loadClass(String) - Method in class org.jboss.osgi.testing.OSGiBundle
Loads the specified class using this bundle's class loader.
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

ManifestProcessor - Class in org.jboss.osgi.husky.runtime.osgi
Processed the ManifestProcessor.HEADER_TEST_PACKAGE and registers the listeners.
ManifestProcessor(BundleContext) - Constructor for class org.jboss.osgi.husky.runtime.osgi.ManifestProcessor
 
match(Request) - Method in interface org.jboss.osgi.husky.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
The ObjectName for this service: jboss.osgi.husky:service=jmx-connector
org.jboss.osgi.husky - package org.jboss.osgi.husky
The Husky Test Harness main package see Bridge for details.
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
 
org.jboss.osgi.testing - package org.jboss.osgi.testing
OSGi test support classes and interfaces.
OSGiBundle - Class in org.jboss.osgi.testing
An abstraction of an OSGi Bundle.
OSGiBundle() - Constructor for class org.jboss.osgi.testing.OSGiBundle
 
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
 
OSGiPackageAdmin - Interface in org.jboss.osgi.testing
An abstraction of the OSGi PackageAdmin service.
OSGiRuntime - Interface in org.jboss.osgi.testing
An abstraction of an OSGi Runtime.
OSGiServiceReference - Interface in org.jboss.osgi.testing
An abstraction of the OSGi ServiceReference
OSGiTest - Class in org.jboss.osgi.testing
An abstract OSGi Test.
OSGiTest() - Constructor for class org.jboss.osgi.testing.OSGiTest
 
OSGiTestHelper - Class in org.jboss.osgi.testing
An OSGi Test Helper
OSGiTestHelper() - Constructor for class org.jboss.osgi.testing.OSGiTestHelper
 

P

PackageListener - Interface in org.jboss.osgi.husky
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'

R

refreshPackages(OSGiBundle[]) - Method in interface org.jboss.osgi.testing.OSGiPackageAdmin
Forces the update (replacement) or removal of packages exported by the specified bundles.
registerPackageListener(Bundle, List<String>) - Method in class org.jboss.osgi.husky.runtime.osgi.ManifestProcessor
 
removeCapability(Capability) - Method in interface org.jboss.osgi.testing.OSGiRuntime
Remove a Capability from the runtime.
Request - Interface in org.jboss.osgi.husky
An abstraction of a test request.
resolveBundles(OSGiBundle[]) - Method in interface org.jboss.osgi.testing.OSGiPackageAdmin
Resolve the specified bundles.
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(Request) - Method in interface org.jboss.osgi.husky.PackageListener
Called by Connector when this listener indicated that it can handle the test request.
runTests(Context, Class<?>) - Method in class org.jboss.osgi.husky.runtime.junit.JUnitRunner
Run the tests in the given test class.
runTests(Context, Class<?>) - Method in interface org.jboss.osgi.husky.runtime.Runner
Run the tests in the given test class.
RuntimeContext - Annotation Type in org.jboss.osgi.husky
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.

S

setInvoker(Invoker) - Method in interface org.jboss.osgi.husky.Bridge
Set the invoker that is associated with this bridge.
setUp() - Method in class org.jboss.osgi.testing.OSGiTest
Writes a a debug start messge
shutdown() - Method in interface org.jboss.osgi.testing.OSGiRuntime
Shutdown the OSGiRuntime.
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
 
start() - Method in class org.jboss.osgi.testing.OSGiBundle
Starts this bundle.
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
 
stop() - Method in class org.jboss.osgi.testing.OSGiBundle
Stops this bundle.

T

tearDown() - Method in class org.jboss.osgi.testing.OSGiTest
Writes a a debug stop messge
toString() - Method in class org.jboss.osgi.testing.OSGiBundle
Returns the string representation of this bundle

U

ungetBootstrapProvider() - Method in class org.jboss.osgi.testing.OSGiTestHelper
 
uninstall() - Method in class org.jboss.osgi.testing.OSGiBundle
Uninstalls this bundle.

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

Copyright © 2010. All Rights Reserved.