METHOD_0 ( ) { com . orientechnologies . orient . core . db . IDENT_0 config = com . orientechnologies . orient . core . db . IDENT_0 . builder ( ) . METHOD_1 ( IDENT_1 . IDENT_2 , IDENT_3 . IDENT_4 ) . METHOD_2 ( IDENT_5 . IDENT_6 . IDENT_7 , 1 ) . build ( ) ; IDENT_8 = new com . orientechnologies . orient . core . db . METHOD_3 ( ( STRING_0 + ( com . orientechnologies . orient . core . storage . IDENT_9 . IDENT_10 . METHOD_4 ( ) . getAbsolutePath ( ) ) ) , config ) ; IDENT_8 . create ( com . orientechnologies . orient . core . storage . IDENT_9 . class . METHOD_5 ( ) , IDENT_11 . IDENT_12 , config ) ; com . orientechnologies . orient . core . db . IDENT_13 session = IDENT_8 . METHOD_6 ( com . orientechnologies . orient . core . storage . IDENT_9 . class . METHOD_5 ( ) , STRING_1 , STRING_1 , config ) ; com . orientechnologies . orient . core . metadata . IDENT_14 metadata = session . METHOD_7 ( ) ; com . orientechnologies . orient . core . metadata . schema . IDENT_15 schema = metadata . METHOD_8 ( ) ; schema . METHOD_9 ( STRING_2 ) ; for ( int i = 0 ; i < 10 ; i ++ ) { com . orientechnologies . orient . core . record . impl . IDENT_16 document = new com . orientechnologies . orient . core . record . impl . METHOD_10 ( STRING_2 ) ; document . field ( "value" , "value" ) ; document . save ( ) ; } com . orientechnologies . orient . core . storage . IDENT_17 . IDENT_18 storage = ( ( com . orientechnologies . orient . core . storage . IDENT_17 . IDENT_18 ) ( ( ( com . orientechnologies . orient . core . db . IDENT_19 ) ( session ) ) . METHOD_11 ( ) ) ) ; com . orientechnologies . orient . core . storage . cache . IDENT_20 IDENT_21 = storage . METHOD_12 ( ) ; com . orientechnologies . orient . core . db . IDENT_22 ctx = ( ( com . orientechnologies . orient . core . db . IDENT_19 ) ( session ) ) . METHOD_13 ( ) ; session . close ( ) ; final java . nio . file . Path IDENT_23 = storage . METHOD_14 ( ) ; long IDENT_24 = IDENT_21 . METHOD_15 ( STRING_3 ) ; java . lang . String IDENT_25 = IDENT_21 . METHOD_16 ( IDENT_24 ) ; storage . close ( true , false ) ; ctx . close ( ) ; int position = 3 * INT_0 ; java . io . IDENT_26 file = new java . io . METHOD_17 ( IDENT_23 . resolve ( IDENT_25 ) . METHOD_4 ( ) , STRING_4 ) ; file . METHOD_18 ( position ) ; int IDENT_27 = file . read ( ) ; file . METHOD_18 ( position ) ; file . write ( ( IDENT_27 + 1 ) ) ; file . close ( ) ; session = IDENT_8 . METHOD_6 ( com . orientechnologies . orient . core . storage . IDENT_9 . class . METHOD_5 ( ) , STRING_1 , STRING_1 ) ; session . query ( STRING_5 ) . close ( ) ; java . lang . Thread . sleep ( 100 ) ; com . orientechnologies . orient . core . record . impl . METHOD_10 document = new com . orientechnologies . orient . core . record . impl . METHOD_10 ( STRING_2 ) ; document . field ( "value" , "value" ) ; try { document . save ( ) ; org . junit . Assert . fail ( ) ; } catch ( com . orientechnologies . orient . core . exception . IDENT_28 e ) { "<AssertPlaceHolder>" ; } session . close ( ) ; } fail ( ) { METHOD_19 ( ) ; final com . tinkerpop . IDENT_29 . IDENT_30 . orient . IDENT_31 IDENT_32 = new com . tinkerpop . IDENT_29 . IDENT_30 . orient . METHOD_20 ( com . orientechnologies . orient . graph . IDENT_29 . IDENT_33 . URL , STRING_1 , STRING_1 ) . METHOD_21 ( 1 , 10 ) ; com . tinkerpop . IDENT_29 . IDENT_30 . orient . IDENT_34 graph = IDENT_32 . METHOD_22 ( ) ; try { graph . METHOD_23 ( STRING_6 , "name" , STRING_7 ) ; try { graph . METHOD_23 ( STRING_6 ) ; graph . commit ( ) ; throw new java . lang . RuntimeException ( STRING_8 ) ; } catch ( com . orientechnologies . orient . core . exception . IDENT_35 e ) { System . out . println ( ( STRING_9 + e ) ) ; } } finally { graph . METHOD_24 ( ) ; } }
org . junit . Assert . assertTrue ( true )