Class JDomBuilderWorkTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.creadur.whisker.fromxml.JDomBuilderWorkTest
- All Implemented Interfaces:
junit.framework.Test
public class JDomBuilderWorkTest
extends junit.framework.TestCase
-
Constructor Summary
-
Method Summary
Methods inherited from class junit.framework.TestCase
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
-
Constructor Details
-
JDomBuilderWorkTest
public JDomBuilderWorkTest()
-
-
Method Details
-
setUp
- Overrides:
setUp
in classjunit.framework.TestCase
- Throws:
Exception
-
tearDown
- Overrides:
tearDown
in classjunit.framework.TestCase
- Throws:
Exception
-
testMapNoticesIsEmptyWhenDocumentHasNoNotices
- Throws:
Exception
-
testMapNoticesExpectedToBeImmutable
- Throws:
Exception
-
testMapNoticesFindsNoticesDefinedInDocument
- Throws:
Exception
-
testMapLicensesIsEmptyWhenDocumentHasNoLicenses
- Throws:
Exception
-
testMapLicensesExpectedToBeImmutable
- Throws:
Exception
-
testMapLicensesFindsLicensesDefinedInDocument
- Throws:
Exception
-
testMapOrganisationsIsEmptyWhenDocumentHasNoOrganisations
- Throws:
Exception
-
testMapOrganisationsExpectedToBeImmutable
- Throws:
Exception
-
testMapOrganisationsFindOrganisationDefinedInDocument
- Throws:
Exception
-
testPrimaryLicense
- Throws:
Exception
-
testNoPrimaryCopyright
- Throws:
Exception
-
testPrimaryCopyright
- Throws:
Exception
-
testBuildPrimaryCopyright
- Throws:
Exception
-
testThrowsMissingIDExceptionWhenPrimaryLicenseMissing
- Throws:
Exception
-
testPrimaryNoticeFindsNoticeText
- Throws:
Exception
-
testPrimaryNoticeIsNullWhenThereIsNoNoticeText
- Throws:
Exception
-
testPrimaryNoticeSubstitutesYearInNoticeText
- Throws:
Exception
-
testFindPrimaryOrganisationIdReturnsNullWhenOrganisationUnset
- Throws:
Exception
-
testFindPrimaryOrganisationIdWhenSet
- Throws:
Exception
-
testCollectContentsReturneEmptyWhenDocumentHasNoContents
- Throws:
Exception
-
testCollectDirectoriesDefinedInDocument
- Throws:
Exception
-
testCollectDirectoriesThrowsDuplicateElementExceptionWhenDirAttributeDuplicated
public void testCollectDirectoriesThrowsDuplicateElementExceptionWhenDirAttributeDuplicated() throws Exception- Throws:
Exception
-