Author: konstantin.mishin
Date: 2011-01-13 11:44:18 -0500 (Thu, 13 Jan 2011)
New Revision: 20998
Modified:
trunk/cdk/generator/src/test/java/org/richfaces/cdk/templatecompiler/statements/DefineObjectTest.java
Log:
RF-10095
Modified:
trunk/cdk/generator/src/test/java/org/richfaces/cdk/templatecompiler/statements/DefineObjectTest.java
===================================================================
---
trunk/cdk/generator/src/test/java/org/richfaces/cdk/templatecompiler/statements/DefineObjectTest.java 2011-01-13
16:40:17 UTC (rev 20997)
+++
trunk/cdk/generator/src/test/java/org/richfaces/cdk/templatecompiler/statements/DefineObjectTest.java 2011-01-13
16:44:18 UTC (rev 20998)
@@ -43,7 +43,7 @@
controller.replay();
statement.setObject("foo","java.lang.String",HTTP_EXAMPLE_COM,
false);
String code = statement.getCode();
- verifyCode(code, HTTP_EXAMPLE_COM,"String","=");
+ verifyCode(code, HTTP_EXAMPLE_COM,"String","=",
"!(String)");
controller.verify();
}
@Test
@@ -55,9 +55,9 @@
expect(parsedExpression.getRequiredMethods()).andStubReturn(Collections.<HelperMethod>emptySet());
parsedExpression.setParent(statement);expectLastCall();
controller.replay();
- statement.setObject("foo",null,HTTP_EXAMPLE_COM, false);
+ statement.setObject("foo",null,HTTP_EXAMPLE_COM, true);
String code = statement.getCode();
- verifyCode(code, "Integer","foo","=");
+ verifyCode(code, "Integer","foo","=",
"(Integer)");
controller.verify();
}