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 MqcihRequestModelTest24 { MqcihRequestModel testModel; String expectGetStr; String expectEmptyStr; @BeforeEach void setUp() throws Exception { testModel = new MqcihRequestModel(); expectEmptyStr = ""; expectGetStr = "hoge"; } @Test void checkGetStartCode01() { testModel.setStartCode(expectGetStr); assertEquals(expectGetStr, testModel.getStartCode()); } @Test void checkGetStartCode02() { testModel.setStartCode(null); assertEquals(expectEmptyStr, testModel.getStartCode()); } }