Configurer<GetInstallerPackageNameMode.Mode>
@AutoService(Configurer.class) public class GetInstallerPackageNameModeConfigurer extends Object implements Configurer<GetInstallerPackageNameMode.Mode>
GetInstallerPackageNameMode
annotation.Constructor | Description |
---|---|
GetInstallerPackageNameModeConfigurer() |
Modifier and Type | Method | Description |
---|---|---|
GetInstallerPackageNameMode.Mode |
defaultConfig() |
Returns the default configuration for tests that do not specify a configuration of this type.
|
Class<GetInstallerPackageNameMode.Mode> |
getConfigClass() |
Retrieve the class type for this Configurer
|
GetInstallerPackageNameMode.Mode |
getConfigFor(Class<?> testClass) |
Returns the configuration for the given class.
|
GetInstallerPackageNameMode.Mode |
getConfigFor(Method method) |
Returns the configuration for the given method.
|
GetInstallerPackageNameMode.Mode |
getConfigFor(String packageName) |
Returns the configuration for a given package.
|
GetInstallerPackageNameMode.Mode |
merge(GetInstallerPackageNameMode.Mode parentConfig,
GetInstallerPackageNameMode.Mode childConfig) |
Merges two configurations.
|
public GetInstallerPackageNameModeConfigurer()
public Class<GetInstallerPackageNameMode.Mode> getConfigClass()
Configurer
getConfigClass
in interface Configurer<GetInstallerPackageNameMode.Mode>
@Nonnull public GetInstallerPackageNameMode.Mode defaultConfig()
Configurer
defaultConfig
in interface Configurer<GetInstallerPackageNameMode.Mode>
public GetInstallerPackageNameMode.Mode getConfigFor(@Nonnull String packageName)
Configurer
This method will be called once for package in the hierarchy leading to the test class being
configured. For example, for com.example.FooTest
, this method will be called three
times with "com.example"
, "@com"
, and ""
(representing the top level
package).
getConfigFor
in interface Configurer<GetInstallerPackageNameMode.Mode>
packageName
- the name of the package, or the empty string representing the top level
unnamed packagepublic GetInstallerPackageNameMode.Mode getConfigFor(@Nonnull Class<?> testClass)
Configurer
This method will be called for each class in the test's class inheritance hierarchy.
getConfigFor
in interface Configurer<GetInstallerPackageNameMode.Mode>
public GetInstallerPackageNameMode.Mode getConfigFor(@Nonnull Method method)
Configurer
getConfigFor
in interface Configurer<GetInstallerPackageNameMode.Mode>
@Nonnull public GetInstallerPackageNameMode.Mode merge(@Nonnull GetInstallerPackageNameMode.Mode parentConfig, @Nonnull GetInstallerPackageNameMode.Mode childConfig)
Configurer
Configurer.getConfigFor(java.lang.String)
returns a non-null configuration object.merge
in interface Configurer<GetInstallerPackageNameMode.Mode>
parentConfig
- a less specific configuration objectchildConfig
- a more specific configuration object