@@ -1332,6 +1332,15 @@ public void testDictionaryUpload() throws IOException {
1332
1332
Entity dict1 = conn .run ("dict" );
1333
1333
assertEquals (3 , dict1 .rows ());
1334
1334
}
1335
+ @ Test
1336
+ public void testDurationUpload () throws IOException {
1337
+ Entity duration = conn .run ("duration(3XNYS)" );
1338
+ Map <String , Entity > map = new HashMap <String , Entity >();
1339
+ map .put ("duration" , duration );
1340
+ conn .upload (map );
1341
+ Entity duration1 = conn .run ("duration" );
1342
+ assertEquals ("3XNYS" , duration1 .getString ());
1343
+ }
1335
1344
1336
1345
@ Test
1337
1346
public void testFunction () throws IOException {
@@ -1365,6 +1374,17 @@ public void testAnyVector() throws IOException, Exception {
1365
1374
assertEquals ("2" , result .get (0 ).getString ());
1366
1375
}
1367
1376
1377
+ @ Test
1378
+ public void testAnyVector_Duration_Upload () throws Exception {
1379
+ DBConnection conn = new DBConnection ();
1380
+ conn .connect (HOST ,PORT ,"admin" ,"123456" );
1381
+ Entity bdv = conn .run ("[duration(3XNYS),duration(3XNYS)]" );
1382
+ Map <String , Entity > map = new HashMap <String , Entity >();
1383
+ map .put ("duration" , bdv );
1384
+ conn .upload (map );
1385
+ Entity duration1 = conn .run ("duration" );
1386
+ assertEquals ("(3XNYS,3XNYS)" , duration1 .getString ());
1387
+ }
1368
1388
@ Test
1369
1389
public void testSet () throws IOException {
1370
1390
BasicSet result = (BasicSet ) conn .run ("set(1+3*1..100)" );
0 commit comments