Searched refs:valueMap (Results 1 – 2 of 2) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | StringUtilTest.java | 33 Map<String, String> valueMap = new HashMap<>(); in testExpand() local 34 valueMap.put("FOO", "foo"); in testExpand() 35 valueMap.put("BAR", "bar"); in testExpand() 37 assertEquals("foo-bar-zzz", StringUtil.expand("${FOO}-${BAR}-zzz", valueMap)); in testExpand() 38 assertEquals("foo-bar-", StringUtil.expand("${FOO}-${BAR}-${ZZZ}", valueMap)); in testExpand() 39 assertEquals("${FOO-bar-$ZZZ}", StringUtil.expand("${FOO-${BAR}-$ZZZ}", valueMap)); in testExpand()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | StringUtil.java | 41 public static String expand(String str, Map<String, String> valueMap) { in expand() argument 47 final String value = valueMap.getOrDefault(key, ""); in expand()
|