@ -1040,7 +1041,8 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -1040,7 +1041,8 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@ -1055,7 +1057,8 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -1055,7 +1057,8 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@ -3683,7 +3686,8 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -3683,7 +3686,8 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@ -3714,7 +3718,8 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -3714,7 +3718,8 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@ -3726,7 +3731,8 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -3726,7 +3731,8 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
try{
expression.getValue(newInteger(42));
fail();
}catch(SpelEvaluationExceptionsee){
}
catch(SpelEvaluationExceptionsee){
// java.lang.Integer cannot be cast to java.lang.String
@ -4210,14 +4216,6 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -4210,14 +4216,6 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@ -4497,23 +4495,90 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -4497,23 +4495,90 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@ -4532,9 +4597,11 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -4532,9 +4597,11 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@ -4548,6 +4615,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -4548,6 +4615,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
// This test helper has a bound on the type variable
@ -4616,7 +4684,6 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -4616,7 +4684,6 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@ -4670,27 +4737,9 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -4670,27 +4737,9 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@ -4712,68 +4761,22 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -4712,68 +4761,22 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
fail("Calling getValue on the expression should have failed but returned "+o);
}catch(Exceptionex){
// success!
}
publicStringgetObject(){return"hello";}
}
// test classes
publicstaticclassPayload{
Two[]DR=newTwo[]{newTwo()};
publicTwoholder=newTwo();
publicTwo[]getDR(){
@ -4782,12 +4785,15 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -4782,12 +4785,15 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
}
publicstaticclassPayload2{
Stringvar1="abc";
Stringvar2="def";
publicObjectgetField(Stringname){
if(name.equals("var1")){
returnvar1;
}elseif(name.equals("var2")){
}
elseif(name.equals("var2")){
returnvar2;
}
returnnull;
@ -4795,11 +4801,14 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -4795,11 +4801,14 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
}
publicstaticclassPayload2Holder{
publicPayload2payload2=newPayload2();
}
publicstaticclassTwo{
Threethree=newThree();
publicThreegetThree(){
returnthree;
}
@ -4809,19 +4818,23 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -4809,19 +4818,23 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
}
publicstaticclassThree{
doublefour=0.04d;
publicdoublegetFour(){
returnfour;
}
}
publicstaticclassTestClass1{
publicintindex1=1;
publicintindex2=3;
publicStringword="abcd";
}
publicstaticclassTestClass4{
publicbooleana,b;
publicbooleangettrue(){returntrue;}
publicbooleangetfalse(){returnfalse;}
@ -4830,6 +4843,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -4830,6 +4843,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
}
publicstaticclassTestClass10{
publicStrings=null;
publicvoidreset(){
@ -4870,6 +4884,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -4870,6 +4884,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
}
publicstaticclassTestClass5{
publicinti=0;
publicStrings=null;
publicstaticint_i=0;
@ -5083,6 +5098,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -5083,6 +5098,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
}
publicstaticclassTestClass6{
publicStringorange="value1";
publicstaticStringapple="value2";
@ -5098,7 +5114,9 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -5098,7 +5114,9 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
}
publicstaticclassTestClass7{
publicstaticStringproperty;
static{
Strings="UK 123";
StringTokenizerst=newStringTokenizer(s);
@ -5114,6 +5132,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -5114,6 +5132,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
}
publicstaticclassTestClass8{
publicinti;
publicStrings;
publicdoubled;
@ -5202,6 +5221,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -5202,6 +5221,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@SuppressWarnings("unused")
privatestaticclassTestClass9{
publicTestClass9(inti){}
}
@ -5214,6 +5234,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -5214,6 +5234,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@ -5224,6 +5245,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -5224,6 +5245,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
}
publicstaticclassHttpServletRequestWrapper{
publicStringgetServletPath(){
return"wibble";
}
@ -5244,6 +5266,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -5244,6 +5266,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
}
publicstaticclassSomeCompareMethod2{
publicstaticintnegate(inti1){
return-i1;
}
@ -5312,10 +5335,10 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
@@ -5312,10 +5335,10 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {