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 MqmdRequestModelTest05 { MqmdRequestModel testModel; String expectGetStr; String expectZeroStr; @BeforeEach void setUp() throws Exception { testModel = new MqmdRequestModel(); expectZeroStr = "0"; expectGetStr = "hoge"; } @Test void checkGetExpiry01() { testModel.setExpiry(expectGetStr); assertEquals(expectGetStr, testModel.getExpiry()); } @Test void checkGetExpiry02() { testModel.setExpiry(null); assertEquals(expectZeroStr, testModel.getExpiry()); } }