METHOD_0 ( ) { org . eclipse . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 IDENT_4 ; org . eclipse . core . resources . IDENT_5 project = org . eclipse . IDENT_0 . tests . IDENT_1 . IDENT_2 . IDENT_6 . IDENT_7 ; IDENT_4 = new org . eclipse . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_1 ( project ) ; java . util . ArrayList < org . eclipse . IDENT_0 . IDENT_8 . IDENT_9 . IDENT_10 > components = IDENT_4 . METHOD_2 ( ) . METHOD_3 ( ) ; org . eclipse . IDENT_0 . IDENT_8 . IDENT_11 . IDENT_12 table = null ; org . eclipse . IDENT_0 . IDENT_8 . IDENT_11 . IDENT_13 template = null ; for ( org . eclipse . IDENT_0 . IDENT_8 . IDENT_9 . IDENT_10 component : components ) { if ( component instanceof org . eclipse . IDENT_0 . IDENT_8 . IDENT_11 . IDENT_13 ) { template = ( ( org . eclipse . IDENT_0 . IDENT_8 . IDENT_11 . IDENT_13 ) ( component ) ) ; } else if ( component instanceof org . eclipse . IDENT_0 . IDENT_8 . IDENT_11 . IDENT_12 ) { table = ( ( org . eclipse . IDENT_0 . IDENT_8 . IDENT_11 . IDENT_12 ) ( component ) ) ; } } "<AssertPlaceHolder>" ; template . METHOD_4 ( ) . get ( 0 ) . setValue ( STRING_0 ) ; try { java . lang . Thread . sleep ( 100 ) ; } catch ( java . lang . IDENT_14 e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( ) ; } boolean IDENT_15 = false ; for ( int id : table . METHOD_5 ( ) ) { if ( STRING_1 . equals ( table . METHOD_6 ( id ) . get ( 0 ) . getValue ( ) ) ) { IDENT_15 = true ; break ; } } if ( ! IDENT_15 ) { org . junit . Assert . fail ( STRING_2 ) ; } template . METHOD_4 ( ) . get ( 0 ) . setValue ( STRING_3 ) ; try { java . lang . Thread . sleep ( 100 ) ; } catch ( java . lang . IDENT_14 e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( ) ; } boolean IDENT_16 = false ; boolean IDENT_17 = false ; for ( int id : table . METHOD_5 ( ) ) { java . lang . String value = table . METHOD_6 ( id ) . get ( 0 ) . getValue ( ) ; if ( STRING_4 . equals ( value ) ) { IDENT_16 = true ; } else if ( STRING_5 . equals ( value ) ) { IDENT_17 = true ; } } if ( ( ! IDENT_16 ) || ( ! IDENT_17 ) ) { org . junit . Assert . fail ( STRING_6 ) ; } template . METHOD_4 ( ) . get ( 0 ) . setValue ( STRING_0 ) ; try { java . lang . Thread . sleep ( 100 ) ; } catch ( java . lang . IDENT_14 e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( ) ; } IDENT_15 = false ; for ( int id : table . METHOD_5 ( ) ) { if ( STRING_1 . equals ( table . METHOD_6 ( id ) . get ( 0 ) . getValue ( ) ) ) { IDENT_15 = true ; break ; } } if ( ! IDENT_15 ) { org . junit . Assert . fail ( STRING_7 ) ; } } METHOD_7 ( ) { if ( ( IDENT_18 . size ( ) ) <= 1 ) { return 0 ; } else { return ( this . IDENT_18 . size ( ) ) - 1 ; } }
org . junit . Assert . assertEquals ( 0 , table . METHOD_7 ( ) )