|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--org.infoglue.cms.util.InfoGlueTestCase
The base class of all InfoGlue tests cases will setup the things that need to be setup in order to fake out certain services and facilities that may not be running in the environment that they expect. Things like this FakeServletContext can generally be gotten rid of with a few key refactorings of the system to not rely on being run as a web app, etc.
| Constructor Summary | |
InfoGlueTestCase()
|
|
| Method Summary | |
static InfoGluePrincipal |
getAdminPrincipal()
Returns the administrator principal |
static InfoGluePrincipal |
getAnonPrincipal()
Returns the anonymous principal |
static InfoGluePrincipal |
getCmsUserPrincipal()
Returns the cmsUser principal |
static java.lang.Integer |
getLanguageId()
Returns a Language Id. |
static java.lang.Integer |
getLanguageId(java.lang.Integer repoId)
Returns a Language Id for the given Repository. |
static java.lang.Integer |
getRepoId()
Returns a Repository Id to use for testing. |
static java.lang.Integer |
getSiteNodeId()
Returns a SiteNode id. |
static java.lang.Integer |
getSiteNodeId(java.lang.Integer repoId)
Returns a SiteNode id for the given Repository. |
static void |
initializeInfoGlue()
For testing we dont care about the nofitications that take place, especially notifications to remote servers and such that will fail under a normal slimmed down test environment. |
| 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 |
public InfoGlueTestCase()
| Method Detail |
public static void initializeInfoGlue()
throws SystemException
SystemExceptionpublic static InfoGluePrincipal getAdminPrincipal()
public static InfoGluePrincipal getCmsUserPrincipal()
public static InfoGluePrincipal getAnonPrincipal()
public static java.lang.Integer getRepoId()
public static java.lang.Integer getLanguageId()
public static java.lang.Integer getLanguageId(java.lang.Integer repoId)
repoId - The id of the Repository to get the Master Language.
public static java.lang.Integer getSiteNodeId()
public static java.lang.Integer getSiteNodeId(java.lang.Integer repoId)
repoId - The id of the Repository to get the Master Language.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||