1 | fs.addFilter("test", "@test1@");↵ | | |
|
2 | fs.addFilter("test1","@test2@");↵ | | 1 | fs.addFilter("test1","@test2@");↵
|
3 | fs.addFilter("test2", "it works↵ | | 2 | fs.addFilter("test2", "@test@");↵
|
4 | ");↵ | | 3 | fs.addFilter("test3", "testvalue");↵
|
5 | fs.setBeginToken("@");↵ | | 4 | fs.setBeginToken("@");↵
|
6 | fs.setEndToken("@");↵ | | 5 | fs.setEndToken("@");↵
|
7 | assertEquals(result, fs.replaceTokens(line));↵ | | 6 | assertEquals(result, fs.replaceTokens(line));↵
|
8 | }↵ | | 7 | }↵
|
|
9 | /**↵ | | 8 | /**↵
|
10 | * Test to see what happens when the resolving occurs in an↵ | | 9 | * Test to see what happens when the resolving occurs in↵
|
11 | * infinite loop.↵ | | 10 | * what would be an infinite loop, but with recursion disabled.↵
|
12 | */↵ | | 11 | */↵
|
13 | public void testInfinite() {↵ | | 12 | public void testRecursionDisabled() {↵
|
14 | String result = "@test@ line testvalue";↵ | | 13 | String result = "@test1@ line testvalue";↵
|
15 | String line = "@test@ line @test3@";↵ | | 14 | String line = "@test@ line @test2@";↵
|
16 | FilterSet fs = new FilterSet();↵ | | 15 | FilterSet fs = new FilterSet();↵
|
17 | fs.addFilter("test", "@test1@");↵ | | 16 | fs.addFilter("test", "@test1@");↵
|
18 | fs.addFilter("test1","@test2@");↵ | | 17 | fs.addFilter("test1","@test@");↵
|
19 | fs.addFilter("test2", "@test@");↵ | | 18 | fs.addFilter("test2", "testvalue");↵
|
20 | fs. | | 19 | fs.
|