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

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.FindIterationsRequestTest
All Implemented Interfaces:
junit.framework.Test, com.ptc.windchill.uwgm.test.util.UwgmTestConstants

public class FindIterationsRequestTest
extends AbstractUwgmRequestTest

Unit test for FindIterationsRequest


Nested Class Summary
 
Nested classes inherited from class com.ptc.windchill.uwgm.test.util.AbstractUwgmTest
 
Field Summary
private  EPMDocument generic
           
private  WTCollection instances
           
private static Log log
           
private  EPMDocument[] testDocs
           
private  String testName
           
private  WTPart[] testParts
           
private  com.ptc.windchill.uwgm.test.fixture.WorkspaceDataLoader wsDataLoader
           
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.request.AbstractUwgmRequestTest
oidHelper, 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
FindIterationsRequestTest()
           
FindIterationsRequestTest(String name)
           
 
Method Summary
private  void createFamilyTestData()
           
private  com.ptc.windchill.uwgm.soap.uwgm.Request[] createFindEpmGenericOfRequest()
           
private  com.ptc.windchill.uwgm.soap.uwgm.Request[] createFindEpmHelperOfForNonFTMemberRequest()
           
private  com.ptc.windchill.uwgm.soap.uwgm.Request[] createFindEpmHelperOfRequest()
           
private  com.ptc.windchill.uwgm.soap.uwgm.Request[] createFindEpmInstanceOfRequest()
           
private  com.ptc.windchill.uwgm.soap.uwgm.Request[] createFindIterationsByCadNameRequest()
           
private  com.ptc.windchill.uwgm.soap.uwgm.Request[] createFindPartIterationRequest()
           
protected  com.ptc.windchill.uwgm.soap.uwgm.Request[] createRequests()
           
private  void createTestData()
           
private  com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest.RequestedAttributes[] getEpmReqAttrs()
           
private  com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest.RequestedAttributes[] getPartReqAttrs()
           
 void testFindEpmGenericOf()
           
 void testFindEpmHelperOf()
           
 void testFindEpmHelperOfForNonFTMemberRequest()
           
 void testFindEpmInstanceOf()
           
 void testFindIterationsByCadName()
           
 void testFindPartIteration()
           
private  void verifyFoundCadName(com.ptc.windchill.uwgm.soap.uwgm.Message message)
           
private  void verifyFoundGenericName(com.ptc.windchill.uwgm.soap.uwgm.Message message)
           
private  void verifyFoundInstanceNames(com.ptc.windchill.uwgm.soap.uwgm.Message message)
           
private  void verifyFoundMemberNames(com.ptc.windchill.uwgm.soap.uwgm.Message message)
           
private  void verifyFoundPartNumber(com.ptc.windchill.uwgm.soap.uwgm.Message message)
           
private  void verifyNotFounds(com.ptc.windchill.uwgm.soap.uwgm.Message message)
           
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, setUp, 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, 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

log

private static Log log

testName

private String testName

wsDataLoader

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

testDocs

private EPMDocument[] testDocs

testParts

private WTPart[] testParts

generic

private EPMDocument generic

instances

private WTCollection instances
Constructor Detail

FindIterationsRequestTest

public FindIterationsRequestTest()

FindIterationsRequestTest

public FindIterationsRequestTest(String name)
Method Detail

testFindIterationsByCadName

public void testFindIterationsByCadName()
                                 throws Exception
Throws:
Exception

testFindPartIteration

public void testFindPartIteration()
                           throws Exception
Throws:
Exception

testFindEpmGenericOf

public void testFindEpmGenericOf()
                          throws Exception
Throws:
Exception

testFindEpmInstanceOf

public void testFindEpmInstanceOf()
                           throws Exception
Throws:
Exception

testFindEpmHelperOf

public void testFindEpmHelperOf()
                         throws Exception
Throws:
Exception

testFindEpmHelperOfForNonFTMemberRequest

public void testFindEpmHelperOfForNonFTMemberRequest()
                                              throws Exception
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

verifySuccessMessage

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

createFindIterationsByCadNameRequest

private com.ptc.windchill.uwgm.soap.uwgm.Request[] createFindIterationsByCadNameRequest()
                                                                                 throws com.ptc.cipjava.jxthrowable,
                                                                                        WTException
Throws:
com.ptc.cipjava.jxthrowable
WTException

createFindPartIterationRequest

private com.ptc.windchill.uwgm.soap.uwgm.Request[] createFindPartIterationRequest()
                                                                           throws com.ptc.cipjava.jxthrowable,
                                                                                  WTException
Throws:
com.ptc.cipjava.jxthrowable
WTException

createFindEpmGenericOfRequest

private com.ptc.windchill.uwgm.soap.uwgm.Request[] createFindEpmGenericOfRequest()
                                                                          throws com.ptc.cipjava.jxthrowable,
                                                                                 WTException
Throws:
com.ptc.cipjava.jxthrowable
WTException

createFindEpmInstanceOfRequest

private com.ptc.windchill.uwgm.soap.uwgm.Request[] createFindEpmInstanceOfRequest()
                                                                           throws com.ptc.cipjava.jxthrowable,
                                                                                  WTException
Throws:
com.ptc.cipjava.jxthrowable
WTException

createFindEpmHelperOfRequest

private com.ptc.windchill.uwgm.soap.uwgm.Request[] createFindEpmHelperOfRequest()
                                                                         throws com.ptc.cipjava.jxthrowable,
                                                                                WTException
Throws:
com.ptc.cipjava.jxthrowable
WTException

createFindEpmHelperOfForNonFTMemberRequest

private com.ptc.windchill.uwgm.soap.uwgm.Request[] createFindEpmHelperOfForNonFTMemberRequest()
                                                                                       throws com.ptc.cipjava.jxthrowable,
                                                                                              WTException
Throws:
com.ptc.cipjava.jxthrowable
WTException

verifyFoundCadName

private void verifyFoundCadName(com.ptc.windchill.uwgm.soap.uwgm.Message message)
                         throws WTException
Throws:
WTException

verifyFoundPartNumber

private void verifyFoundPartNumber(com.ptc.windchill.uwgm.soap.uwgm.Message message)
                            throws WTException
Throws:
WTException

verifyFoundGenericName

private void verifyFoundGenericName(com.ptc.windchill.uwgm.soap.uwgm.Message message)
                             throws WTException
Throws:
WTException

verifyFoundInstanceNames

private void verifyFoundInstanceNames(com.ptc.windchill.uwgm.soap.uwgm.Message message)
                               throws WTException
Throws:
WTException

verifyFoundMemberNames

private void verifyFoundMemberNames(com.ptc.windchill.uwgm.soap.uwgm.Message message)
                             throws WTException
Throws:
WTException

verifyNotFounds

private void verifyNotFounds(com.ptc.windchill.uwgm.soap.uwgm.Message message)
                      throws WTException
Throws:
WTException

getEpmReqAttrs

private com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest.RequestedAttributes[] getEpmReqAttrs()

getPartReqAttrs

private com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest.RequestedAttributes[] getPartReqAttrs()

createTestData

private void createTestData()
                     throws Exception
Throws:
Exception

createFamilyTestData

private void createFamilyTestData()
                           throws Exception
Throws:
Exception