Search in sources :

Example 11 with MessageVersion

use of org.apache.atlas.model.notification.MessageVersion in project atlas by apache.

the class AtlasNotificationMessageTest method testGetMessage.

@Test
public void testGetMessage() throws Exception {
    String message = "a";
    MessageVersion version = new MessageVersion("1.0.0");
    AtlasNotificationMessage<String> atlasNotificationMessage = new AtlasNotificationMessage<>(version, message);
    assertEquals(atlasNotificationMessage.getMessage(), message);
}
Also used : MessageVersion(org.apache.atlas.model.notification.MessageVersion) AtlasNotificationMessage(org.apache.atlas.model.notification.AtlasNotificationMessage) Test(org.testng.annotations.Test)

Example 12 with MessageVersion

use of org.apache.atlas.model.notification.MessageVersion in project atlas by apache.

the class AtlasNotificationMessageTest method testGetVersion.

@Test
public void testGetVersion() throws Exception {
    MessageVersion version = new MessageVersion("1.0.0");
    AtlasNotificationMessage<String> atlasNotificationMessage = new AtlasNotificationMessage<>(version, "a");
    assertEquals(atlasNotificationMessage.getVersion(), version);
}
Also used : MessageVersion(org.apache.atlas.model.notification.MessageVersion) AtlasNotificationMessage(org.apache.atlas.model.notification.AtlasNotificationMessage) Test(org.testng.annotations.Test)

Aggregations

MessageVersion (org.apache.atlas.model.notification.MessageVersion)12 Test (org.testng.annotations.Test)12 AtlasNotificationMessage (org.apache.atlas.model.notification.AtlasNotificationMessage)4 ArrayList (java.util.ArrayList)3 LinkedList (java.util.LinkedList)3 List (java.util.List)3 AtlasKafkaMessage (org.apache.atlas.kafka.AtlasKafkaMessage)3 Logger (org.slf4j.Logger)3 Map (java.util.Map)2 HookNotification (org.apache.atlas.model.notification.HookNotification)2 EntityNotificationTest (org.apache.atlas.notification.entity.EntityNotificationTest)2 Referenceable (org.apache.atlas.v1.model.instance.Referenceable)2 EntityUpdateRequest (org.apache.atlas.v1.model.notification.HookNotificationV1.EntityUpdateRequest)2 ConsumerRecord (org.apache.kafka.clients.consumer.ConsumerRecord)2 ConsumerRecords (org.apache.kafka.clients.consumer.ConsumerRecords)2 TopicPartition (org.apache.kafka.common.TopicPartition)2 IncompatibleVersionException (org.apache.atlas.notification.IncompatibleVersionException)1