com.ptc.windchill.uwgm.common.folder
Class VirtualPathParserTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.ptc.windchill.uwgm.common.folder.VirtualPathParserTest
All Implemented Interfaces:
junit.framework.Test

public class VirtualPathParserTest
extends junit.framework.TestCase

Unit test for VirtualPathParser

Title:

Description:

Copyright: Copyright (c) 2004

Company:


Field Summary
private  Locale locale
           
private static Log log
          logging
private  WTPrincipal principal
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
VirtualPathParserTest()
           
VirtualPathParserTest(String testName)
           
 
Method Summary
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testRootFakeFolder()
          tests parser for / root container
 void testSiteDefaultCabinet()
          tests parser for /Site/Default cabint, checks: folderType == FolderHelper.FT_REGULAR folder == WTContainerHelper.service.getExchangeContainer().getDefaultCabinet()
 void testSiteFakeFolder()
          tests parser for /Site container
 void testUnexistingWorkspaceFolder()
          tests parser for default workspace folder in root
 void testUwgmTestProduct2()
          tests parser for /Products/UwgmTestProduct2
 void testWorkspaceInContainer()
          tests parser for /Products/UwgmTestProduct2
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, 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

locale

private Locale locale

principal

private WTPrincipal principal

log

private static Log log
logging

Constructor Detail

VirtualPathParserTest

public VirtualPathParserTest()

VirtualPathParserTest

public VirtualPathParserTest(String testName)
Method Detail

testRootFakeFolder

public void testRootFakeFolder()
                        throws WTException
tests parser for / root container

Throws:
WTException

testUnexistingWorkspaceFolder

public void testUnexistingWorkspaceFolder()
                                   throws WTException
tests parser for default workspace folder in root

Throws:
WTException

testSiteFakeFolder

public void testSiteFakeFolder()
                        throws WTException
tests parser for /Site container

Throws:
WTException

testSiteDefaultCabinet

public void testSiteDefaultCabinet()
                            throws WTException
tests parser for /Site/Default cabint, checks: folderType == FolderHelper.FT_REGULAR folder == WTContainerHelper.service.getExchangeContainer().getDefaultCabinet()

Throws:
WTException

testUwgmTestProduct2

public void testUwgmTestProduct2()
                          throws WTException
tests parser for /Products/UwgmTestProduct2

Throws:
WTException

testWorkspaceInContainer

public void testWorkspaceInContainer()
                              throws Exception
tests parser for /Products/UwgmTestProduct2

Throws:
WTException
Exception

setUp

protected void setUp()
              throws Exception
Sets up the fixture, for example, open a network connection.

Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Tears down the fixture, for example, close a network connection.

Throws:
Exception