Class AbstractConfiguration
java.lang.Object
com.github.mjeanroy.junit.servers.servers.AbstractConfiguration
- Direct Known Subclasses:
EmbeddedJettyConfiguration
,EmbeddedTomcatConfiguration
Generic configuration that should be extended for
each custom embedded server.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Initialize configuration with default values.protected
AbstractConfiguration
(String classpath, String path, String webapp, int port, Map<String, String> envProperties, List<Hook> hooks, ClassLoader parentClassLoader, String overrideDescriptor) Initialize configuration. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Ensure that an object can be equal to the current instance.boolean
Getclasspath
.GetenvProperties
as a non-modifiable map.getHooks()
Gethooks
as a non-modifiable list.GetoverrideDescriptor
.GetparentClassLoader
, as a non-modifiable collection.getPath()
Getpath
.int
getPort()
Getport
.Getwebapp
.int
hashCode()
toString()
-
Constructor Details
-
AbstractConfiguration
protected AbstractConfiguration()Initialize configuration with default values. -
AbstractConfiguration
protected AbstractConfiguration(String classpath, String path, String webapp, int port, Map<String, String> envProperties, List<Hook> hooks, ClassLoader parentClassLoader, String overrideDescriptor) Initialize configuration.- Parameters:
classpath
- Newclasspath
value.path
- Newpath
value.webapp
- Newwebapp
value.port
- Newport
value.envProperties
- NewenvProperties
value.hooks
- Newhooks
value.parentClassLoader
- NewparentClassLoader
value.overrideDescriptor
- NewoverrideDescriptor
value.
-
-
Method Details
-
getPath
Getpath
.- Returns:
path
-
getWebapp
Getwebapp
.- Returns:
webapp
-
getClasspath
Getclasspath
.- Returns:
classpath
-
getParentClassLoader
GetparentClassLoader
, as a non-modifiable collection.- Returns:
parentClassLoader
-
getPort
public int getPort()Getport
.- Returns:
port
-
getOverrideDescriptor
GetoverrideDescriptor
.- Returns:
overrideDescriptor
-
getEnvProperties
GetenvProperties
as a non-modifiable map.- Returns:
envProperties
-
getHooks
Gethooks
as a non-modifiable list.- Returns:
hooks
-
equals
-
canEqual
Ensure that an object can be equal to the current instance.- Parameters:
o
- The tested object.- Returns:
true
ifo
can be equal tothis
,false
otherwise.
-
hashCode
public int hashCode() -
toString
-