public class AutoClient
extends org.junit.rules.ExternalResource
TestRule
implementing ExternalResource
automatically creating and destroying a new Zats Client
instance.
Used with Rule
this will provide a pluggable alternative to separate methods annotated with Before
and After
Constructor and Description |
---|
AutoClient(AutoEnvironment autoEnv) |
Modifier and Type | Method and Description |
---|---|
protected void |
after() |
protected void |
before() |
DesktopAgent |
connect(java.lang.String zulPath)
convenience method to load a zul page directly (calls:
Client.connect(String) ) |
Client |
getClient()
allows access to the automatically created Zats
Client instance. |
public AutoClient(AutoEnvironment autoEnv)
protected void before() throws java.lang.Throwable
before
in class org.junit.rules.ExternalResource
java.lang.Throwable
protected void after()
after
in class org.junit.rules.ExternalResource
public DesktopAgent connect(java.lang.String zulPath)
Client.connect(String)
)zulPath
- DesktopAgent
Copyright © 2019 Potix Corporation. All rights reserved.