aboutsummaryrefslogtreecommitdiffstats
path: root/messagebus/src/test/java/com/yahoo/messagebus/test/SimpleReplyTestCase.java
blob: 68db77ef298e8192d2d180afd0b6ed6787ab8d5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.messagebus.test;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

/**
 * @author Simon Thoresen Hult
 */
public class SimpleReplyTestCase {

    @Test
    void requireThatAccessorsWork() {
        SimpleReply reply = new SimpleReply("foo");
        assertEquals(SimpleProtocol.REPLY, reply.getType());
        assertEquals(SimpleProtocol.NAME, reply.getProtocol());
        assertEquals("foo", reply.getValue());
        reply.setValue("bar");
        assertEquals("bar", reply.getValue());
    }

}