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 MqmdRequestModelTest04 { MqmdRequestModel testModel; String expectGetStr; String expectZeroStr; @BeforeEach void setUp() throws Exception { testModel = new MqmdRequestModel(); expectZeroStr = "0"; expectGetStr = "hoge"; } @Test void checkGetPersistence01() { testModel.setPersistence(expectGetStr); assertEquals(expectGetStr, testModel.getPersistence()); } @Test void checkGetPersistence02() { testModel.setPersistence(null); assertEquals(expectZeroStr, testModel.getPersistence()); } }