com.ptc.windchill.uwgm.proesrv.action
Class UndoCheckoutActionTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.ptc.windchill.uwgm.test.util.AbstractUwgmTest
com.ptc.windchill.uwgm.proesrv.action.UndoCheckoutActionTest
- All Implemented Interfaces:
- junit.framework.Test, com.ptc.windchill.uwgm.test.util.UwgmTestConstants
- public class UndoCheckoutActionTest
- extends com.ptc.windchill.uwgm.test.util.AbstractUwgmTest
Test class for UndoCheckoutAction based on JUnit framework.
Currently contains the following tests:
1) testUndoCheckoutSimpleObjects():Tests if undoCheckout of simple objects is carried out properly or not
2) testUndoCheckoutAssemblyObjects():Tests if undoCheckout of assembly objects is carried out properly or not
3) testUndoCheckoutFamilylyObjects():Tests if undoCheckout of family objects is carried out properly or not
4) test1UndoCheckoutNestedFamilyObjects():Tests if UndoCheckout operation works for Nested Family objects properly
In this test TopGeneric is passed to UndoCheckoutAction
5)test2UndoCheckoutNestedFamilyObjects(): Tests if UndoCheckout operation works for Nested Family objects properly.
In this test innerGeneric is passed for UndoCheckoutAction
6)test2UndoCheckoutNestedFamilyObjects(): Tests if UndoCheckout operation works for Nested Family objects properly.
In this test only pure instances are passed for UndoCheckoutAction
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, 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 |
ws
private EPMWorkspace ws
testProduct
private WTContainer testProduct
testParts
private WTPart[] testParts
testDocs
private EPMDocument[] testDocs
principal
private WTPrincipal principal
wsDataLoader
private com.ptc.windchill.uwgm.test.fixture.WorkspaceDataLoader wsDataLoader
preProcessedMap
private Map preProcessedMap
postProcessedMap
private Map postProcessedMap
log
private static Log log
UndoCheckoutActionTest
public UndoCheckoutActionTest()
UndoCheckoutActionTest
public UndoCheckoutActionTest(String methodName)
setUp
protected void setUp()
throws Exception
- Throws:
Exception
tearDown
protected void tearDown()
throws Exception
- Performs the cleanup after test is run.
- Returns:
- void
- Throws:
Exception
testUndoCheckoutSimpleObjects
public void testUndoCheckoutSimpleObjects()
throws Exception
- Throws:
Exception
testUndoCheckoutAssemblyObjects
public void testUndoCheckoutAssemblyObjects()
throws Exception
- Throws:
Exception
testUndoCheckoutFamilyObjects
public void testUndoCheckoutFamilyObjects()
throws Throwable
- Throws:
Throwable
test1UndoCheckoutNestedFamilyObjects
public void test1UndoCheckoutNestedFamilyObjects()
throws Throwable
- Throws:
Throwable
test2UndoCheckoutNestedFamilyObjects
public void test2UndoCheckoutNestedFamilyObjects()
throws Throwable
- Tests if UndoCheckout operation works for Nested Family objects properly.
In this test innerGeneric is passed for UndoCheckoutAction
- Returns:
- void
- Throws:
Throwable
test3UndoCheckoutNestedFamilyObjects
public void test3UndoCheckoutNestedFamilyObjects()
throws Throwable
- Tests if UndoCheckout operation works for Nested Family objects properly.
In this test only pure instances are passed for UndoCheckoutAction
- Returns:
- void
- Throws:
Throwable
suite
public static junit.framework.Test suite()
- suite() method below is required to create and run a test suite from this class.
- Returns:
- Test
main
public static void main(String[] args)
getPdmState
private boolean getPdmState(WTCollection actionObjects)
throws Exception
- Throws:
Exception
populatePdmStateMap
private void populatePdmStateMap(WTCollection actionObjects,
Map pdmObjectStateMap)
throws Exception
- Throws:
Exception
getKey
private String getKey(Persistable workable)
printPdmState
private void printPdmState(WTCollection actionObjects)
throws Exception
- Throws:
Exception