Home
last modified time | relevance | path

Searched refs:assertEvalException (Results 1 – 15 of 15) sorted by relevance

/external/apache-velocity-engine/velocity-engine-core/src/test/java/org/apache/velocity/test/issues/
DVelocity614TestCase.java58 assertEvalException("#macro( evil $arg )$arg#end #evil(bar)"); in testEarlyDefinedMacroWithBadArg()
73 assertEvalException("#foreach(Stuff in That)foo#end"); in testDirectivesWithBadArg()
74 assertEvalException("#include(Stuff)"); in testDirectivesWithBadArg()
75 assertEvalException("#parse(Stuff)"); in testDirectivesWithBadArg()
76 assertEvalException("#define(Stuff)foo#end"); in testDirectivesWithBadArg()
77 assertEvalException("#macro( name Stuff)foo#end"); in testDirectivesWithBadArg()
78 assertEvalException("#foreach($i in [1..3])#break(Stuff)#end"); in testDirectivesWithBadArg()
79 assertEvalException("#literal(Stuff)foo#end"); in testDirectivesWithBadArg()
80 assertEvalException("#evaluate(Stuff)", ParseErrorException.class); in testDirectivesWithBadArg()
87 assertEvalException(evil, TemplateInitException.class); in testLateDefinedMacroWithBadArg()
DVelocity728TestCase.java38 assertEvalException("#parse()", VelocityException.class); in testParseWithNoArgument()
DVelocity727TestCase.java38 assertEvalException("#define() foo bar #end", VelocityException.class); in testDefineWithNoArgument()
DVelocity742TestCase.java55 assertEvalException(s, ResourceNotFoundException.class); in testDisableAndRestoreDirective()
/external/apache-velocity-engine/velocity-engine-core/src/test/java/org/apache/velocity/test/
DBreakDirectiveTestCase.java47 assertEvalException("#break($null)"); in testBadArgs()
48 assertEvalException("#break($foo)"); in testBadArgs()
49 assertEvalException("#break(true)"); in testBadArgs()
50 assertEvalException("#break(1.2)"); in testBadArgs()
51 assertEvalException("#break([0..1])"); in testBadArgs()
52 assertEvalException("#break( $too $many )"); in testBadArgs()
DMacroDefaultArgTestCase.java67 assertEvalException("#macro(foo $a = 1 $b)#end"); in testErrors()
68 assertEvalException("#macro(foo $c $a = 3 $b)#end"); in testErrors()
69 assertEvalException("#macro(foo $a $b = 1)#end#foo()"); // Too few arguments in testErrors()
70 assertEvalException("#macro(foo $a $b $c = 4)#end#foo(1)"); // Too few arguments in testErrors()
71 assertEvalException("#macro(foo $a = 3)#end#foo(2 3)"); // Too many arguments in testErrors()
DStrictEscapeTestCase.java49 assertEvalException("\\\\$bogus"); in testReferenceEscape()
50 assertEvalException("\\\\\\\\$bogus"); in testReferenceEscape()
78 assertEvalException("\\\\#bogus()"); in testMacroEscape()
103 assertEvalException("\\\\#end"); in testMacroEscape()
104 assertEvalException("\\\\#if()"); in testMacroEscape()
DStrictAlternateValuesTestCase.java59 assertEvalException("${foo.bar.baz()[5]|'hop'}", VelocityException.class); in testDefault()
61 assertEvalException("$foo", VelocityException.class); in testDefault()
66assertEvalException("<${date.format('medium', $date.date)|'no date tool'}>", VelocityException.cla… in testComplexEval()
71 assertEvalException("$!{null|$null}", VelocityException.class); in testComplexEval()
DMacroCommentsTestCase.java52 assertEvalException("#foo1(## test)", ParseErrorException.class); in testErrors()
53 assertEvalException("#foo1($test ## test)", ParseErrorException.class); in testErrors()
54 assertEvalException("#break(## test)", ParseErrorException.class); in testErrors()
DStrictMathTestCase.java47 assertEvalException(leftnull, MathException.class); in assertNullMathEx()
49 assertEvalException(rightnull, MathException.class); in assertNullMathEx()
55 assertEvalException(infinity, MathException.class); in assertImaginaryMathEx()
DBlockMacroTestCase.java86 assertEvalException("#@foo#end"); in testStrict()
87 assertEvalException("#@foo()#end"); in testStrict()
95 assertEvalException("#macro(foo) output #end#@foo"); in testVelocity690()
DStrictReferenceTestCase.java212 assertEvalException(template, MethodInvocationException.class); in assertMethodEx()
220 assertEvalException(template, VelocityException.class); in assertVelocityEx()
228 assertEvalException(template, ParseErrorException.class); in assertParseEx()
DBaseTestCase.java222 protected Exception assertEvalException(String evil) in assertEvalException() method in BaseTestCase
224 return assertEvalException(evil, null); in assertEvalException()
230 protected Exception assertEvalException(String evil, Class<?> exceptionType) in assertEvalException() method in BaseTestCase
279 Exception e = assertEvalException(evil); in assertEvalExceptionAt()
DStrictCompareTestCase.java74 assertEvalException(template, VelocityException.class); in assertVelocityEx()
DEventHandlingTestCase.java162 assertEvalException("$this.throwException()", MethodInvocationException.class); in doTestMethodExceptionEventHandler2()