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 MqcihRequestModelTest04 { MqcihRequestModel testModel; String expectGetStr; String expectEmptyStr; @BeforeEach void setUp() throws Exception { testModel = new MqcihRequestModel(); expectEmptyStr = ""; expectGetStr = "hoge"; } @Test void checkGetFormat01() { testModel.setFormat(expectGetStr); assertEquals(expectGetStr, testModel.getFormat()); } @Test void checkGetFormat02() { testModel.setFormat(null); assertEquals(expectEmptyStr, testModel.getFormat()); } }