Commit 607866f3 authored by Jesse Wilson's avatar Jesse Wilson Committed by Android Git Automerger
Browse files

am bea6b3d2: Merge "Don\'t require exception priority to match any particular...

am bea6b3d2: Merge "Don\'t require exception priority to match any particular implementation." into ics-mr0

* commit 'bea6b3d2':
  Don't require exception priority to match any particular implementation.
parents 98ff2108 bea6b3d2
......@@ -972,13 +972,6 @@ public class ArraysTest extends junit.framework.TestCase {
fail("ArrayIndexOutOfBoundsException expected (2)");
} catch (ArrayIndexOutOfBoundsException ignore) {
}
//exception order testing
try {
Arrays.sort(new byte[1], startIndex + 1, startIndex);
fail("IllegalArgumentException expected");
} catch (IllegalArgumentException ignore) {
}
}
/**
......@@ -1038,13 +1031,6 @@ public class ArraysTest extends junit.framework.TestCase {
fail("ArrayIndexOutOfBoundsException expected (2)");
} catch (ArrayIndexOutOfBoundsException ignore) {
}
//exception order testing
try {
Arrays.sort(new char[1], startIndex + 1, startIndex);
fail("IllegalArgumentException expected");
} catch (IllegalArgumentException ignore) {
}
}
/**
......@@ -1127,13 +1113,6 @@ public class ArraysTest extends junit.framework.TestCase {
fail("ArrayIndexOutOfBoundsException expected (2)");
} catch (ArrayIndexOutOfBoundsException ignore) {
}
//exception order testing
try {
Arrays.sort(new double[1], startIndex + 1, startIndex);
fail("IllegalArgumentException expected");
} catch (IllegalArgumentException ignore) {
}
}
/**
......@@ -1216,13 +1195,6 @@ public class ArraysTest extends junit.framework.TestCase {
fail("ArrayIndexOutOfBoundsException expected (2)");
} catch (ArrayIndexOutOfBoundsException ignore) {
}
//exception order testing
try {
Arrays.sort(new float[1], startIndex + 1, startIndex);
fail("IllegalArgumentException expected");
} catch (IllegalArgumentException ignore) {
}
}
/**
......@@ -1281,13 +1253,6 @@ public class ArraysTest extends junit.framework.TestCase {
fail("ArrayIndexOutOfBoundsException expected (2)");
} catch (ArrayIndexOutOfBoundsException ignore) {
}
//exception order testing
try {
Arrays.sort(new int[1], startIndex + 1, startIndex);
fail("IllegalArgumentException expected");
} catch (IllegalArgumentException ignore) {
}
}
/**
......@@ -1347,13 +1312,6 @@ public class ArraysTest extends junit.framework.TestCase {
fail("ArrayIndexOutOfBoundsException expected (2)");
} catch (ArrayIndexOutOfBoundsException ignore) {
}
//exception order testing
try {
Arrays.sort(new long[1], startIndex + 1, startIndex);
fail("IllegalArgumentException expected");
} catch (IllegalArgumentException ignore) {
}
}
/**
......@@ -1425,13 +1383,6 @@ public class ArraysTest extends junit.framework.TestCase {
} catch (ArrayIndexOutOfBoundsException ignore) {
}
//exception order testing
try {
Arrays.sort(new Object[1], startIndex + 1, startIndex);
fail("IllegalArgumentException expected");
} catch (IllegalArgumentException ignore) {
}
Arrays.fill(reversedArray, 0, reversedArray.length/2, "String");
Arrays.fill(reversedArray, reversedArray.length/2, reversedArray.length, new Integer(1));
......@@ -1585,13 +1536,6 @@ public class ArraysTest extends junit.framework.TestCase {
fail("ArrayIndexOutOfBoundsException expected (2)");
} catch (ArrayIndexOutOfBoundsException ignore) {
}
//exception order testing
try {
Arrays.sort(new short[1], startIndex + 1, startIndex);
fail("IllegalArgumentException expected");
} catch (IllegalArgumentException ignore) {
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment