METHOD_0 ( ) { int n = 10 ; int base = 100 ; for ( int i = 0 ; i < n ; i ++ ) { org . nuxeo . ecm . core . api . IDENT_0 doc = session . METHOD_1 ( "/" , ( STRING_0 + i ) , STRING_1 ) ; doc . METHOD_2 ( STRING_2 , java . lang . Long . valueOf ( base ) ) ; doc = session . METHOD_3 ( doc ) ; } session . save ( ) ; for ( int i = 0 ; i < n ; i ++ ) { org . nuxeo . ecm . core . api . IDENT_0 doc = session . METHOD_4 ( new org . nuxeo . ecm . core . api . METHOD_5 ( ( STRING_3 + i ) ) ) ; java . io . IDENT_1 value ; if ( i < ( n / 2 ) ) { value = java . lang . Long . valueOf ( i ) ; } else { value = org . nuxeo . ecm . core . api . model . IDENT_2 . valueOf ( java . lang . Long . valueOf ( base ) , i ) ; } doc . METHOD_2 ( STRING_2 , value ) ; if ( ( i OP_0 2 ) == 0 ) { doc . METHOD_2 ( STRING_4 , ( "foo" + i ) ) ; } doc = session . METHOD_6 ( doc ) ; } session . save ( ) ; METHOD_7 ( ) ; for ( int i = 0 ; i < n ; i ++ ) { org . nuxeo . ecm . core . api . IDENT_0 doc = session . METHOD_4 ( new org . nuxeo . ecm . core . api . METHOD_5 ( ( STRING_3 + i ) ) ) ; java . io . IDENT_1 value = doc . METHOD_8 ( STRING_2 ) ; java . io . IDENT_1 expected ; if ( i < ( n / 2 ) ) { expected = java . lang . Long . valueOf ( i ) ; } else { expected = java . lang . Long . valueOf ( ( base + i ) ) ; } "<AssertPlaceHolder>" ; } } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( doc . getName ( ) , expected , value )