tests that read should be able to read the data which updated with update api concode_field_sep int CONNECTION_TIMEOUT concode_elem_sep int ZooKeeperDefaultPort concode_elem_sep File zkTmpDir concode_elem_sep ZooKeeperServer zks concode_elem_sep ZooKeeper zkc concode_elem_sep Log LOG concode_elem_sep NIOServerCnxnFactory serverFactory concode_elem_sep String CURRENT_NODE_PATH concode_elem_sep String HOSTPORT concode_field_sep ZooKeeper connectZooKeeper concode_elem_sep void testReadShouldReturnNullAfterClear concode_elem_sep void shutDownServer concode_elem_sep void setupZooKeeper concode_elem_sep void testUpdateShouldFailWithIOEIfVersionNumberChangedAfterRead concode_elem_sep void setup concode_elem_sep void teardown
void function ( ) { String loc0 = "srini_string" ; CurrentInprogress loc1 = new CurrentInprogress ( zkc , CURRENT_NODE_PATH ) ; loc1 . init ( ) ; loc1 . update ( loc0 ) ; String loc2 = loc1 . read ( ) ; assertEquals ( "srini_string" , "srini_string" , loc2 ) ; }