Class ImpExTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class ImpExTest extends AbstractImpExTest
This test cases check the script parsing and header validation of the impex extension.
  • Field Details

  • Constructor Details

    • ImpExTest

      public ImpExTest()
  • Method Details

    • testSiblingAttributes

      public void testSiblingAttributes()
      Tests different kinds of equal attribute name in header.
    • getOtherRequiredAttributes

      protected String getOtherRequiredAttributes(ComposedType composedType, List alreadyGot)
      Gets semicolon separated string with all attributes of given type not listed in alreadyGot.
      Parameters:
      composedType - type for which all attributes are needed
      alreadyGot - list of attributes which have to be excluded
      Returns:
      semicolon separated string of attributes
    • testHeaderErrors

      public void testHeaderErrors()
      Tests the header validation with different errors.
    • testHeaderDetection

      public void testHeaderDetection()
      Checks if header lines are detected correct. See PLA-5115.
    • testHeaderParsing

      public void testHeaderParsing()
      Tests the correct parsing of headers using ImpExReader.
    • testAbstractInsertUpdate

      public void testAbstractInsertUpdate()
      Tests if inserts and updates of abstract types are handled correct.
      See PLA-5106.
    • testSubtypeReferenceExpression

      public void testSubtypeReferenceExpression()
      Tests the usage of subtype references in header descriptor.
    • testBeanShellAfterEach

      public void testBeanShellAfterEach()
      Tests the afterEach bean shell marker.
    • testBeanShell

      public void testBeanShell()
      Tests the usage of bean shell.
    • testBeanShellIf

      public void testBeanShellIf()
      Tests the bean shell if condition.
    • testBeanShellIncludeExternaDataChained

      public void testBeanShellIncludeExternaDataChained()
      Tests the includeExternalData statement of bean shell.
    • testIncludeCSVFromProperties

      public void testIncludeCSVFromProperties()
    • testIncludeCSVFromPropertiesIgnoreMissingValues

      public void testIncludeCSVFromPropertiesIgnoreMissingValues() throws ConsistencyCheckException
      Throws:
      ConsistencyCheckException
    • testReaderManager

      public void testReaderManager()
      Test the ReaderManager class.
    • testBeanShellIncludeExternaData

      public void testBeanShellIncludeExternaData()
      Tests the including of external data in chained case.
    • testLocalizedAttributePartialChange

      public void testLocalizedAttributePartialChange()
      Tests the partial update of localized attributes, means the update of only some localizations.
    • testFixedLengthCSVReader

      public void testFixedLengthCSVReader()
    • testBeanShellExternalSyntaxParsing

      public void testBeanShellExternalSyntaxParsing()
      Tests external syntax parsing.
    • testDefinitions

      public void testDefinitions()
      Tests the usage of definitions.
    • testIllegalAttributeType

      public void testIllegalAttributeType()
      Tests for correct errors if using illegal attribute types in header descriptor.
    • checkColumnDescriptor

      protected void checkColumnDescriptor(StandardColumnDescriptor columnDescriptor, HeaderDescriptor header, String qualifier, int position, AttributeDescriptor attributeDescriptor, boolean localized, boolean initial, boolean readonly, boolean partof, boolean mandatory, boolean unique, String languageIso, Map modifiers)
      Checks if given column descriptor has all given attributes.
      Parameters:
      columnDescriptor - column descriptor which will be checked
      header - expected header
      qualifier - expected qualifier
      position - expected position
      attributeDescriptor - expected attribute descriptor
      localized - expected localized flag
      initial - expected initial flag
      readonly - expected readonly flag
      partof - expected partof flag
      mandatory - expected mandatory flag
      unique - expected unique flag
      languageIso - expected languageIso
      modifiers - expected modifiers
    • testReferenceByRelation

      public void testReferenceByRelation()
      Tests usage of relation as reference type in header descriptor.
    • removeQuietly

      protected void removeQuietly(Item... items)
    • testBeanShellInsertLine

      public void testBeanShellInsertLine()
      Tests bean shell method insetLine.
    • testBeanShellDiscardAndDumpLine

      public void testBeanShellDiscardAndDumpLine()
      Tests the methods discardLine and dumpLine for bean shell usage.
    • testBeforeEach

      public void testBeforeEach() throws IOException
      Tests the methods discardLine and dumpLine for bean shell usage.
      Throws:
      IOException
    • testBeforeEachMultiThread

      public void testBeforeEachMultiThread() throws IOException
      Throws:
      IOException
    • testCreateItem

      public void testCreateItem()
    • testParseColumnDescriptor

      public void testParseColumnDescriptor()