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

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.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 Class Summary
 
Nested classes inherited from class com.ptc.windchill.uwgm.test.util.AbstractUwgmTest
 
Field Summary
private  Folder defaultFolder
           
private static Log log
           
private  WTCollection objectCollection
           
 ObjectIdentifierHelper oidHelper
           
private  WTPrincipal principal
           
private  WTContainer testProduct
           
private  EPMWorkspace ws
           
 
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
CheckinRequestTest()
           
CheckinRequestTest(String methodName)
           
 
Method Summary
private  com.ptc.windchill.uwgm.soap.uwgmsvc.CheckinInstruction createCheckinInstruction(Persistable persistable)
           
private  com.ptc.windchill.uwgm.soap.impl.uwgmsvc.Checkin_i createCheckinRequestData()
           
private  com.ptc.windchill.uwgm.soap.uwgmsvc.CheckinInstruction.Iterator createTargetFolderInstructions()
           
private  com.ptc.windchill.uwgm.soap.uwgm.UwgmTransaction createTransaction(com.ptc.windchill.uwgm.soap.impl.uwgmsvc.Checkin_i CheckinReq)
           
private  void createTransactionResponse(com.ptc.windchill.uwgm.soap.uwgm.UwgmTransaction uwgmTransaction)
           
private  WTCollection findMasters(com.ptc.windchill.uwgm.test.fixture.WorkspaceDataLoader wsDataLoader)
           
private  WTCollection findMasters(com.ptc.windchill.uwgm.test.fixture.WorkspaceRequestDataLoader wsDataLoader)
           
private  com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration getEpmIteration(EPMDocument wtEpmDoc)
           
private  com.ptc.windchill.uwgm.soap.impl.uwgmdb.Folder_i getFolder()
           
private  com.ptc.windchill.uwgm.soap.uwgmdb.FolderedIteration getFolderedIteration(Persistable persistable)
           
private  com.ptc.windchill.uwgm.soap.uwgmdb.Iteration.Iterator getIterationsIterator(WTCollection iterations)
           
(package private)  com.ptc.windchill.uwgm.soap.uwgmdb.PartIteration getPartIteration(WTPart wtPart)
           
private  com.ptc.windchill.uwgm.soap.impl.uwgmdb.Workspace_i getWorkspace()
           
private  WTCollection getWorkspaceObjects()
           
static void main(String[] args)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
 void testAssemlyCheckinRequest()
          This method tests if the CheckinRequest gets executed successfully for simple parts, and document assemblies.
 void testCheckinRequest()
          This method tests if the CheckinRequest gets executed successfully for simple Documents and Parts.
private  boolean verifyCheckinSuccess(WTCollection masters, int docNumber, int partNumber)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

CheckinRequestTest

public CheckinRequestTest()

CheckinRequestTest

public CheckinRequestTest(String methodName)
Method Detail

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)