Package org.zkoss.zats.mimic
Class Zats
java.lang.Object
org.zkoss.zats.mimic.Zats
The main class to start or stop the default
ZatsEnvironment- Author:
- Hawk, Dennis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcleanup()to cleanup the heldZatsEnvironmentstatic voidend()to end the test runtime and destroy the heldZatsEnvironment.static voidTo initialize a test runtime and hold aZatsEnvironment, the default environment isDefaultZatsEnvironment.static Clientto create a new client
-
Constructor Details
-
Zats
public Zats()
-
-
Method Details
-
init
To initialize a test runtime and hold aZatsEnvironment, the default environment isDefaultZatsEnvironment. It use built-in configuration files(web.xml,zk.xml) for starting quickly and safely.- Parameters:
resourceRoot- the resource root folder of the zul, it is usually the web content folder.
-
end
public static void end()to end the test runtime and destroy the heldZatsEnvironment. -
newClient
to create a new client- Returns:
- a new client
-
cleanup
public static void cleanup()to cleanup the heldZatsEnvironment
-