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 Details

    • JDomBuilderWorkTest

      public JDomBuilderWorkTest()
  • Method Details

    • setUp

      protected void setUp() throws Exception
      Overrides:
      setUp in class junit.framework.TestCase
      Throws:
      Exception
    • tearDown

      protected void tearDown() throws Exception
      Overrides:
      tearDown in class junit.framework.TestCase
      Throws:
      Exception
    • testMapNoticesIsEmptyWhenDocumentHasNoNotices

      public void testMapNoticesIsEmptyWhenDocumentHasNoNotices() throws Exception
      Throws:
      Exception
    • testMapNoticesExpectedToBeImmutable

      public void testMapNoticesExpectedToBeImmutable() throws Exception
      Throws:
      Exception
    • testMapNoticesFindsNoticesDefinedInDocument

      public void testMapNoticesFindsNoticesDefinedInDocument() throws Exception
      Throws:
      Exception
    • testMapLicensesIsEmptyWhenDocumentHasNoLicenses

      public void testMapLicensesIsEmptyWhenDocumentHasNoLicenses() throws Exception
      Throws:
      Exception
    • testMapLicensesExpectedToBeImmutable

      public void testMapLicensesExpectedToBeImmutable() throws Exception
      Throws:
      Exception
    • testMapLicensesFindsLicensesDefinedInDocument

      public void testMapLicensesFindsLicensesDefinedInDocument() throws Exception
      Throws:
      Exception
    • testMapOrganisationsIsEmptyWhenDocumentHasNoOrganisations

      public void testMapOrganisationsIsEmptyWhenDocumentHasNoOrganisations() throws Exception
      Throws:
      Exception
    • testMapOrganisationsExpectedToBeImmutable

      public void testMapOrganisationsExpectedToBeImmutable() throws Exception
      Throws:
      Exception
    • testMapOrganisationsFindOrganisationDefinedInDocument

      public void testMapOrganisationsFindOrganisationDefinedInDocument() throws Exception
      Throws:
      Exception
    • testPrimaryLicense

      public void testPrimaryLicense() throws Exception
      Throws:
      Exception
    • testNoPrimaryCopyright

      public void testNoPrimaryCopyright() throws Exception
      Throws:
      Exception
    • testPrimaryCopyright

      public void testPrimaryCopyright() throws Exception
      Throws:
      Exception
    • testBuildPrimaryCopyright

      public void testBuildPrimaryCopyright() throws Exception
      Throws:
      Exception
    • testThrowsMissingIDExceptionWhenPrimaryLicenseMissing

      public void testThrowsMissingIDExceptionWhenPrimaryLicenseMissing() throws Exception
      Throws:
      Exception
    • testPrimaryNoticeFindsNoticeText

      public void testPrimaryNoticeFindsNoticeText() throws Exception
      Throws:
      Exception
    • testPrimaryNoticeIsNullWhenThereIsNoNoticeText

      public void testPrimaryNoticeIsNullWhenThereIsNoNoticeText() throws Exception
      Throws:
      Exception
    • testPrimaryNoticeSubstitutesYearInNoticeText

      public void testPrimaryNoticeSubstitutesYearInNoticeText() throws Exception
      Throws:
      Exception
    • testFindPrimaryOrganisationIdReturnsNullWhenOrganisationUnset

      public void testFindPrimaryOrganisationIdReturnsNullWhenOrganisationUnset() throws Exception
      Throws:
      Exception
    • testFindPrimaryOrganisationIdWhenSet

      public void testFindPrimaryOrganisationIdWhenSet() throws Exception
      Throws:
      Exception
    • testCollectContentsReturneEmptyWhenDocumentHasNoContents

      public void testCollectContentsReturneEmptyWhenDocumentHasNoContents() throws Exception
      Throws:
      Exception
    • testCollectDirectoriesDefinedInDocument

      public void testCollectDirectoriesDefinedInDocument() throws Exception
      Throws:
      Exception
    • testCollectDirectoriesThrowsDuplicateElementExceptionWhenDirAttributeDuplicated

      public void testCollectDirectoriesThrowsDuplicateElementExceptionWhenDirAttributeDuplicated() throws Exception
      Throws:
      Exception