From: Steve L. (JIRA) <ji...@sm...> - 2011-07-22 17:22:12
|
Bug: case insensitive string comparision broken in Assert component ------------------------------------------------------------------- Key: SFOS-1635 URL: http://jira.smartfrog.org/jira/browse/SFOS-1635 Project: SmartFrog Issue Type: Bug Components: .sfCore Affects Versions: 3.18.010 Reporter: Steve Loughran Assignee: Steve Loughran Fix For: 3.18.x An equality test is failing even though the assertion implies the values are equal: Caused by: SmartFrogLifecycleException:: [sfStart] Failed to start a new child 'test.hdfs.uri'., cause: SmartFrogAssertionException:: Expected "org.apache.hadoop.hdfs.DistributedFileSystem" (class:java.lang.String) actual "org.apache.hadoop.hdfs.DistributedFileSystem" (class:java.lang.String), SmartFrog 3.18.011 (2011-07-22 12:31:22 BST), SmartFrog 3.18.011 (2011-07-22 12:31:22 BST), primSFCompleteName: HOST localhost:rootProcess:testAddDefaultConfiguration:tests, primContext: included, reference: HOST localhost:rootProcess:testAddDefaultConfiguration:tests, primContext: included at org.smartfrog.sfcore.common.SmartFrogLifecycleException.forward(SmartFrogLifecycleException.java:233) at org.smartfrog.sfcore.common.SmartFrogLifecycleException.sfStart(SmartFrogLifecycleException.java:127) at org.smartfrog.sfcore.compound.CompoundImpl.sfCreateNewChild(CompoundImpl.java:400) Caused by: SmartFrogAssertionException:: Expected "org.apache.hadoop.hdfs.DistributedFileSystem" (class:java.lang.String) actual "org.apache.hadoop.hdfs.DistributedFileSystem" (class:java.lang.String), SmartFrog 3.18.011 (2011-07-22 12:31:22 BST) at org.smartfrog.services.assertions.AssertComponent.checkAssertions(AssertComponent.java:267) at org.smartfrog.services.assertions.AssertComponent.sfStart(AssertComponent.java:453) at org.smartfrog.sfcore.compound.CompoundImpl.sfCreateNewChild(CompoundImpl.java:394) The component has set case insensitivity to true: when set to false the test works test.hdfs.uri extends AssertWorkflow { equalityIgnoresCase false; equalsString1 "org.apache.hadoop.hdfs.DistributedFileSystem"; equalsString2 LAZY action:config:fs.hdfs.impl; } -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira |