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

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

public class IBAModificationRequestTest
extends AbstractUwgmRequestTest


Nested Class Summary
 
Nested classes inherited from class com.ptc.windchill.uwgm.test.util.AbstractUwgmTest
 
Field Summary
private  String[] attributesValue
           
private static Log log
           
private  WTCollection objectCollection
           
private  EPMWorkspace ws
           
private  com.ptc.windchill.uwgm.test.fixture.WorkspaceRequestDataLoader 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
IBAModificationRequestTest()
           
IBAModificationRequestTest(String methodName)
           
 
Method Summary
private  com.ptc.windchill.uwgm.soap.impl.uwgmsvc.PartIBAModification_i createIBAModificationReqData()
           
protected  com.ptc.windchill.uwgm.soap.uwgm.Request[] createRequests()
           
private  boolean getResult(String[] attributesValue, WTCollection persistables)
           
private  com.ptc.cipjava.stringdict getStringDict(Map map)
           
static void main(String[] args)
           
private  void setDbObjIBAs(com.ptc.windchill.uwgm.soap.uwgmdb.Iteration iteration)
           
private  void setIBAs(com.ptc.windchill.uwgm.soap.uwgmdb.Iteration.Iterator iterator)
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testIBAModificationRequest()
          This method tests if the UpdateWorkspaceRequest 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, 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, 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

wsDataLoader

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

attributesValue

private String[] attributesValue

log

private static Log log
Constructor Detail

IBAModificationRequestTest

public IBAModificationRequestTest()

IBAModificationRequestTest

public IBAModificationRequestTest(String methodName)
Method Detail

suite

public static junit.framework.Test suite()

testIBAModificationRequest

public void testIBAModificationRequest()
                                throws Exception
This method tests if the UpdateWorkspaceRequest 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

createIBAModificationReqData

private com.ptc.windchill.uwgm.soap.impl.uwgmsvc.PartIBAModification_i createIBAModificationReqData()
                                                                                             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

getResult

private boolean getResult(String[] attributesValue,
                          WTCollection persistables)
                   throws Exception
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Throws:
Exception

main

public static void main(String[] args)

setIBAs

private void setIBAs(com.ptc.windchill.uwgm.soap.uwgmdb.Iteration.Iterator iterator)
              throws WTException
Throws:
WTException

setDbObjIBAs

private void setDbObjIBAs(com.ptc.windchill.uwgm.soap.uwgmdb.Iteration iteration)
                   throws WTException
Throws:
WTException

getStringDict

private com.ptc.cipjava.stringdict getStringDict(Map map)
                                          throws com.ptc.cipjava.jxthrowable
Throws:
com.ptc.cipjava.jxthrowable