3f7495294d8b27c00ff647773fcac75afe10c629 |
|
15-Aug-2016 |
Serguei Katkov <serguei.i.katkov@intel.com> |
Unify exception order in java.nio.Buffer subclasses The bulk methods <Type>Buffer.put(<Type>Buffer) produces two problems causing IllegalArgumentException and ReadOnlyBufferException exceptions. To unify the order of exception IllegalArgumentException will be thrown first. The tests are update to expect IllegalArgumentException in the condition above. Test: run cts -p android.core.tests.libcore.package.harmony_java_nio, run cts -c libcore.java.nio.BufferTest, run cts -c libcore.java.nio.CharBufferTest, run cts -c libcore.java.nio.NoArrayTest, run cts -c libcore.java.nio.OldAndroidNIOTest, run cts -c libcore.java.nio.OldDirectIntBufferTest run cts -c libcore.java.nio.OldDirectShortBufferTest Change-Id: If3314c29b193425d6255a32a1841d2b7bb9a767d Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
|
e5fea3d504609d22337a5311d3ce0e72314bceee |
|
15-Nov-2013 |
Narayan Kamath <narayan@google.com> |
Use a consistent package path for harmony tests. Harmony was never consistent about where they put their tests. There's no reason we have to be the same. Also, there's no need to have separate subtrees for nio, nio_char etc. etc. This change makes all existing apache harmony tests subpackages of "org.apache.harmony.tests" and put them under libcore/harmony-tests. We somehow managed to end up with two vastly different copies of CharsetDecoderTest & CharsetEncoderTest. I've renamed the copies CharsetDecoder2Test & CharsetEncoder2Test to avoid having to go in and resolve the complicated diffs or speculate about the reasons for their divergence. Change-Id: Ic34e69c2faab8893edd54e05eccd7091f4a09abd
|