Skip navigation links
A B C D E G H L O R S U W 

A

afterAll(ExtensionContext) - Method in class org.sdase.commons.server.testing.SystemPropertyClassExtension
 
apply(Statement, Description) - Method in class org.sdase.commons.server.testing.EnvironmentRule
Deprecated.
 
apply(Statement, Description) - Method in class org.sdase.commons.server.testing.LazyRule
Deprecated.
 
apply(Statement, Description) - Method in class org.sdase.commons.server.testing.RetryRule
 
apply(Statement, Description) - Method in class org.sdase.commons.server.testing.SystemPropertyRule
 
assertThat(Path) - Static method in class org.sdase.commons.server.testing.GoldenFileAssertions
Creates a new instance of GoldenFileAssertions that asserts the content as text.

B

beforeAll(ExtensionContext) - Method in class org.sdase.commons.server.testing.SystemPropertyClassExtension
 
build() - Method in interface org.sdase.commons.server.testing.builder.ConfigurationBuilders.CustomizationBuilder
 
build() - Method in interface org.sdase.commons.server.testing.builder.DropwizardRuleBuilders.CustomizationBuilder
 
build() - Method in class org.sdase.commons.server.testing.DropwizardConfigurationHelper
 
build() - Method in class org.sdase.commons.server.testing.DropwizardRuleHelper
Deprecated.
 

C

configFrom(Supplier<C1>) - Static method in class org.sdase.commons.server.testing.DropwizardConfigurationHelper
 
ConfigurationBuilders - Interface in org.sdase.commons.server.testing.builder
 
ConfigurationBuilders.CustomizationBuilder<C extends io.dropwizard.Configuration> - Interface in org.sdase.commons.server.testing.builder
 
ConfigurationBuilders.PortBuilder<C extends io.dropwizard.Configuration> - Interface in org.sdase.commons.server.testing.builder
 

D

DropwizardConfigurationHelper<C extends io.dropwizard.Configuration> - Class in org.sdase.commons.server.testing
A helper that creates a Configuration programmatically.
DropwizardRuleBuilders - Interface in org.sdase.commons.server.testing.builder
 
DropwizardRuleBuilders.ConfigurationBuilder<C extends io.dropwizard.Configuration> - Interface in org.sdase.commons.server.testing.builder
 
DropwizardRuleBuilders.CustomizationBuilder<C extends io.dropwizard.Configuration> - Interface in org.sdase.commons.server.testing.builder
 
DropwizardRuleBuilders.PortBuilder<C extends io.dropwizard.Configuration> - Interface in org.sdase.commons.server.testing.builder
 
DropwizardRuleHelper<C extends io.dropwizard.Configuration,A extends io.dropwizard.Application<C>> - Class in org.sdase.commons.server.testing
Deprecated.
Prefer the original DropwizardAppRule and a config file with the following minimal content:

 # use random ports so that tests can run in parallel
 # and do not affect each other when one is not shutting down
 server:
   applicationConnectors:
   - type: http
     port: 0
   adminConnectors:
   - type: http
     port: 0
 
Instead of specifying connectors in a config file you can create random ports programmatically:

 new DropwizardAppRule<>(
   App.class,
   randomPorts(),
   ...);
 
When using Junit5 use DropwizardAppExtension.
dropwizardTestAppFrom(Class<A1>) - Static method in class org.sdase.commons.server.testing.DropwizardRuleHelper
Deprecated.
Provides a builder that is able to create a DropwizardRuleHelper using programmatic custom configuration without the need for a configuration yaml file.

E

Environment - Class in org.sdase.commons.server.testing
Deprecated.
Java 17 will make it very cumbersome using environment variables; try to use system properties instead
EnvironmentRule - Class in org.sdase.commons.server.testing
Deprecated.
changing environment variables is not easily supported in Java 17; please consider using SystemPropertyRule instead
EnvironmentRule() - Constructor for class org.sdase.commons.server.testing.EnvironmentRule
Deprecated.
 

G

getRule() - Method in class org.sdase.commons.server.testing.LazyRule
Deprecated.
Provides access to the wrapped rule.
GoldenFileAssertions - Class in org.sdase.commons.server.testing
Special assertions for Path objects to check if a file matches the expected contents and updates them if needed.

H

hasContentAndUpdateGolden(String) - Method in class org.sdase.commons.server.testing.GoldenFileAssertions
Verifies that the text content of the actual Path is exactly equal to the given one.
hasYamlContentAndUpdateGolden(String) - Method in class org.sdase.commons.server.testing.GoldenFileAssertions
Verifies that the text content of the actual Path equals the semantic of the given YAML content.

L

LazyRule<T extends org.junit.rules.TestRule> - Class in org.sdase.commons.server.testing
Deprecated.
Use ConfigOverride.config(String, Supplier) instead. The above example can be written as:
   class MyTest {
     private static final WireMockClassRule WIRE =
         new WireMockClassRule(wireMockConfig().dynamicPort());
     private static final DropwizardAppRule<AppConfiguration> DW =
         new DropwizardAppRule<>(
             TestApplication.class,
             ResourceHelpers.resourceFilePath("test-config.yml"),
             ConfigOverride.config("url", WIRE::baseUrl));
             // or ConfigOverride.config("url", () -> WIRE.baseUrl()));

     @ClassRule public static final RuleChain CHAIN = RuleChain.outerRule(WIRE).around(DW);
   }
 
LazyRule(Supplier<T>) - Constructor for class org.sdase.commons.server.testing.LazyRule
Deprecated.
 

O

org.sdase.commons.server.testing - package org.sdase.commons.server.testing
 
org.sdase.commons.server.testing.builder - package org.sdase.commons.server.testing.builder
 

R

Retry - Annotation Type in org.sdase.commons.server.testing
Marks a test to be repeated if it fails the first time.
RetryRule - Class in org.sdase.commons.server.testing
Retry flaky tests.
RetryRule() - Constructor for class org.sdase.commons.server.testing.RetryRule
 

S

setEnv(String, String) - Static method in class org.sdase.commons.server.testing.Environment
Deprecated.
 
setEnv(String, String) - Method in class org.sdase.commons.server.testing.EnvironmentRule
Deprecated.
 
setEnv(String, Supplier<String>) - Method in class org.sdase.commons.server.testing.EnvironmentRule
Deprecated.
Set an environment variable to a computed value for the test.
setProperty(String, Supplier<String>) - Method in class org.sdase.commons.server.testing.SystemPropertyClassExtension
Set a property to a computed value for the test.
setProperty(String, String) - Method in class org.sdase.commons.server.testing.SystemPropertyClassExtension
Set a property to a value for the test.
setProperty(String, Supplier<String>) - Method in class org.sdase.commons.server.testing.SystemPropertyRule
Set a property to a computed value for the test.
setProperty(String, String) - Method in class org.sdase.commons.server.testing.SystemPropertyRule
Set a property to a value for the test..
SystemPropertyClassExtension - Class in org.sdase.commons.server.testing
JUnit 5 extension for setting system properties for (integration) tests.
SystemPropertyClassExtension() - Constructor for class org.sdase.commons.server.testing.SystemPropertyClassExtension
 
SystemPropertyRule - Class in org.sdase.commons.server.testing
This TestRule allows to set system properties for JUnit tests.
SystemPropertyRule() - Constructor for class org.sdase.commons.server.testing.SystemPropertyRule
 

U

unsetEnv(String) - Static method in class org.sdase.commons.server.testing.Environment
Deprecated.
 
unsetEnv(String) - Method in class org.sdase.commons.server.testing.EnvironmentRule
Deprecated.
 
unsetProperty(String) - Method in class org.sdase.commons.server.testing.SystemPropertyClassExtension
Unset a property for the test.
unsetProperty(String) - Method in class org.sdase.commons.server.testing.SystemPropertyRule
Unset a property for the test.

W

withConfigFrom(Supplier<C>) - Method in interface org.sdase.commons.server.testing.builder.DropwizardRuleBuilders.ConfigurationBuilder
 
withConfigFrom(Supplier<C>) - Method in class org.sdase.commons.server.testing.DropwizardRuleHelper
Deprecated.
 
withConfigurationModifier(Consumer<C>) - Method in interface org.sdase.commons.server.testing.builder.ConfigurationBuilders.CustomizationBuilder
Allows to customize the configuration programmatically.
withConfigurationModifier(Consumer<C>) - Method in interface org.sdase.commons.server.testing.builder.DropwizardRuleBuilders.CustomizationBuilder
Allows to customize the configuration programmatically.
withConfigurationModifier(Consumer<C>) - Method in class org.sdase.commons.server.testing.DropwizardConfigurationHelper
 
withConfigurationModifier(Consumer<C>) - Method in class org.sdase.commons.server.testing.DropwizardRuleHelper
Deprecated.
 
withPorts(int, int) - Method in interface org.sdase.commons.server.testing.builder.ConfigurationBuilders.PortBuilder
Sets the given ports as fixed ports.
withPorts(int, int) - Method in interface org.sdase.commons.server.testing.builder.DropwizardRuleBuilders.PortBuilder
Sets the given ports as fixed ports.
withPorts(int, int) - Method in class org.sdase.commons.server.testing.DropwizardConfigurationHelper
 
withPorts(int, int) - Method in class org.sdase.commons.server.testing.DropwizardRuleHelper
Deprecated.
 
withRandomPorts() - Method in interface org.sdase.commons.server.testing.builder.ConfigurationBuilders.PortBuilder
Configures random application port and the admin port.
withRandomPorts() - Method in interface org.sdase.commons.server.testing.builder.DropwizardRuleBuilders.PortBuilder
Configures random application port and the admin port.
withRandomPorts() - Method in class org.sdase.commons.server.testing.DropwizardConfigurationHelper
 
withRandomPorts() - Method in class org.sdase.commons.server.testing.DropwizardRuleHelper
Deprecated.
 
withRootPath(String) - Method in interface org.sdase.commons.server.testing.builder.ConfigurationBuilders.CustomizationBuilder
Sets the jersey root path, referenced in the config.yaml as
withRootPath(String) - Method in interface org.sdase.commons.server.testing.builder.DropwizardRuleBuilders.CustomizationBuilder
Sets the jersey root path, referenced in the config.yaml as
withRootPath(String) - Method in class org.sdase.commons.server.testing.DropwizardConfigurationHelper
 
withRootPath(String) - Method in class org.sdase.commons.server.testing.DropwizardRuleHelper
Deprecated.
 
A B C D E G H L O R S U W 
Skip navigation links