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 MqcihRequestModelTest27 { MqcihRequestModel testModel; String expectGetStr; String expectZeroStr; @BeforeEach void setUp() throws Exception { testModel = new MqcihRequestModel(); expectZeroStr = "0"; expectGetStr = "hoge"; } @Test void checkGetCursorPositon01() { testModel.setCursorPositon(expectGetStr); assertEquals(expectGetStr, testModel.getCursorPositon()); } @Test void checkGetCursorPositon02() { testModel.setCursorPositon(null); assertEquals(expectZeroStr, testModel.getCursorPositon()); } }