public class ErrataFactoryTest extends BaseTestCaseWithUser
user
Constructor and Description |
---|
ErrataFactoryTest() |
Modifier and Type | Method and Description |
---|---|
static Errata |
createCriticalTestErrata(java.lang.Long orgId)
Creates and persists an errata that will be flagged as critical.
|
static Bug |
createPublishedBug(java.lang.Long longIn,
java.lang.String stringIn) |
static Errata |
createTestErrata(java.lang.Long orgId)
Create an Errata for testing and commit it to the DB.
|
static Errata |
createTestPublishedErrata(java.lang.Long orgId) |
static Errata |
createTestUnpublishedErrata(java.lang.Long orgId) |
static Bug |
createUnpublishedBug(java.lang.Long longIn,
java.lang.String stringIn) |
void |
listErrataChannelPackages() |
void |
testBugs() |
void |
testCreateAndLookupErrata() |
void |
testCreateClone() |
void |
testFiles() |
void |
testLastModified() |
static void |
testLookupByOriginal() |
void |
testPublish() |
void |
testPublishToChannel() |
static void |
updateNeedsErrataCache(java.lang.Long packageId,
java.lang.Long serverId,
java.lang.Long errataId) |
commitHappened, setUp, tearDown
assertContains, assertContains, assertContains, assertNotBefore, assertNotBefore, assertNotEmpty, assertNotEmpty, assertPropertyEquals, clearSession, commitAndCloseSession, createDirIfNotExists, disableLocalizationServiceLogging, enableLocalizationServiceLogging, flushAndEvict, getNow, reload, reload
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public static Bug createUnpublishedBug(java.lang.Long longIn, java.lang.String stringIn)
public static Bug createPublishedBug(java.lang.Long longIn, java.lang.String stringIn)
public void testPublish() throws java.lang.Exception
java.lang.Exception
public void testPublishToChannel() throws java.lang.Exception
java.lang.Exception
public void testCreateAndLookupErrata() throws java.lang.Exception
java.lang.Exception
public void testLastModified() throws java.lang.Exception
java.lang.Exception
public void testBugs() throws java.lang.Exception
java.lang.Exception
public void testFiles() throws java.lang.Exception
java.lang.Exception
public static Errata createTestErrata(java.lang.Long orgId) throws java.lang.Exception
orgId
- the Org who owns this Erratajava.lang.Exception
- something bad happenedpublic static Errata createCriticalTestErrata(java.lang.Long orgId) throws java.lang.Exception
orgId
- the org under which the errata existsjava.lang.Exception
- if the errata cannot be createdpublic static Errata createTestPublishedErrata(java.lang.Long orgId) throws java.lang.Exception
java.lang.Exception
public static Errata createTestUnpublishedErrata(java.lang.Long orgId) throws java.lang.Exception
java.lang.Exception
public void testCreateClone() throws java.lang.Exception
java.lang.Exception
public static void updateNeedsErrataCache(java.lang.Long packageId, java.lang.Long serverId, java.lang.Long errataId)
public static void testLookupByOriginal() throws java.lang.Exception
java.lang.Exception
public void listErrataChannelPackages()