diff options
author | a.sreekumar <ajith.sreekumar@bell.ca> | 2022-01-06 14:52:15 +0000 |
---|---|---|
committer | a.sreekumar <ajith.sreekumar@bell.ca> | 2022-01-11 17:04:05 +0000 |
commit | 7a718bd9b82ac16e5d49a1a2fb2256682f020656 (patch) | |
tree | 4497fd1e56e60bec736fe4f2d30680e795560de8 /models-interactions | |
parent | 5da73554e8fdc16864338f9b796418777cacb660 (diff) |
Fix issues in existing entity classes
Issues identified in the entity classes are fixed in this
review. Some fixes doesn't affect the table structure at all.
Tables actually affected by some of these fixes are not really used today, and doesn't
contain any data. A separate review is raised for the db-migrator
changes.
Change-Id: I0efdf2c5f17e12225f1b443b5fe8e27c578229f7
Issue-ID: POLICY-3871
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Diffstat (limited to 'models-interactions')
-rw-r--r-- | models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/DmaapSimulatorTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/DmaapSimulatorTest.java b/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/DmaapSimulatorTest.java index fab041f8b..19c399db8 100644 --- a/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/DmaapSimulatorTest.java +++ b/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/DmaapSimulatorTest.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2019, 2022 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2022 Bell Canada. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,6 +19,7 @@ package org.onap.policy.simulators; +import static org.assertj.core.api.Assertions.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; @@ -85,6 +87,7 @@ public class DmaapSimulatorTest { .register((infra, topic, event) -> queue.add(event)); DmaapTopicSink sink = TopicEndpointManager.getManager().getDmaapTopicSink(TOPIC); + assertThat(queue.poll(1, TimeUnit.SECONDS)).isNull(); sink.send("hello"); assertEquals("hello", queue.poll(MAX_WAIT_SEC, TimeUnit.SECONDS)); |