/external/apache-velocity-engine/velocity-engine-core/src/test/java/org/apache/velocity/test/issues/ |
D | Velocity614TestCase.java | 58 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()
|
D | Velocity728TestCase.java | 38 assertEvalException("#parse()", VelocityException.class); in testParseWithNoArgument()
|
D | Velocity727TestCase.java | 38 assertEvalException("#define() foo bar #end", VelocityException.class); in testDefineWithNoArgument()
|
D | Velocity742TestCase.java | 55 assertEvalException(s, ResourceNotFoundException.class); in testDisableAndRestoreDirective()
|
/external/apache-velocity-engine/velocity-engine-core/src/test/java/org/apache/velocity/test/ |
D | BreakDirectiveTestCase.java | 47 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()
|
D | MacroDefaultArgTestCase.java | 67 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()
|
D | StrictEscapeTestCase.java | 49 assertEvalException("\\\\$bogus"); in testReferenceEscape() 50 assertEvalException("\\\\\\\\$bogus"); in testReferenceEscape() 78 assertEvalException("\\\\#bogus()"); in testMacroEscape() 103 assertEvalException("\\\\#end"); in testMacroEscape() 104 assertEvalException("\\\\#if()"); in testMacroEscape()
|
D | StrictAlternateValuesTestCase.java | 59 assertEvalException("${foo.bar.baz()[5]|'hop'}", VelocityException.class); in testDefault() 61 assertEvalException("$foo", VelocityException.class); in testDefault() 66 …assertEvalException("<${date.format('medium', $date.date)|'no date tool'}>", VelocityException.cla… in testComplexEval() 71 assertEvalException("$!{null|$null}", VelocityException.class); in testComplexEval()
|
D | MacroCommentsTestCase.java | 52 assertEvalException("#foo1(## test)", ParseErrorException.class); in testErrors() 53 assertEvalException("#foo1($test ## test)", ParseErrorException.class); in testErrors() 54 assertEvalException("#break(## test)", ParseErrorException.class); in testErrors()
|
D | StrictMathTestCase.java | 47 assertEvalException(leftnull, MathException.class); in assertNullMathEx() 49 assertEvalException(rightnull, MathException.class); in assertNullMathEx() 55 assertEvalException(infinity, MathException.class); in assertImaginaryMathEx()
|
D | BlockMacroTestCase.java | 86 assertEvalException("#@foo#end"); in testStrict() 87 assertEvalException("#@foo()#end"); in testStrict() 95 assertEvalException("#macro(foo) output #end#@foo"); in testVelocity690()
|
D | StrictReferenceTestCase.java | 212 assertEvalException(template, MethodInvocationException.class); in assertMethodEx() 220 assertEvalException(template, VelocityException.class); in assertVelocityEx() 228 assertEvalException(template, ParseErrorException.class); in assertParseEx()
|
D | BaseTestCase.java | 222 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()
|
D | StrictCompareTestCase.java | 74 assertEvalException(template, VelocityException.class); in assertVelocityEx()
|
D | EventHandlingTestCase.java | 162 assertEvalException("$this.throwException()", MethodInvocationException.class); in doTestMethodExceptionEventHandler2()
|