public class RemoteLogDumperRule
extends org.junit.rules.TestWatcher
SlingClient
or with a Instance
public class LoginTestIT { @Rule public TestRule logDumper = new RemoteLogDumperRule(slingClient); // OR public TestRule logDumper = new RemoteLogDumperRule(myInstance); @Test public void remoteLogin() { //Make calls to remote server assertEquals("testA", name.getMethodName()); } }
Constructor and Description |
---|
RemoteLogDumperRule() |
RemoteLogDumperRule(Instance instance) |
RemoteLogDumperRule(org.apache.sling.testing.clients.SlingClient slingClient) |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
protected void |
failed(Throwable e,
org.junit.runner.Description description) |
protected void |
finished(org.junit.runner.Description description) |
RemoteLogDumperRule |
setInstance(Instance instance) |
RemoteLogDumperRule |
setSlingClient(org.apache.sling.testing.clients.SlingClient slingClient) |
protected void |
starting(org.junit.runner.Description description) |
public RemoteLogDumperRule()
public RemoteLogDumperRule(Instance instance)
public RemoteLogDumperRule(org.apache.sling.testing.clients.SlingClient slingClient)
public RemoteLogDumperRule setSlingClient(org.apache.sling.testing.clients.SlingClient slingClient)
public RemoteLogDumperRule setInstance(Instance instance)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
apply
in class org.junit.rules.TestWatcher
protected void finished(org.junit.runner.Description description)
finished
in class org.junit.rules.TestWatcher
protected void starting(org.junit.runner.Description description)
starting
in class org.junit.rules.TestWatcher
protected void failed(Throwable e, org.junit.runner.Description description)
failed
in class org.junit.rules.TestWatcher
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.