File tree 1 file changed +6
-2
lines changed
spring-expression/src/test/java/org/springframework/expression/spel
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2019 the original author or authors.
2
+ * Copyright 2002-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -420,7 +420,11 @@ public void testIndexerError() {
420
420
421
421
@ Test
422
422
public void testStaticRef02 () {
423
- evaluate ("T(java.awt.Color).green.getRGB()!=0" , "true" , Boolean .class );
423
+ evaluate ("T(java.awt.Color).green.getRGB() != 0" , true , Boolean .class );
424
+ evaluate ("(T(java.lang.Math).random() * 100.0 ) > 0" , true , Boolean .class );
425
+ evaluate ("(T(Math).random() * 100.0) > 0" , true , Boolean .class );
426
+ evaluate ("T(Character).isUpperCase('Test'.charAt(0)) ? 'uppercase' : 'lowercase'" , "uppercase" , String .class );
427
+ evaluate ("T(Character).isUpperCase('Test'.charAt(1)) ? 'uppercase' : 'lowercase'" , "lowercase" , String .class );
424
428
}
425
429
426
430
// variables and functions
You can’t perform that action at this time.
0 commit comments