org.infoglue.cms.controllers
Class ContentTypeDefinitionControllerTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.infoglue.cms.util.InfoGlueTestCase
                    |
                    +--org.infoglue.cms.controllers.ContentTypeDefinitionControllerTest
All Implemented Interfaces:
junit.framework.Test

public class ContentTypeDefinitionControllerTest
extends InfoGlueTestCase

Author:
Frank Febbraro (frank@phase2technology.com)

Constructor Summary
ContentTypeDefinitionControllerTest()
           
 
Method Summary
static java.lang.String getSampleDefintion()
          For easy of testing and writing I defined a test Schema on the filesystem in the same package as this class.
 void testGetDefinedAssetKeys()
           
 void testGetDefinedCategoryKeys()
           
 
Methods inherited from class org.infoglue.cms.util.InfoGlueTestCase
getAdminPrincipal, getAnonPrincipal, getCmsUserPrincipal, getLanguageId, getLanguageId, getRepoId, getSiteNodeId, getSiteNodeId, initializeInfoGlue
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentTypeDefinitionControllerTest

public ContentTypeDefinitionControllerTest()
Method Detail

testGetDefinedAssetKeys

public void testGetDefinedAssetKeys()
                             throws java.lang.Exception
java.lang.Exception

testGetDefinedCategoryKeys

public void testGetDefinedCategoryKeys()
                                throws java.lang.Exception
java.lang.Exception

getSampleDefintion

public static java.lang.String getSampleDefintion()
                                           throws java.io.IOException
For easy of testing and writing I defined a test Schema on the filesystem in the same package as this class. We can put every singe type of variation in here and use it for testing, or do something slicker, but this will work for testing keys, and can grow in the future. This is also used by ViewContentTypeDefinitionActionTest

java.io.IOException