public class Service
extends java.lang.Object
implements org.junit.rules.TestRule
| Constructor and Description |
|---|
Service(java.lang.Class<?> serviceClass) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
<T> T |
getService(java.lang.Class<T> serviceClass)
Return the service object.
|
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRulepublic <T> T getService(java.lang.Class<T> serviceClass)
T - The type of the service.serviceClass - Use this class to perform a cast before the object is returned.Copyright © 2010 - 2023 Adobe. All Rights Reserved