blob: 10a6ae0655629c5e34518141e14e3f3b772e90d5 (
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
24
|
// Copyright Yahoo. 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 SimpleMessageTestCase {
@Test
void requireThatAccessorsWork() {
SimpleMessage msg = new SimpleMessage("foo");
assertEquals(SimpleProtocol.MESSAGE, msg.getType());
assertEquals(SimpleProtocol.NAME, msg.getProtocol());
assertEquals(3, msg.getApproxSize());
assertEquals("foo", msg.getValue());
msg.setValue("bar");
assertEquals("bar", msg.getValue());
}
}
|