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 SendMapVectorRequestModelTest01 { SendMapVectorRequestModel testModel; String expectGetStr; String expectEmptyStr; @BeforeEach void setUp() throws Exception { testModel = new SendMapVectorRequestModel(); expectEmptyStr = ""; expectGetStr = "hoge"; } @Test void checkGetVectorDescriptor01() { testModel.setVectorDescriptor(expectGetStr); assertEquals(expectGetStr, testModel.getVectorDescriptor()); } @Test void checkGetVectorDescriptor02() { testModel.setVectorDescriptor(null); assertEquals(expectEmptyStr, testModel.getVectorDescriptor()); } }