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 MqcihRequestModelTest07 { MqcihRequestModel testModel; String expectGetStr; String expectZeroStr; @BeforeEach void setUp() throws Exception { testModel = new MqcihRequestModel(); expectZeroStr = "0"; expectGetStr = "hoge"; } @Test void checkGetreason01() { testModel.setReason(expectGetStr); assertEquals(expectGetStr, testModel.getReason()); } @Test void checkGetreason02() { testModel.setReason(null); assertEquals(expectZeroStr, testModel.getReason()); } }