package com.pgf.mqspring.model; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; class SendMessageRequestModelTest01 { SendMessageRequestModel testModel; String expectGetStr; String expectEmptyStr; @BeforeEach void setUp() throws Exception { testModel = new SendMessageRequestModel(); expectEmptyStr = ""; expectGetStr = "hoge"; } @Test void checkGetNormalMessage01() { testModel.setNormalMessage(expectGetStr); assertEquals(expectGetStr, testModel.getNormalMessage()); } @Test void checkGetNormalMessage02() { testModel.setNormalMessage(null); assertEquals(expectEmptyStr, testModel.getNormalMessage()); } }