Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addConstantServices(ExtensionContext) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
-
Uses
ServiceLocatorUtilities.addOneConstant(ServiceLocator, Object)calls to set some useful implicit services:@Inject- named after the test.Logger - addMockDescriptor(Class<?>) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
-
Creates a mock for the interface.
- afterAll(ExtensionContext) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
- afterEach(ExtensionContext) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
B
- beforeAll(ExtensionContext) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
- beforeEach(ExtensionContext) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
C
- Classes - Annotation Interface in org.glassfish.tests.utils.junit
-
Set of additional classes processed by HK2.
- createAsadminSubject() - Method in class org.glassfish.tests.utils.mock.MockGenerator
-
Creates a new
Subjectinstance holding two principals: asadmin _InternalSystemAdministrator_ - createLocator(ExtensionContext) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
- createMockDescriptor(Class<T>) - Method in class org.glassfish.tests.utils.mock.MockGenerator
-
Creates a mock implementation for the given interface and a descriptor for it.
- createMockThrowingExceptions(Class<T>) - Method in class org.glassfish.tests.utils.mock.MockGenerator
-
Creates a mock implementation for the given interface.
- createWar(File, Class<?>...) - Static method in class org.glassfish.tests.utils.ServerUtils
-
Creates a simple war file made of provided classes.
D
- detectBasedir() - Static method in class org.glassfish.tests.utils.junit.JUnitSystem
-
Useful for a heuristic inside Eclipse and other environments.
- DirectoryMatchers - Class in org.glassfish.tests.utils.junit.matcher
- doGet(HttpServletRequest, HttpServletResponse) - Method in class org.glassfish.tests.utils.example.TestServlet
- DomainXml - Annotation Interface in org.glassfish.tests.utils.junit
-
Path to custom domain.xml used to load configuration by the
HK2JUnit5Extension - domDocumentClass() - Element in annotation interface org.glassfish.tests.utils.junit.DomainXml
-
Default is
TestDocument. - download(URL) - Static method in class org.glassfish.tests.utils.ServerUtils
-
Downloads content from the url.
E
- ExcludeClasses - Annotation Interface in org.glassfish.tests.utils.junit
-
You can use this annotation to exclude classes from HK2 processing.
G
- getClasses(Class<?>) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
- getClassLoader(ExtensionContext) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
- getDomainXml(Class<?>) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
- getDomainXmlDomClass(Class<?>) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
- getExcludedClasses(Class<?>) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
- getField(Object, String) - Static method in class org.glassfish.tests.utils.ReflectionUtils
-
Deprecated.
- getField(Object, String, Class<?>) - Static method in class org.glassfish.tests.utils.ReflectionUtils
-
Deprecated.
- getFreePort() - Static method in class org.glassfish.tests.utils.ServerUtils
-
Tries to allocate a free local port.
- getLocalIP4Address() - Static method in class org.glassfish.tests.utils.ServerUtils
- getLocator() - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
- getLocatorFilePaths(ExtensionContext) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
- getLocatorName(ExtensionContext) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
- getPackages(Class<?>) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
- getStartupContextProperties(ExtensionContext) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
- getStaticField(Class<?>, String) - Static method in class org.glassfish.tests.utils.ReflectionUtils
-
Deprecated.
- getterMatches(Function<File, T>, Matcher<T>) - Static method in class org.glassfish.tests.utils.junit.matcher.TextFileMatchers
-
Creates a matcher for matching some file feature.
H
- hasEntryCount(long) - Static method in class org.glassfish.tests.utils.junit.matcher.DirectoryMatchers
- hasEntryCount(Matcher<Long>) - Static method in class org.glassfish.tests.utils.junit.matcher.DirectoryMatchers
- hasLineCount(long, Charset) - Static method in class org.glassfish.tests.utils.junit.matcher.TextFileMatchers
-
Creates a matcher for matching file's line count.
- hasLineCount(Matcher<Long>, Charset) - Static method in class org.glassfish.tests.utils.junit.matcher.TextFileMatchers
-
Creates a matcher for matching file's line count.
- HK2_CONFIG_LOCK_TIME_OUT_IN_SECONDS - Static variable in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
-
One second timeout set as system property before tests start.
- HK2JUnit5Extension - Class in org.glassfish.tests.utils.junit
-
This JUnit5 extension allows to use HK2 services in tests.
- HK2JUnit5Extension() - Constructor for class org.glassfish.tests.utils.junit.HK2JUnit5Extension
J
- JUnitSystem - Class in org.glassfish.tests.utils.junit
-
Helper class to make possible running tests the same way in Maven as in Eclipse IDE, probably also other environments.
L
- LocatorFiles - Annotation Interface in org.glassfish.tests.utils.junit
-
A set of resource paths with HK2 "inhabitant files" processed by HK2.
M
- make(ServiceLocator, XMLStreamReader, ConfigBean, ConfigModel) - Method in class org.glassfish.tests.utils.mock.TestDocument
- MockGenerator - Class in org.glassfish.tests.utils.mock
-
Generates some objects useful for tests, but not simply available in the test context.
- MockGenerator() - Constructor for class org.glassfish.tests.utils.mock.MockGenerator
O
- org.glassfish.tests.utils - package org.glassfish.tests.utils
- org.glassfish.tests.utils.example - package org.glassfish.tests.utils.example
- org.glassfish.tests.utils.junit - package org.glassfish.tests.utils.junit
- org.glassfish.tests.utils.junit.matcher - package org.glassfish.tests.utils.junit.matcher
- org.glassfish.tests.utils.mock - package org.glassfish.tests.utils.mock
P
- Packages - Annotation Interface in org.glassfish.tests.utils.junit
-
Set of fully qualified packages processed by HK2.
- postProcessTestInstance(Object, ExtensionContext) - Method in class org.glassfish.tests.utils.junit.HK2JUnit5Extension
R
- ReflectionUtils - Class in org.glassfish.tests.utils
-
Deprecated.Using reflection in tests is considered as bad practice. Use it only if you don't have another option.
- ReflectionUtils() - Constructor for class org.glassfish.tests.utils.ReflectionUtils
-
Deprecated.
- RESPONSE_TEXT - Static variable in class org.glassfish.tests.utils.example.TestServlet
- runCommand(GlassFish, String, String) - Static method in class org.glassfish.tests.utils.ServerUtils
-
Executes a command on embedded GlassFish instance.
S
- ServerUtils - Class in org.glassfish.tests.utils
- ServerUtils() - Constructor for class org.glassfish.tests.utils.ServerUtils
- setField(Object, String, Object) - Static method in class org.glassfish.tests.utils.ReflectionUtils
-
Deprecated.Sets the field of the instance to the given value.
- setStaticField(Class<?>, String, Object) - Static method in class org.glassfish.tests.utils.ReflectionUtils
-
Deprecated.Sets the static field of the class to the given value.
T
- TestDocument - Class in org.glassfish.tests.utils.mock
-
Trivial
DomDocumentusually representing domain.xml - TestDocument(ServiceLocator) - Constructor for class org.glassfish.tests.utils.mock.TestDocument
- TestServlet - Class in org.glassfish.tests.utils.example
-
Useful for simple testing of the server.
- TestServlet() - Constructor for class org.glassfish.tests.utils.example.TestServlet
- TextFileMatchers - Class in org.glassfish.tests.utils.junit.matcher
-
Matchers for text files.
- TextFileMatchers() - Constructor for class org.glassfish.tests.utils.junit.matcher.TextFileMatchers
V
- value() - Element in annotation interface org.glassfish.tests.utils.junit.Classes
- value() - Element in annotation interface org.glassfish.tests.utils.junit.DomainXml
- value() - Element in annotation interface org.glassfish.tests.utils.junit.ExcludeClasses
-
Classes of any service implementations that should NOT automatically be added via package scanning or from inhabitant files read
- value() - Element in annotation interface org.glassfish.tests.utils.junit.LocatorFiles
- value() - Element in annotation interface org.glassfish.tests.utils.junit.Packages
All Classes and Interfaces|All Packages|Serialized Form