|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.exoplatform.component.test.BaseGateInTest
org.exoplatform.component.test.AbstractGateInTest
org.exoplatform.component.test.AbstractKernelTest
org.exoplatform.commons.testing.BaseExoTestCase
org.exoplatform.ecms.test.BaseECMSTestCase
org.exoplatform.ecms.test.BaseECMSResourceTestCase
public abstract class BaseECMSResourceTestCase
Created by The eXo Platform SAS Author : Lai Trung Hieu hieult@exoplatform.com Jun 6, 2012
| Field Summary |
|---|
| Fields inherited from class org.exoplatform.ecms.test.BaseECMSTestCase |
|---|
binder, COLLABORATION_WS, container, credentials, DMSSYSTEM_WS, log, orgService, providers, REPO_NAME, repository, repositoryService, requestHandler, session, sessionProvider, sessionProviderService_, SYSTEM_WS |
| Fields inherited from class org.exoplatform.commons.testing.BaseExoTestCase |
|---|
ownBootstrap |
| Constructor Summary | |
|---|---|
BaseECMSResourceTestCase()
|
|
| Method Summary | |
|---|---|
void |
addResource(Class<?> resourceClass,
javax.ws.rs.core.MultivaluedMap<String,String> properties)
Register supplied class as per-request root resource if it has valid JAX-RS annotations and no one resource with the same UriPattern already registered. |
void |
addResource(Object resource,
javax.ws.rs.core.MultivaluedMap<String,String> properties)
Register supplied Object as singleton root resource if it has valid JAX-RS annotations and no one resource with the same UriPattern already registered. |
void |
removeResource(Class clazz)
Remove the resource instance of provided class from root resource container. |
org.exoplatform.services.rest.impl.ContainerResponse |
service(String method,
String requestURI,
String baseURI,
Map<String,List<String>> headers,
byte[] data,
org.exoplatform.services.rest.ContainerResponseWriter writer)
Get response with provided writer |
org.exoplatform.services.rest.impl.ContainerResponse |
service(String method,
String requestURI,
String baseURI,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
byte[] data)
Get response without provided writer |
| Methods inherited from class org.exoplatform.ecms.test.BaseECMSTestCase |
|---|
applySystemSession, applyUserSession, endSession, getService, setUp, tearDown |
| Methods inherited from class org.exoplatform.commons.testing.BaseExoTestCase |
|---|
afterRunBare, beforeRunBare, getContainer |
| Methods inherited from class org.exoplatform.component.test.AbstractKernelTest |
|---|
begin, end |
| Methods inherited from class org.exoplatform.component.test.AbstractGateInTest |
|---|
runBare |
| Methods inherited from class org.exoplatform.component.test.BaseGateInTest |
|---|
assertInstanceOf, fail, fail, failure, failure |
| Methods inherited from class junit.framework.TestCase |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BaseECMSResourceTestCase()
| Method Detail |
|---|
public org.exoplatform.services.rest.impl.ContainerResponse service(String method,
String requestURI,
String baseURI,
Map<String,List<String>> headers,
byte[] data,
org.exoplatform.services.rest.ContainerResponseWriter writer)
throws Exception
method - requestURI - baseURI - headers - data - writer -
Exception
public org.exoplatform.services.rest.impl.ContainerResponse service(String method,
String requestURI,
String baseURI,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
byte[] data)
throws Exception
method - requestURI - baseURI - headers - data -
Exception
public void addResource(Class<?> resourceClass,
javax.ws.rs.core.MultivaluedMap<String,String> properties)
resourceClass - class of candidate to be root resourceproperties - optional resource properties. It may contains additional
info about resource, e.g. description of resource, its
responsibility, etc. This info can be retrieved
ObjectModel.getProperties().
This parameter may be null
public void addResource(Object resource,
javax.ws.rs.core.MultivaluedMap<String,String> properties)
resource - candidate to be root resourceproperties - optional resource properties. It may contains additional
info about resource, e.g. description of resource, its
responsibility, etc. This info can be retrieved
ObjectModel.getProperties().
This parameter may be nullpublic void removeResource(Class clazz)
clazz - the class of resource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||