diff options
author | Andrew Vuong <akvuong@google.com> | 2023-02-13 23:15:30 +0000 |
---|---|---|
committer | Andrew Vuong <akvuong@google.com> | 2023-02-13 23:27:18 +0000 |
commit | 31f36d06e129f44025af7a07974a688bf294329d (patch) | |
tree | 3813a8a6c4402b036011aeb82ba7597aac31b33a /velocity-engine-core/src/test/resources/includeerror | |
parent | bc4c7a291f1579e1b6b903dc43b707a755577565 (diff) | |
parent | dc905fdbe4b5f2ea3ac2cb157f1d13ef8dd6c0bb (diff) | |
download | apache-velocity-engine-31f36d06e129f44025af7a07974a688bf294329d.tar.gz |
Initial import of apache-velocity-engine from upstream master
Bug: 262898801
Test: TH
Change-Id: I820a8f113056324148395f29443c5acd84f4acca
Diffstat (limited to 'velocity-engine-core/src/test/resources/includeerror')
6 files changed, 49 insertions, 0 deletions
diff --git a/velocity-engine-core/src/test/resources/includeerror/haserror.txt b/velocity-engine-core/src/test/resources/includeerror/haserror.txt new file mode 100644 index 00000000..3cbb379f --- /dev/null +++ b/velocity-engine-core/src/test/resources/includeerror/haserror.txt @@ -0,0 +1,7 @@ +## This file has a Velocity error. +## It's intentionally not saved with a 'vm' suffix +## to avoid errors in IDE + +#foreach($i in (1..10) + +$i
\ No newline at end of file diff --git a/velocity-engine-core/src/test/resources/includeerror/haserror2.txt b/velocity-engine-core/src/test/resources/includeerror/haserror2.txt new file mode 100644 index 00000000..b495c4fb --- /dev/null +++ b/velocity-engine-core/src/test/resources/includeerror/haserror2.txt @@ -0,0 +1,10 @@ +## This file has a Velocity error. +## It's intentionally not saved with a 'vm' suffix +## to avoid errors in IDE + +## Note: text directly from VELOCITY-96 + +#macro (myMacro $arg1 $list) +This is text from velPTest2.vm +#myMacro('name', ['apples', 'oranges'] +More text diff --git a/velocity-engine-core/src/test/resources/includeerror/missinginclude.vm b/velocity-engine-core/src/test/resources/includeerror/missinginclude.vm new file mode 100644 index 00000000..fd9c8c85 --- /dev/null +++ b/velocity-engine-core/src/test/resources/includeerror/missinginclude.vm @@ -0,0 +1,8 @@ +## tests to see if +## missing include throws an error + +text + +#include("doesntexist.vm") + +text
\ No newline at end of file diff --git a/velocity-engine-core/src/test/resources/includeerror/missingparse.vm b/velocity-engine-core/src/test/resources/includeerror/missingparse.vm new file mode 100644 index 00000000..ba8229f2 --- /dev/null +++ b/velocity-engine-core/src/test/resources/includeerror/missingparse.vm @@ -0,0 +1,8 @@ +## tests to see if +## missing parse throws an error + +text + +#parse("doesntexist.vm") + +text
\ No newline at end of file diff --git a/velocity-engine-core/src/test/resources/includeerror/parsemain.vm b/velocity-engine-core/src/test/resources/includeerror/parsemain.vm new file mode 100644 index 00000000..e3410331 --- /dev/null +++ b/velocity-engine-core/src/test/resources/includeerror/parsemain.vm @@ -0,0 +1,8 @@ +## tests to see if +## ParseException in parsed file is caught + +text + +#parse("haserror.txt") + +text
\ No newline at end of file diff --git a/velocity-engine-core/src/test/resources/includeerror/parsemain2.vm b/velocity-engine-core/src/test/resources/includeerror/parsemain2.vm new file mode 100644 index 00000000..ebcd20e7 --- /dev/null +++ b/velocity-engine-core/src/test/resources/includeerror/parsemain2.vm @@ -0,0 +1,8 @@ +## tests to see if +## ParseException in parsed file is caught + +text + +#parse("haserror2.txt") + +text
\ No newline at end of file |