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

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.ptc.windchill.uwgm.test.util.AbstractUwgmTest
              extended bycom.ptc.windchill.uwgm.proesrv.request.AbstractUwgmRequestTest
                  extended bycom.ptc.windchill.uwgm.proesrv.request.SetTargetFolderRequestTest
All Implemented Interfaces:
junit.framework.Test, com.ptc.windchill.uwgm.test.util.UwgmTestConstants

public class SetTargetFolderRequestTest
extends AbstractUwgmRequestTest


Nested Class Summary
 
Nested classes inherited from class com.ptc.windchill.uwgm.test.util.AbstractUwgmTest
 
Field Summary
private  String administratorName
           
private  Folder defaultFolder
           
private static Log log
           
private  WTCollection objectCollection
           
 ObjectIdentifierHelper oidHelper
           
private  WTPrincipal user2
           
private static String UWGM_TEST_PRODUCT2_NAME
           
private  EPMWorkspace ws
           
private  com.ptc.windchill.uwgm.test.fixture.WorkspaceRequestDataLoader wsDataLoader
           
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.request.AbstractUwgmRequestTest
principal, testProduct, testProject
 
Fields inherited from class com.ptc.windchill.uwgm.test.util.AbstractUwgmTest
 
Fields inherited from class junit.framework.TestCase
 
Fields inherited from interface com.ptc.windchill.uwgm.test.util.UwgmTestConstants
UWGM_CLIENT_CACHE_ID, UWGM_CLIENT_NAME, UWGM_CLIENT_VERSION, UWGM_TEST_ASSEMBLY_CHILDREN_NOS, UWGM_TEST_BOOLEAN, UWGM_TEST_DEFAULT_FOLDER_PATH, UWGM_TEST_DEFAULT_LIFECYCLE_NAME, UWGM_TEST_DEFAULT_LIFECYCLE_PROP_NAME, UWGM_TEST_DEFAULT_TEAMTEMPLATE_NAME, UWGM_TEST_DOC_NAME_PREFIX, UWGM_TEST_DOC_NOS, UWGM_TEST_FAMILY_INSTANCE_NOS, UWGM_TEST_FLOAT, UWGM_TEST_FOLDER_NAME_PREFIX, UWGM_TEST_GENERIC_NAME_PREFIX, UWGM_TEST_INSTANCE_NAME_PREFIX, UWGM_TEST_INTEGER, UWGM_TEST_PART_NAME_PREFIX, UWGM_TEST_PART_NOS, UWGM_TEST_PRODUCT1_NAME, UWGM_TEST_PROJECT1_NAME, UWGM_TEST_STRING, UWGM_TEST_WORKSPACE_NAME_PREFIX
 
Constructor Summary
SetTargetFolderRequestTest()
           
SetTargetFolderRequestTest(String methodName)
           
 
Method Summary
protected  com.ptc.windchill.uwgm.soap.uwgm.Request[] createRequests()
           
private  com.ptc.windchill.uwgm.soap.impl.uwgmsvc.SetTargetFolder_i createSetTargetFolderRequestData()
           
private  com.ptc.windchill.uwgm.soap.uwgmsvc.TargetFolderInstruction createTargetFolderInstruction(Persistable persistable)
           
private  com.ptc.windchill.uwgm.soap.uwgmsvc.TargetFolderInstruction.Iterator createTargetFolderInstructions()
           
private  com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration getEpmIteration(EPMDocument wtEpmDoc)
           
private  com.ptc.windchill.uwgm.soap.impl.uwgmdb.Folder_i getFolder(Folder defaultFolder)
           
private  com.ptc.windchill.uwgm.soap.uwgmdb.FolderedIteration getFolderedIteration(Persistable persistable)
           
(package private)  com.ptc.windchill.uwgm.soap.uwgmdb.PartIteration getPartIteration(WTPart wtPart)
           
static void main(String[] args)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testSetTargetFolderRequest()
          This method tests if the SetTargetFolderRequest gets executed successfully.
protected  void verifySuccessMessage(com.ptc.windchill.uwgm.soap.uwgm.Message message)
           
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.request.AbstractUwgmRequestTest
createUwgmIterations, createUwgmIterations, createUwgmIterations, createUwgmWorkspace, createUwgmWorkspace, createUwgmWorkspace, getWorkspaceObjects, getWorkspaceObjectsMap, performUwgmRequestTest, printIterations, printRequest, printWorkspace, verifyResponseMessages, verifyTransactionMessages
 
Methods inherited from class com.ptc.windchill.uwgm.test.util.AbstractUwgmTest
getTestResult, reportError, reportFailure, run
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ws

private EPMWorkspace ws

objectCollection

private WTCollection objectCollection

user2

private WTPrincipal user2

wsDataLoader

private com.ptc.windchill.uwgm.test.fixture.WorkspaceRequestDataLoader wsDataLoader

defaultFolder

private Folder defaultFolder

oidHelper

public final ObjectIdentifierHelper oidHelper

UWGM_TEST_PRODUCT2_NAME

private static final String UWGM_TEST_PRODUCT2_NAME
See Also:
Constant Field Values

administratorName

private String administratorName

log

private static Log log
Constructor Detail

SetTargetFolderRequestTest

public SetTargetFolderRequestTest()

SetTargetFolderRequestTest

public SetTargetFolderRequestTest(String methodName)
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class AbstractUwgmRequestTest
Throws:
Exception

suite

public static junit.framework.Test suite()

testSetTargetFolderRequest

public void testSetTargetFolderRequest()
                                throws Exception
This method tests if the SetTargetFolderRequest gets executed successfully.

Throws:
Exception

createRequests

protected com.ptc.windchill.uwgm.soap.uwgm.Request[] createRequests()
                                                             throws com.ptc.cipjava.jxthrowable,
                                                                    WTException
Specified by:
createRequests in class AbstractUwgmRequestTest
Throws:
com.ptc.cipjava.jxthrowable
WTException

createSetTargetFolderRequestData

private com.ptc.windchill.uwgm.soap.impl.uwgmsvc.SetTargetFolder_i createSetTargetFolderRequestData()
                                                                                             throws WTException
Throws:
WTException

createTargetFolderInstructions

private com.ptc.windchill.uwgm.soap.uwgmsvc.TargetFolderInstruction.Iterator createTargetFolderInstructions()
                                                                                                     throws WTException
Throws:
WTException

createTargetFolderInstruction

private com.ptc.windchill.uwgm.soap.uwgmsvc.TargetFolderInstruction createTargetFolderInstruction(Persistable persistable)
                                                                                           throws WTException
Throws:
WTException

getEpmIteration

private com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration getEpmIteration(EPMDocument wtEpmDoc)
                                                                 throws WTException
Throws:
WTException

getPartIteration

com.ptc.windchill.uwgm.soap.uwgmdb.PartIteration getPartIteration(WTPart wtPart)
                                                            throws WTException
Throws:
WTException

getFolder

private com.ptc.windchill.uwgm.soap.impl.uwgmdb.Folder_i getFolder(Folder defaultFolder)
                                                            throws WTException
Throws:
WTException

getFolderedIteration

private com.ptc.windchill.uwgm.soap.uwgmdb.FolderedIteration getFolderedIteration(Persistable persistable)
                                                                           throws WTException
Throws:
WTException

verifySuccessMessage

protected void verifySuccessMessage(com.ptc.windchill.uwgm.soap.uwgm.Message message)
                             throws WTException
Overrides:
verifySuccessMessage in class AbstractUwgmRequestTest
Throws:
WTException

tearDown

protected void tearDown()
                 throws Exception
Throws:
Exception

main

public static void main(String[] args)