Package org.zkoss.zats.mimic
Class Zats
- java.lang.Object
-
- org.zkoss.zats.mimic.Zats
-
public class Zats extends Object
The main class to start or stop the defaultZatsEnvironment- Author:
- Hawk, Dennis
-
-
Constructor Summary
Constructors Constructor Description Zats()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcleanup()to cleanup the heldZatsEnvironmentstatic voidend()to end the test runtime and destroy the heldZatsEnvironment.static voidinit(String resourceRoot)To initialize a test runtime and hold aZatsEnvironment, the default environment isDefaultZatsEnvironment.static ClientnewClient()to create a new client
-
-
-
Method Detail
-
init
public static void init(String resourceRoot)
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
public static Client newClient()
to create a new client- Returns:
- a new client
-
cleanup
public static void cleanup()
to cleanup the heldZatsEnvironment
-
-