com.ptc.windchill.uwgm.proesrv.request
Class ProeServiceTestProxy

java.lang.Object
  extended bycom.ptc.windchill.uwgm.proesrv.ProeServiceRequest
      extended bycom.ptc.windchill.uwgm.proesrv.request.ProeServiceTestProxy
All Implemented Interfaces:
RequestResultCache.Populator

public class ProeServiceTestProxy
extends ProeServiceRequest

TestRequest proxy for Unit Testing


Field Summary
private static Log log
          logging
private  ProeServiceRequest testImplementation
          actual test implementation
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.ProeServiceRequest
context, RESOURCE, resultPopulator, uwgmRequest
 
Constructor Summary
ProeServiceTestProxy(com.ptc.windchill.uwgm.soap.uwgmsvc.TestRequest testRequest, RequestResultCache resultCache)
          constructor
 
Method Summary
 com.ptc.windchill.uwgm.soap.uwgm.UwgmMessage executeRequest()
          delegates execution to Implementation class
private  ProeServiceRequest getTestImplementation(com.ptc.windchill.uwgm.soap.uwgmsvc.TestRequest testRequest, RequestResultCache resultCache)
          looks up and initializes test implementation
 void validateRequest()
          delegates validation to implementation class
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.ProeServiceRequest
addContainer, addContent, addEPMDocument, addEPMDocumentMaster, addEPMWorkspace, addEPMWorkspace, addFakeFolder, addFolder, addLink, addLink, addPreferedContentURLs, addWTPart, addWTPartMaster, bindContent, bindFoldered, createDbObjIterator, getContext, getLocalizedName, getUwgmRequest, ignoreOriginalState, reportFailure, reportInfoMessage, reportInfoMessage, reportMessage, reportMessages, reportWarnings, resetCurrentEpmWS, setRequestCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testImplementation

private ProeServiceRequest testImplementation
actual test implementation


log

private static Log log
logging

Constructor Detail

ProeServiceTestProxy

public ProeServiceTestProxy(com.ptc.windchill.uwgm.soap.uwgmsvc.TestRequest testRequest,
                            RequestResultCache resultCache)
constructor

Parameters:
testRequest - TestRequest
resultCache - RequestResultCache
Method Detail

executeRequest

public com.ptc.windchill.uwgm.soap.uwgm.UwgmMessage executeRequest()
                                                            throws UwgmConflictException,
                                                                   UwgmErrorException
delegates execution to Implementation class

Specified by:
executeRequest in class ProeServiceRequest
Returns:
UwgmMessage
Throws:
UwgmConflictException
UwgmErrorException

validateRequest

public void validateRequest()
                     throws RequestValidationException,
                            UwgmErrorException
delegates validation to implementation class

Specified by:
validateRequest in class ProeServiceRequest
Throws:
RequestValidationException
UwgmErrorException

getTestImplementation

private ProeServiceRequest getTestImplementation(com.ptc.windchill.uwgm.soap.uwgmsvc.TestRequest testRequest,
                                                 RequestResultCache resultCache)
looks up and initializes test implementation

Parameters:
resultCache - RequestResultCache
Returns:
ProeServiceRequest