@@ -124,95 +124,71 @@ void timestampAsArrowInt() {
124124 @ Test
125125 void getMappedValueValidMetaDataInteger () {
126126 Field field = VectorSchemaRootUtils .generateIntField ("test" );
127- String metaType = field .getMetadata ().get ("iox::column::type" );
128127 Long value = 1L ;
129- String fieldName = field .getName ();
130- Object mappedValue = VectorSchemaRootConverter .INSTANCE
131- .getMappedValue ("field" , metaType , value , fieldName , field );
128+ Object mappedValue = VectorSchemaRootConverter .INSTANCE .getMappedValue (field , value );
132129 Assertions .assertThat (mappedValue ).isEqualTo (value );
133130 Assertions .assertThat (mappedValue .getClass ()).isEqualTo (Long .class );
134131 }
135132
136133 @ Test
137134 void getMappedValueInvalidMetaDataInteger () {
138135 Field field = VectorSchemaRootUtils .generateInvalidIntField ("test" );
139- String metaType = field .getMetadata ().get ("iox::column::type" );
140136 String value = "1" ;
141- String fieldName = field .getName ();
142- Object mappedValue = VectorSchemaRootConverter .INSTANCE
143- .getMappedValue ("field" , metaType , value , fieldName , field );
137+ Object mappedValue = VectorSchemaRootConverter .INSTANCE .getMappedValue (field , value );
144138 Assertions .assertThat (mappedValue ).isEqualTo (value );
145139 Assertions .assertThat (mappedValue .getClass ()).isEqualTo (String .class );
146140 }
147141
148142 @ Test
149143 void getMappedValueValidMetaDataFloat () {
150144 Field field = VectorSchemaRootUtils .generateFloatField ("test" );
151- String metaType = field .getMetadata ().get ("iox::column::type" );
152145 Double value = 1.2 ;
153- String fieldName = field .getName ();
154- Object mappedValue = VectorSchemaRootConverter .INSTANCE
155- .getMappedValue ("field" , metaType , value , fieldName , field );
146+ Object mappedValue = VectorSchemaRootConverter .INSTANCE .getMappedValue (field , value );
156147 Assertions .assertThat (mappedValue ).isEqualTo (value );
157148 Assertions .assertThat (mappedValue .getClass ()).isEqualTo (Double .class );
158149 }
159150
160151 @ Test
161152 void getMappedValueInvalidMetaDataFloat () {
162153 Field field = VectorSchemaRootUtils .generateInvalidFloatField ("test" );
163- String metaType = field .getMetadata ().get ("iox::column::type" );
164154 String value = "1.2" ;
165- String fieldName = field .getName ();
166- Object mappedValue = VectorSchemaRootConverter .INSTANCE
167- .getMappedValue ("field" , metaType , value , fieldName , field );
155+ Object mappedValue = VectorSchemaRootConverter .INSTANCE .getMappedValue (field , value );
168156 Assertions .assertThat (mappedValue ).isEqualTo (value );
169157 Assertions .assertThat (mappedValue .getClass ()).isEqualTo (String .class );
170158 }
171159
172160 @ Test
173161 void getMappedValueValidMetaDataString () {
174162 Field field = VectorSchemaRootUtils .generateStringField ("test" );
175- String metaType = field .getMetadata ().get ("iox::column::type" );
176163 String value = "string" ;
177- String fieldName = field .getName ();
178- Object mappedValue = VectorSchemaRootConverter .INSTANCE
179- .getMappedValue ("field" , metaType , value , fieldName , field );
164+ Object mappedValue = VectorSchemaRootConverter .INSTANCE .getMappedValue (field , value );
180165 Assertions .assertThat (mappedValue ).isEqualTo (value );
181166 Assertions .assertThat (mappedValue .getClass ()).isEqualTo (String .class );
182167 }
183168
184169 @ Test
185170 void getMappedValueInvalidMetaDataString () {
186171 Field field = VectorSchemaRootUtils .generateInvalidStringField ("test" );
187- String metaType = field .getMetadata ().get ("iox::column::type" );
188172 Double value = 1.1 ;
189- String fieldName = field .getName ();
190- Object mappedValue = VectorSchemaRootConverter .INSTANCE
191- .getMappedValue ("field" , metaType , value , fieldName , field );
173+ Object mappedValue = VectorSchemaRootConverter .INSTANCE .getMappedValue (field , value );
192174 Assertions .assertThat (mappedValue ).isEqualTo (value );
193175 Assertions .assertThat (mappedValue .getClass ()).isEqualTo (Double .class );
194176 }
195177
196178 @ Test
197179 void getMappedValueValidMetaDataBoolean () {
198180 Field field = VectorSchemaRootUtils .generateBoolField ("test" );
199- String metaType = field .getMetadata ().get ("iox::column::type" );
200181 Boolean value = true ;
201- String fieldName = field .getName ();
202- Object mappedValue = VectorSchemaRootConverter .INSTANCE
203- .getMappedValue ("field" , metaType , value , fieldName , field );
182+ Object mappedValue = VectorSchemaRootConverter .INSTANCE .getMappedValue (field , value );
204183 Assertions .assertThat (mappedValue ).isEqualTo (value );
205184 Assertions .assertThat (mappedValue .getClass ()).isEqualTo (Boolean .class );
206185 }
207186
208187 @ Test
209188 void getMappedValueInvalidMetaDataBoolean () {
210189 Field field = VectorSchemaRootUtils .generateInvalidBoolField ("test" );
211- String metaType = field .getMetadata ().get ("iox::column::type" );
212190 String value = "true" ;
213- String fieldName = field .getName ();
214- Object mappedValue = VectorSchemaRootConverter .INSTANCE
215- .getMappedValue ("field" , metaType , value , fieldName , field );
191+ Object mappedValue = VectorSchemaRootConverter .INSTANCE .getMappedValue (field , value );
216192 Assertions .assertThat (mappedValue ).isEqualTo (value );
217193 Assertions .assertThat (mappedValue .getClass ()).isEqualTo (String .class );
218194 }
0 commit comments