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 MqmdRequestModelTest02 { MqmdRequestModel testModel; String expectGetStr; String expectEmptyStr; @BeforeEach void setUp() throws Exception { testModel = new MqmdRequestModel(); expectEmptyStr = ""; expectGetStr = "hoge"; } @Test void checkGetMsgId01() { testModel.setMsgId(expectGetStr); assertEquals(expectGetStr, testModel.getMsgId()); } @Test void checkGetMsgId02() { testModel.setMsgId(null); assertEquals(expectEmptyStr, testModel.getMsgId()); } }