net.csdn.junit
Class BaseControllerTest

java.lang.Object
  extended by net.csdn.junit.IocTest
      extended by net.csdn.junit.BaseControllerTest

public class BaseControllerTest
extends IocTest

6/28/13 WilliamZhu(allwefantasy@gmail.com)


Field Summary
 
Fields inherited from class net.csdn.junit.IocTest
injector
 
Constructor Summary
BaseControllerTest()
           
 
Method Summary
 RestResponse delete(String path, Map params)
           
 RestResponse delete(String path, String rawParamsStr)
           
 Map<RestRequest.Method,RestResponse> each(List<RestRequest.Method> methods, String path, Map params)
           
 Map<RestRequest.Method,RestResponse> each(List<RestRequest.Method> methods, String path, String rawParamStr)
           
 RestResponse get(String path, Map params)
           
 RestResponse get(String path, String rawParamsStr)
           
 RestResponse post(String path, Map params)
           
 RestResponse post(String path, String rawParamsStr)
           
 RestResponse put(String path, Map params)
           
 RestResponse put(String path, String rawParamsStr)
           
 RestResponse runAction(String path, Map params, RestRequest.Method method)
           
 RestResponse runAction(String path, String rawParamsStr, RestRequest.Method method)
           
 
Methods inherited from class net.csdn.junit.IocTest
checkClassLoaded, commitTransaction, dbCommit, findController, findService, initEnv, mockService, mockService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseControllerTest

public BaseControllerTest()
Method Detail

runAction

public RestResponse runAction(String path,
                              Map params,
                              RestRequest.Method method)
                       throws Exception
Throws:
Exception

runAction

public RestResponse runAction(String path,
                              String rawParamsStr,
                              RestRequest.Method method)
                       throws Exception
Throws:
Exception

each

public Map<RestRequest.Method,RestResponse> each(List<RestRequest.Method> methods,
                                                 String path,
                                                 Map params)
                                          throws Exception
Throws:
Exception

each

public Map<RestRequest.Method,RestResponse> each(List<RestRequest.Method> methods,
                                                 String path,
                                                 String rawParamStr)
                                          throws Exception
Throws:
Exception

get

public RestResponse get(String path,
                        Map params)
                 throws Exception
Throws:
Exception

post

public RestResponse post(String path,
                         Map params)
                  throws Exception
Throws:
Exception

delete

public RestResponse delete(String path,
                           Map params)
                    throws Exception
Throws:
Exception

put

public RestResponse put(String path,
                        Map params)
                 throws Exception
Throws:
Exception

get

public RestResponse get(String path,
                        String rawParamsStr)
                 throws Exception
Throws:
Exception

post

public RestResponse post(String path,
                         String rawParamsStr)
                  throws Exception
Throws:
Exception

delete

public RestResponse delete(String path,
                           String rawParamsStr)
                    throws Exception
Throws:
Exception

put

public RestResponse put(String path,
                        String rawParamsStr)
                 throws Exception
Throws:
Exception


Copyright © 2014. All Rights Reserved.