METHOD_0 ( ) { int [ ] [ ] test = new int [ ] [ ] { new int [ ] { 1 , 0 , 1 , 0 } , new int [ ] { 1 , 0 , 1 , 0 } , new int [ ] { 1 , 0 , 1 , 0 } , new int [ ] { 1 , 0 , 1 , 0 } } ; int [ ] [ ] expected = new int [ ] [ ] { new int [ ] { 1 , 1 , 1 , 1 } , new int [ ] { 0 , 0 , 0 , 0 } , new int [ ] { 1 , 1 , 1 , 1 } , new int [ ] { 0 , 0 , 0 , 0 } } ; int [ ] [ ] result = org . IDENT_0 . IDENT_1 . util . IDENT_2 . METHOD_1 ( test ) ; for ( int i = 0 ; i < ( result . length ) ; i ++ ) { for ( int j = 0 ; j < ( result [ i ] . length ) ; j ++ ) { "<AssertPlaceHolder>" ; } } } METHOD_1 ( int [ ] [ ] ) { int r = array . length ; if ( r == 0 ) { return new int [ 0 ] [ 0 ] ; } int c = array [ 0 ] . length ; int [ ] [ ] result = new int [ c ] [ r ] ; for ( int i = 0 ; i < r ; i ++ ) { for ( int j = 0 ; j < c ; j ++ ) { result [ j ] [ ( ( r - 1 ) - i ) ] = array [ i ] [ j ] ; } } return result ; }
org . junit . Assert . assertEquals ( result [ i ] [ j ] , expected [ i ] [ j ] )