mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-1081: Merge correction to token modifier case within TokenFilter unit tests.
This commit is contained in:
@@ -60,12 +60,12 @@ public class TokenFilterTest {
|
|||||||
|
|
||||||
assertEquals(
|
assertEquals(
|
||||||
"value-of-c",
|
"value-of-c",
|
||||||
tokenFilter.filter("${TOKEN_C:lower}")
|
tokenFilter.filter("${TOKEN_C:LOWER}")
|
||||||
);
|
);
|
||||||
|
|
||||||
assertEquals(
|
assertEquals(
|
||||||
"VALUE-OF-C",
|
"VALUE-OF-C",
|
||||||
tokenFilter.filter("${TOKEN_C:upper}")
|
tokenFilter.filter("${TOKEN_C:UPPER}")
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -83,7 +83,7 @@ public class TokenFilterTest {
|
|||||||
tokenFilter.setToken("TOKEN_B", "value-of-b");
|
tokenFilter.setToken("TOKEN_B", "value-of-b");
|
||||||
|
|
||||||
// Create test map
|
// Create test map
|
||||||
Map<Integer, String> map = new HashMap<Integer, String>();
|
Map<Integer, String> map = new HashMap<>();
|
||||||
map.put(1, "$$${NOPE}hello${TOKEN_A}world${TOKEN_B}$${NOT_A_TOKEN}");
|
map.put(1, "$$${NOPE}hello${TOKEN_A}world${TOKEN_B}$${NOT_A_TOKEN}");
|
||||||
map.put(2, "${NOPE}hello${TOKEN_A}world${TOKEN_C}");
|
map.put(2, "${NOPE}hello${TOKEN_A}world${TOKEN_C}");
|
||||||
map.put(3, null);
|
map.put(3, null);
|
||||||
|
Reference in New Issue
Block a user