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 SendMessageRequestModelTest02 { SendMessageRequestModel testModel; String expectGetStr; String expectEmptyStr; @BeforeEach void setUp() throws Exception { testModel = new SendMessageRequestModel(); expectEmptyStr = ""; expectGetStr = "hoge"; } @Test void checkGetAds01() { testModel.setAds(expectGetStr); assertEquals(expectGetStr, testModel.getAds()); } @Test void checkGetAds02() { testModel.setAds(null); assertEquals(expectEmptyStr, testModel.getAds()); } }