|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.plugins.analysis.test.AbstractEnglishLocaleTest
hudson.plugins.analysis.test.AbstractSerializeModelTest
public abstract class AbstractSerializeModelTest
Tests the serialization of the model.
| Field Summary | |
|---|---|
protected static java.lang.String |
HIGH
Task property. |
protected static int |
LINE_NUMBER
Task property. |
protected static java.lang.String |
LOW
Task property. |
protected static java.lang.String |
MODULE1
Task property. |
protected static java.lang.String |
MODULE2
Task property. |
protected static java.lang.String |
NORMAL
Task property. |
protected static java.lang.String |
PACKAGE1
Task property. |
protected static java.lang.String |
PACKAGE2
Task property. |
protected static java.lang.String |
PATH_TO_FILE1
Task property. |
protected static java.lang.String |
PATH_TO_FILE2
Task property. |
protected static java.lang.String |
TEST_TASK1
Task property. |
protected static java.lang.String |
TEST_TASK2
Task property. |
protected static java.lang.String |
TEST_TASK3
Task property. |
protected static java.lang.String |
TEST_TASK4
Task property. |
protected static java.lang.String |
TEST_TASK5
Task property. |
| Constructor Summary | |
|---|---|
AbstractSerializeModelTest()
|
|
| Method Summary | |
|---|---|
protected abstract hudson.plugins.analysis.util.model.AbstractAnnotation |
createAnnotation(int line,
java.lang.String message,
hudson.plugins.analysis.util.model.Priority priority,
java.lang.String fileName,
java.lang.String packageName,
java.lang.String moduleName)
Creates an annotation. |
protected abstract hudson.XmlFile |
createXmlFile(java.io.File file)
Creates the XML serialization file. |
void |
testObjectIsSameAfterDeserialization()
Test whether a serialized task is the same object after deserialization. |
protected abstract void |
verifyFirstAnnotation(hudson.plugins.analysis.util.model.AbstractAnnotation annotation)
Verifies the first created annotation. |
protected void |
verifyFirstAnnotation(hudson.plugins.analysis.util.model.JavaProject project)
Verifies the first annotation of the project. |
protected void |
verifyProject(hudson.plugins.analysis.util.model.JavaProject project)
Verifies the created project. |
| Methods inherited from class hudson.plugins.analysis.test.AbstractEnglishLocaleTest |
|---|
initializeLocale |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String MODULE2
protected static final java.lang.String MODULE1
protected static final java.lang.String PACKAGE2
protected static final java.lang.String PACKAGE1
protected static final java.lang.String PATH_TO_FILE2
protected static final java.lang.String PATH_TO_FILE1
protected static final java.lang.String LOW
protected static final java.lang.String NORMAL
protected static final java.lang.String HIGH
protected static final java.lang.String TEST_TASK5
protected static final java.lang.String TEST_TASK4
protected static final java.lang.String TEST_TASK3
protected static final java.lang.String TEST_TASK2
protected static final java.lang.String TEST_TASK1
protected static final int LINE_NUMBER
| Constructor Detail |
|---|
public AbstractSerializeModelTest()
| Method Detail |
|---|
protected void verifyFirstAnnotation(hudson.plugins.analysis.util.model.JavaProject project)
project - the created projectprotected abstract void verifyFirstAnnotation(hudson.plugins.analysis.util.model.AbstractAnnotation annotation)
annotation - the first created annotation
protected abstract hudson.plugins.analysis.util.model.AbstractAnnotation createAnnotation(int line,
java.lang.String message,
hudson.plugins.analysis.util.model.Priority priority,
java.lang.String fileName,
java.lang.String packageName,
java.lang.String moduleName)
line - the linemessage - the messagepriority - the priorityfileName - the file namepackageName - the package namemoduleName - the module name
public void testObjectIsSameAfterDeserialization()
throws java.lang.Exception
java.lang.Exception - Signals a test failureprotected abstract hudson.XmlFile createXmlFile(java.io.File file)
file - the file for the XML data
protected void verifyProject(hudson.plugins.analysis.util.model.JavaProject project)
project - the created project
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||