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 MqcihRequestModelTest11 { MqcihRequestModel testModel; String expectGetStr; String expectZeroStr; @BeforeEach void setUp() throws Exception { testModel = new MqcihRequestModel(); expectZeroStr = "0"; expectGetStr = "hoge"; } @Test void checkGetOutputDataLength01() { testModel.setOutputDataLength(expectGetStr); assertEquals(expectGetStr, testModel.getOutputDataLength()); } @Test void checkGetOutputDataLength02() { testModel.setOutputDataLength(null); assertEquals(expectZeroStr, testModel.getOutputDataLength()); } }