public class ActivationKeyTest extends BaseTestCaseWithUser
user| Constructor and Description |
|---|
ActivationKeyTest() |
| Modifier and Type | Method and Description |
|---|---|
static ActivationKey |
createTestActivationKey(User user) |
static ActivationKey |
createTestActivationKey(User u,
Server s) |
void |
setUp()
Called once per test method.
|
void |
testAddGetKeys() |
void |
testBadKeys() |
void |
testCreateNewKeys() |
void |
testCreateWithCustomGroups() |
void |
testDuplicateKeyCreation() |
void |
testKeyGeneration() |
void |
testKeyTrimming() |
void |
testLookupByServer() |
void |
testLookupBySession() |
void |
testNullServer() |
commitHappened, tearDownassertContains, assertContains, assertContains, assertNotBefore, assertNotBefore, assertNotEmpty, assertNotEmpty, assertPropertyEquals, clearSession, commitAndCloseSession, createDirIfNotExists, disableLocalizationServiceLogging, enableLocalizationServiceLogging, flushAndEvict, getNow, reload, reloadassertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic void setUp()
throws java.lang.Exception
BaseTestCaseWithUsersetUp in class BaseTestCaseWithUserjava.lang.Exception - if an error occurs during setup.public void testKeyGeneration()
throws java.lang.Exception
java.lang.Exceptionpublic void testBadKeys()
throws java.lang.Exception
java.lang.Exceptionpublic void testKeyTrimming()
throws java.lang.Exception
java.lang.Exceptionpublic void testLookupBySession()
throws java.lang.Exception
java.lang.Exceptionpublic void testNullServer()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateWithCustomGroups()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddGetKeys()
throws java.lang.Exception
java.lang.Exceptionpublic void testLookupByServer()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateNewKeys()
throws java.lang.Exception
java.lang.Exceptionpublic static ActivationKey createTestActivationKey(User user) throws java.lang.Exception
java.lang.Exceptionpublic static ActivationKey createTestActivationKey(User u, Server s)
public void testDuplicateKeyCreation()
throws java.lang.Exception
java.lang.Exception