GUACAMOLE-1081: Merge correction to token modifier case within TokenFilter unit tests.

This commit is contained in:
Mike Jumper
2020-10-30 18:14:01 -07:00
committed by GitHub

View File

@@ -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);