public final class Exist extends Object
Automates verification of site reachability, reducing time spent troubleshooting when dependencies fail.
Modifier and Type | Field and Description |
---|---|
private Controller |
controller
Controller instance for composition base.
|
private ResultBuilder |
model
Controller model builder to compose model of test data.
|
Modifier | Constructor and Description |
---|---|
private |
Exist(Controller contollerParam)
Private constructor for use by
nuevo(us.johnmeyer.sitetest.core.Controller.Builder) . |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] argsParam)
Entry method for command line access - runs one controller.
|
static Exist |
nuevo(Controller.Builder controllerBuilderParam)
Returns a new Exist controller instance based on builder.
|
Result |
run()
Checks if the URL is reachable.
|
String |
toString()
Returns state information.
|
private final Controller controller
private ResultBuilder model
private Exist(Controller contollerParam)
nuevo(us.johnmeyer.sitetest.core.Controller.Builder)
. Ensure
URL syntax is valid before invocation.contollerParam
- Controller instance to embed in the test.public static void main(String[] argsParam)
argsParam
- command line argument: URL of site to qualifypublic static Exist nuevo(Controller.Builder controllerBuilderParam)
controllerBuilderParam
- Readied controller builder.NullPointerException
- if input parameter is nullpublic String toString()
public Result run()
Copyright © 2018. All rights reserved.