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 MqmdRequestModelTest03 { MqmdRequestModel testModel; String expectGetStr; String expectEmptyStr; @BeforeEach void setUp() throws Exception { testModel = new MqmdRequestModel(); expectEmptyStr = ""; expectGetStr = "hoge"; } @Test void checkGetCorrelId01() { testModel.setCorrelId(expectGetStr); assertEquals(expectGetStr, testModel.getCorrelId()); } @Test void checkGetCorrelId02() { testModel.setCorrelId(null); assertEquals(expectEmptyStr, testModel.getCorrelId()); } }