2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2018 Ericsson. All rights reserved.
4 * Modifications Copyright (C) 2024 Nordix Foundation.
5 * ================================================================================
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
18 * SPDX-License-Identifier: Apache-2.0
19 * ============LICENSE_END=========================================================
22 package org.onap.policy.apex.testsuites.performance.benchmark.eventgenerator.events;
24 import static org.junit.jupiter.api.Assertions.assertEquals;
25 import static org.junit.jupiter.api.Assertions.assertNotNull;
27 import org.junit.jupiter.api.Test;
30 * Test the OutputEvent class.
32 class OutputEventTest {
36 OutputEvent oe = new OutputEvent();
39 oe.setTestMatchCaseSelected(32112);
40 assertEquals(32112, oe.getTestMatchCaseSelected());
42 oe.setTestMatchStateTime(34455778822L);
43 assertEquals(34455778822L, oe.getTestMatchStateTime());
45 oe.setTestEstablishCaseSelected(1321);
46 assertEquals(1321, oe.getTestEstablishCaseSelected());
48 oe.setTestEstablishStateTime(13445566778822L);
49 assertEquals(13445566778822L, oe.getTestEstablishStateTime());
51 oe.setTestDecideCaseSelected(321);
52 assertEquals(321, oe.getTestDecideCaseSelected());
54 oe.setTestDecideStateTime(3445566778822L);
55 assertEquals(3445566778822L, oe.getTestDecideStateTime());
57 oe.setTestActCaseSelected(332);
58 assertEquals(332, oe.getTestActCaseSelected());
60 oe.setTestActStateTime(34455667788L);
61 assertEquals(34455667788L, oe.getTestActStateTime());
63 oe.setTestReceviedTimestamp(134455667788222L);
64 assertEquals(134455667788222L, oe.getTestReceviedTimestamp());
66 oe.setTestSlogan("0-0: Whatever");
67 assertEquals(0, oe.findBatchNumber());
68 assertEquals(0, oe.findEventNumber());