Class TestValidTypeDefEvent


public class TestValidTypeDefEvent extends RepositoryConformanceTestCase
TestValidTypeDefEvent validates the format of an incoming TypeDefEvent
  • Constructor Details

    • TestValidTypeDefEvent

      public TestValidTypeDefEvent(RepositoryConformanceWorkPad workPad, int eventIdentifier, OMRSTypeDefEvent event)
      Typical constructor sets up superclass and discovered information needed for tests
      Parameters:
      workPad - place for parameters and results
      eventIdentifier - event counter to keep test case ids unique
      event - incoming event that triggered the test case
  • Method Details

    • getServerName

      public String getServerName()
      Return the originator's server name extracted from the event.
      Returns:
      string name
    • getMetadataCollectionId

      public String getMetadataCollectionId()
      Return the originator's metadata collection Id extracted from the event.
      Returns:
      string name
    • getExtractedAttributeTypeDef

      public AttributeTypeDef getExtractedAttributeTypeDef()
      Return the attribute type definition extracted from the event (or null).
      Returns:
      AttributeTypeDef object
    • getExtractedTypeDef

      public TypeDef getExtractedTypeDef()
      Return the type definition extracted from the event (or null).
      Returns:
      Typedef object
    • run

      protected void run() throws Exception
      Dummy method needed to satisfy the superclass
      Specified by:
      run in class OpenMetadataTestCase
      Throws:
      Exception - something went wrong with the test.