public void test_fill$JIIJ(){
  long d[]=new long[1000];
  Arrays.fill(d,400,d.length,Long.MAX_VALUE);
  for (int i=0; i < 400; i++)   assertTrue("Filled elements not in range",!(d[i] == Long.MAX_VALUE));
  for (int i=400; i < d.length; i++)   assertTrue("Failed to fill long array correctly",d[i] == Long.MAX_VALUE);
  try {
    Arrays.fill(d,10,0,Long.MIN_VALUE);
    fail("IllegalArgumentException expected");
  }
 catch (  IllegalArgumentException e) {
  }
  try {
    Arrays.fill(d,-10,0,Long.MAX_VALUE);
    fail("ArrayIndexOutOfBoundsException expected");
  }
 catch (  ArrayIndexOutOfBoundsException e) {
  }
  try {
    Arrays.fill(d,10,d.length + 1,Long.MAX_VALUE);
    fail("ArrayIndexOutOfBoundsException expected");
  }
 catch (  ArrayIndexOutOfBoundsException e) {
  }
}

public void test_fill$JIIJ ( ) { long d [ ] = new long [ 1000 ] ; Arrays . fill ( d , 400 , d . length , Long . MAX_VALUE ) ; for ( int i = 0 ; i < 400 ; i ++ ) assertTrue ( "Filled elements not in range" , ! ( d [ i ] == Long . MAX_VALUE ) ) ; for ( int i = 400 ; i < d . length ; i ++ ) assertTrue ( "Failed to fill long array correctly" , d [ i ] == Long . MAX_VALUE ) ; try { Arrays . fill ( d , 10 , 0 , Long . MIN_VALUE ) ; fail ( "IllegalArgumentException expected" ) ; } catch ( IllegalArgumentException e ) { } try { Arrays . fill ( d , - 10 , 0 , Long . MAX_VALUE ) ; fail ( "ArrayIndexOutOfBoundsException expected" ) ; } catch ( ArrayIndexOutOfBoundsException e ) { } try { Arrays . fill ( d , 10 , d . length + 1 , Long . MAX_VALUE ) ; fail ( "ArrayIndexOutOfBoundsException expected" ) ; } catch ( ArrayIndexOutOfBoundsException e ) { } }
java . util . arrays # fill ( long [ ] , int , int , long )
