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 MqcihRequestModelTest01 { MqcihRequestModel testModel; String expectGetStr; String expectEmptyStr; @BeforeEach void setUp() throws Exception { testModel = new MqcihRequestModel(); expectEmptyStr = ""; expectGetStr = "hoge"; } @Test void checkGetStrucId01() { testModel.setStrucId(expectGetStr); assertEquals(expectGetStr, testModel.getStrucId()); } @Test void checkGetStrucId02() { testModel.setStrucId(null); assertEquals(expectEmptyStr, testModel.getStrucId()); } }