|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mycila.testing.plugins.jetty.WebappHelper
public class WebappHelper
Some helper methods to deal with webapp context.
| Constructor Summary | |
|---|---|
WebappHelper()
|
|
| Method Summary | |
|---|---|
static String |
getWebappUrl(Method method)
Returns the web application URL from a the given test method which should be annotated with JettyRunWar
(or
its Method.getDeclaringClass() at least) and doesn't end with slash '/'. |
static String |
getWebappUrl(Object instance)
Returns the web application URL from a the given test class instance which must be annotated with JettyRunWar and doesn't end with slash '/'. |
static String |
getWebappUrl(Object instance,
String methodName)
Returns the web application URL from a the given test method which should be annotated with JettyRunWar
(or its Method.getDeclaringClass() at least) and doesn't end with slash '/'. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebappHelper()
| Method Detail |
|---|
public static String getWebappUrl(Object instance)
JettyRunWar and doesn't end with slash '/'.
instance - the test object.
public static String getWebappUrl(Object instance,
String methodName)
JettyRunWar
(or its Method.getDeclaringClass() at least) and doesn't end with slash '/'.
instance - the test object.methodName - the test method name.
public static String getWebappUrl(Method method)
JettyRunWar
(or
its Method.getDeclaringClass() at least) and doesn't end with slash '/'.
method - the test method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||