|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.metadata.iso.persistence.AbstractISOTest org.deegree.metadata.iso.persistence.inspectors.InspectorIdentifierTest
public class InspectorIdentifierTest
TODO add class documentation here
Field Summary |
---|
Fields inherited from class org.deegree.metadata.iso.persistence.AbstractISOTest |
---|
conn, jdbcPass, jdbcURL, jdbcUser, nsContext, resultSet, store |
Constructor Summary | |
---|---|
InspectorIdentifierTest()
|
Method Summary | |
---|---|
void |
testIdentifierRejectFalse()
If the fileIdentifier should be generated automaticaly if not set. |
void |
testIdentifierRejectTrue()
If the fileIdentifier shouldn't be generated automaticaly if not set. |
void |
testIdentifierRejectTrue2()
If the fileIdentifier shouldn't be generated automaticaly if not set. |
Methods inherited from class org.deegree.metadata.iso.persistence.AbstractISOTest |
---|
setUp, tearDown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InspectorIdentifierTest()
Method Detail |
---|
public void testIdentifierRejectTrue2() throws MetadataStoreException, MetadataInspectorException, ResourceInitException
1.xml has no fileIdentifier and no ResourceIdentifier -> reject
3.xml has a fileIdentifier -> insert
Output should be a MetadataStoreException
MetadataStoreException
MetadataInspectorException
MetadataStoreException
MetadataInspectorException
MetadataInspectorException
ResourceInitException
SQLException
public void testIdentifierRejectFalse() throws MetadataStoreException, MetadataInspectorException, ResourceInitException
1.xml has no fileIdentifier
2.xml has a fileIdentifier
MetadataStoreException
MetadataInspectorException
ResourceInitException
public void testIdentifierRejectTrue() throws MetadataStoreException, MetadataInspectorException, ResourceInitException
1.xml has no fileIdentifier but with one ResourceIdentifier -> insert
2.xml has a fileIdentifier -> insert Output: 2 because 1.xml has a resourceIdentifier which can be taken
MetadataStoreException
MetadataInspectorException
ResourceInitException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |