@@ -356,22 +356,6 @@ public void test35() {
356
356
Assertions .assertEquals (0.5d , MapUtils .getDouble (map , "result" ));
357
357
}
358
358
359
- @ Test
360
- public void test36 () {
361
- Map <String , Object > map = EVALUATOR .evaluate (
362
- Map .of ("type" , "type" , "number" , "=stringf('%03d',5)" ), Collections .emptyMap ());
363
-
364
- Assertions .assertEquals ("005" , MapUtils .getString (map , "number" ));
365
- }
366
-
367
- @ Test
368
- public void test37 () {
369
- Map <String , Object > map = EVALUATOR .evaluate (
370
- Map .of ("type" , "type" , "number" , "=stringf('%s %s','hello','world')" ), Collections .emptyMap ());
371
-
372
- Assertions .assertEquals ("hello world" , MapUtils .getString (map , "number" ));
373
- }
374
-
375
359
@ Test
376
360
public void test38 () {
377
361
Map <String , Object > map = EVALUATOR .evaluate (
@@ -438,24 +422,4 @@ public void test42() {
438
422
Assertions .assertEquals (2 , MapUtils .getInteger (map , "size" ));
439
423
}
440
424
441
- // @Test
442
- // public void test41() {
443
- // Environment environment = mock(Environment.class);
444
- // when(environment.getProperty("my.property")).thenReturn("something");
445
- //
446
- // Map<String, Object> map = EVALUATOR.evaluate(
447
- // Map.of("type", "type", "myValue", "${config('my.property')}"), Collections.emptyMap());
448
- //
449
- // Assertions.assertEquals("something", MapValueUtils.getString(map, "myValue"));
450
- // }
451
- //
452
- // @Test
453
- // public void test42() {
454
- // Environment environment = mock(Environment.class);
455
- // Map<String, Object> map = EVALUATOR.evaluate(
456
- // Map.of("type", "type", "myValue", "${config('no.such.property')}"), Collections.emptyMap());
457
- //
458
- // Assertions.assertEquals(
459
- // "${config('no.such.property')}", MapValueUtils.getString(map, "myValue"));
460
- // }
461
425
}
0 commit comments