Class TestValidTypeDefEvent
java.lang.Object
org.odpi.openmetadata.conformance.beans.OpenMetadataTestCase
org.odpi.openmetadata.conformance.tests.repository.RepositoryConformanceTestCase
org.odpi.openmetadata.conformance.tests.repository.types.TestValidTypeDefEvent
TestValidTypeDefEvent validates the format of an incoming TypeDefEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.conformance.beans.OpenMetadataTestCase
OpenMetadataTestCase.TestPhase
-
Field Summary
Fields inherited from class org.odpi.openmetadata.conformance.tests.repository.RepositoryConformanceTestCase
cohortRepositoryConnector, repositoryConformanceWorkPad
Fields inherited from class org.odpi.openmetadata.conformance.beans.OpenMetadataTestCase
defaultProfileId, defaultRequirementId, discoveredProperties, exceptionBean, notSupportedAssertions, successfulAssertions, testCaseDescriptionURL, unsuccessfulAssertions, workPad
-
Constructor Summary
ConstructorDescriptionTestValidTypeDefEvent
(RepositoryConformanceWorkPad workPad, int eventIdentifier, OMRSTypeDefEvent event) Typical constructor sets up superclass and discovered information needed for tests -
Method Summary
Modifier and TypeMethodDescriptionReturn the attribute type definition extracted from the event (or null).Return the type definition extracted from the event (or null).Return the originator's metadata collection Id extracted from the event.Return the originator's server name extracted from the event.protected void
run()
Dummy method needed to satisfy the superclassMethods inherited from class org.odpi.openmetadata.conformance.tests.repository.RepositoryConformanceTestCase
addEntityProxyToRepository, addEntityToRepository, buildExceptionMessage, generatePropertiesForInstance, getAllPropertiesForInstance, getAllUniquePropertiesForInstance, getEntityDef, getMaxSearchResults, getMetadataCollection, getMinPropertiesForInstance, getPropertiesForInstance, getPropertiesForTypeDef, getRepositoryConnector, incrementSuccessfulCount, incrementUnsuccessfulCount, logTestEnd, logTestStart, updateTestIdByType
Methods inherited from class org.odpi.openmetadata.conformance.beans.OpenMetadataTestCase
addDiscoveredProperty, addNotSupportedAssertion, assertCondition, assertCondition, assertObjectsAreEqual, cleanTest, cleanup, endAsynchronousTest, executeTest, executeTest, getResult, getSummary, getTestCaseDescriptionURL, getTestCaseId, getTestCaseName, isTestPassed, isTestRan, run, setSuccessMessage, startAsynchronousTest, toString, updateTestId, verifyCondition, verifyCondition, verifyObjectsAreEqual
-
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 resultseventIdentifier
- event counter to keep test case ids uniqueevent
- incoming event that triggered the test case
-
-
Method Details
-
getServerName
Return the originator's server name extracted from the event.- Returns:
- string name
-
getMetadataCollectionId
Return the originator's metadata collection Id extracted from the event.- Returns:
- string name
-
getExtractedAttributeTypeDef
Return the attribute type definition extracted from the event (or null).- Returns:
- AttributeTypeDef object
-
getExtractedTypeDef
Return the type definition extracted from the event (or null).- Returns:
- Typedef object
-
run
Dummy method needed to satisfy the superclass- Specified by:
run
in classOpenMetadataTestCase
- Throws:
Exception
- something went wrong with the test.
-