google / escapevelocity

A subset reimplementation of Apache Velocity with a much simpler API.
Apache License 2.0
33 stars 11 forks source link

Rewrite `TemplateTest` so it works with Velocity v1.7 and v2.x. #40

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

Rewrite TemplateTest so it works with Velocity v1.7 and v2.x.

There are two aspects to this. First, some APIs have changed, so we recode the test to avoid those APIs. Second, some behaviour has changed in v2.x, and some new bugs have been introduced. For now, we just avoid testing those areas if we detect we are using v2.x. Later we may have a v2.x compatibility mode for at least some of these behaviour changes.

RELNOTES=n/a