com.ptc.windchill.uwgm.proesrv.request
Class CheckinRequestTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.ptc.windchill.uwgm.test.util.AbstractUwgmTest
com.ptc.windchill.uwgm.proesrv.request.CheckinRequestTest
- All Implemented Interfaces:
- junit.framework.Test, com.ptc.windchill.uwgm.test.util.UwgmTestConstants
- public class CheckinRequestTest
- extends com.ptc.windchill.uwgm.test.util.AbstractUwgmTest
Nested classes inherited from class com.ptc.windchill.uwgm.test.util.AbstractUwgmTest |
|
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 |
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, tearDown, 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 |
testProduct
private WTContainer testProduct
principal
private WTPrincipal principal
defaultFolder
private Folder defaultFolder
ws
private EPMWorkspace ws
objectCollection
private WTCollection objectCollection
oidHelper
public final ObjectIdentifierHelper oidHelper
log
private static Log log
CheckinRequestTest
public CheckinRequestTest()
CheckinRequestTest
public CheckinRequestTest(String methodName)
setUp
protected void setUp()
throws Exception
- Throws:
Exception
suite
public static junit.framework.Test suite()
testCheckinRequest
public void testCheckinRequest()
throws Throwable
- This method tests if the CheckinRequest gets executed successfully for simple Documents and Parts.
- Throws:
Throwable
testAssemlyCheckinRequest
public void testAssemlyCheckinRequest()
throws Throwable
- This method tests if the CheckinRequest gets executed successfully for simple parts, and document assemblies.
- Throws:
Throwable
createCheckinRequestData
private com.ptc.windchill.uwgm.soap.impl.uwgmsvc.Checkin_i createCheckinRequestData()
throws WTException
- Throws:
WTException
createTargetFolderInstructions
private com.ptc.windchill.uwgm.soap.uwgmsvc.CheckinInstruction.Iterator createTargetFolderInstructions()
throws WTException
- Throws:
WTException
createCheckinInstruction
private com.ptc.windchill.uwgm.soap.uwgmsvc.CheckinInstruction createCheckinInstruction(Persistable persistable)
throws WTException
- Throws:
WTException
getFolderedIteration
private com.ptc.windchill.uwgm.soap.uwgmdb.FolderedIteration getFolderedIteration(Persistable persistable)
throws WTException
- Throws:
WTException
getFolder
private com.ptc.windchill.uwgm.soap.impl.uwgmdb.Folder_i getFolder()
throws WTException
- Throws:
WTException
createTransaction
private com.ptc.windchill.uwgm.soap.uwgm.UwgmTransaction createTransaction(com.ptc.windchill.uwgm.soap.impl.uwgmsvc.Checkin_i CheckinReq)
throws WTException,
com.ptc.cipjava.jxthrowable
- Throws:
WTException
com.ptc.cipjava.jxthrowable
createTransactionResponse
private void createTransactionResponse(com.ptc.windchill.uwgm.soap.uwgm.UwgmTransaction uwgmTransaction)
throws WTException,
com.ptc.cipjava.jxthrowable
- Throws:
WTException
com.ptc.cipjava.jxthrowable
findMasters
private WTCollection findMasters(com.ptc.windchill.uwgm.test.fixture.WorkspaceRequestDataLoader wsDataLoader)
throws WTException
- Throws:
WTException
findMasters
private WTCollection findMasters(com.ptc.windchill.uwgm.test.fixture.WorkspaceDataLoader wsDataLoader)
throws WTException
- Throws:
WTException
getWorkspaceObjects
private WTCollection getWorkspaceObjects()
throws WTException
- Throws:
WTException
verifyCheckinSuccess
private boolean verifyCheckinSuccess(WTCollection masters,
int docNumber,
int partNumber)
throws WTException
- Throws:
WTException
getWorkspace
private com.ptc.windchill.uwgm.soap.impl.uwgmdb.Workspace_i getWorkspace()
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
getIterationsIterator
private com.ptc.windchill.uwgm.soap.uwgmdb.Iteration.Iterator getIterationsIterator(WTCollection iterations)
throws WTException
- Throws:
WTException
main
public static void main(String[] args)