• Home
  • History
  • Annotate
  • only in /libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
History log of /libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d05b06cef54f3925767b76e0b1a12295e9b02775 12-Dec-2015 Narayan Kamath <narayan@google.com> Fix ObjectInputStreamTest#testReadObjectOverride.

The default implementation now returns null. Would throw
IOException on Android M and below.

bug: 25926057
Change-Id: If8698d0a15a5c5132b78fc7472fd5bfb184e0361
bjectInputStreamTest.java
e10c61bb13373b95ba857cc3af60f94b9941ab9e 19-Feb-2014 Narayan Kamath <narayan@google.com> Fix remaining file related CTS Test failures.

Most failures were because tests were trying to
open files relative to the current working directory,
instead of in a temp directory.

FileTest was failing because it didn't construct
paths correctly. It would add an additional separator
char even if the path already ended with one.

Change-Id: Ie90aed84f81275924558e9dba43d71748dbb4076
bjectInputStreamTest.java
ba45f538a14c08015021e899f5883f07ed2ff237 12-Nov-2013 Narayan Kamath <narayan@google.com> Dedup tests under api with apache-harmony.

This batch of changes deals with harmony tests that
are already present under luni/src/test/java/tests/api.

I chose the tests/api folder for deduplication because
it contains a large number of tests, and all of them are
harmony derived.

Once this change is submitted, I'll submit follow up
changes to
(1) Move all tests from api/ to libcore/harmony-tests/
(2) Copy untracked harmony tests from external/ to
libcore/harmony-tests/
(3) Move tests libcore/luni/s/test/java/org/apache into
libcore/harmony-tests

libcore/harmony-tests will then become the canonical
source for all harmony tests & harmony derived tests.

At this point, we can stop adding test cases to
libcore/harmony-tests and instead add them to
libcore/luni/src/test/java/libcore/

The following tests were exact copies and needed no
additional changes.

Process2Test.java,
ProcessTest.java
PhantomReferenceTest.java
ReferenceQueueTest.java
ReferenceTest.java
SoftReferenceTest.java
WeakReferenceTest.java
AccessibleObjectTest.java
ArrayTest.java
ConstructorTest.java
FieldTest.java
GenericSignatureFormatErrorTest.java
InvocationTargetExceptionTest.java
AbstractQueueTest.java
AbstractSequentialListTest.java
CalendarTest.java
ConcurrentModTest.java
concurrentModificationExceptionTest.java
EmptyStackExcepionTest.java
EnumMapTest.java
EnumSetTest.java
FormattableFlagsTest.java
HashSetTest.java
LinkedHashMapTest.java
LinkedHashSetTest.java
MissingResourceExceptionTest.java
NoSuchElementExceptionTest.java
ObservableTest.java
SampleBundleClass.java
SimpleTimezoneTest.java
TimerTaskTest.java
TimerTest.java

A follow up change will deal with harmony tests that aren't
in this directory yet.

bug: 11650799

Change-Id: I04b1168601152f81c12abb31d3b1156975b15187
bjectInputStreamTest.java
229e34b182b98e1dba15d3dc6341954986ae2b7a 03-Mar-2011 Brian Carlstrom <bdc@google.com> Removing use of @tests and @Test.* annotations

Change-Id: I89243efdeebe22543c45a2166b634f40c3e78cf8
bjectInputStreamTest.java
0fde4f6956ec680a1c9cd213ee9796421e172ccf 22-Oct-2010 Jesse Wilson <jessewilson@google.com> Merge commit 'd9768e71' into manualmerge

Conflicts:
luni/src/test/java/org/apache/harmony/luni/tests/java/io/ObjectInputStreamTest.java
luni/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java
luni/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/spi/SelectorProviderTest.java

This re-deletes org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest, which
we've already deleted in other branches.

Change-Id: I90ecf0151e1d0bc2ab26ab4a21abd2ec718ce6df
aec2ed4b266b75aaab59c23ca71e355a9336b074 21-Oct-2010 Jesse Wilson <jessewilson@google.com> Remove tests for SecurityManager.

Many of the changes are to org.apache.harmony.* tests that we've copied
from upstream. We'll remove these duplicated tests completely once we
have the upstream Harmony tests properly integrated into CTS.

Change-Id: Idd6cfbeba5345156b207b9433928ee37b662c395
http://b/3102252
bjectInputStreamTest.java
4c51e7fd55db43a652e49c44b21bce9dee636385 08-Sep-2010 Jesse Wilson <jessewilson@google.com> Remove several I/O tests duplicated exactly with Harmony.

Some tests in FilePermissionTest were failing; by removing
duplication we can fix the tests in only one place.

Change-Id: Ie6d93e7c3cc353b8c2b277ecf4fa67af5f1515e7
llTests.java
ufferedReaderTest.java
ilePermissionTest.java
ileTest.java
nputStreamReaderTest.java
bjectInputStreamTest.java
bjectStreamConstantsTest.java
utputStreamWriterTest.java
ushBackInputStreamTest.java
andomAccessFileTest.java
eaderTest.java
riterTest.java
f33eae7e84eb6d3b0f4e86b59605bb3de73009f3 13-May-2010 Elliott Hughes <enh@google.com> Remove all trailing whitespace from the dalvik team-maintained parts of libcore.

Gentlemen, you may now set your editors to "strip trailing whitespace"...

Change-Id: I85b2f6c80e5fbef1af6cab11789790b078c11b1b
ufferedReaderTest.java
ileTest.java
bjectInputStreamTest.java
bjectStreamConstantsTest.java
utputStreamWriterTest.java
ushBackInputStreamTest.java
andomAccessFileTest.java
eaderTest.java
riterTest.java
fd6bb3510c2f94d636f3572dcf5f7f4dcd1a2726 13-May-2010 Elliott Hughes <enh@google.com> Remove //$NON-NLS-\d$ cruft.

Mostly done by perl(1), with manual cleanup of the few misspelled instances.
This makes our trailing whitespace slightly worse, but I'll fix all that with
a follow-on change.

Change-Id: I0b4ca98819be6f9519c4ba980d759bd1ee1a0303
utputStreamWriterTest.java
7ee3a061452c5a7e5c8e661219a1f08a14171858 19-Feb-2010 Elliott Hughes <enh@google.com> Resync a load of tests with upstream, make our build faster.

I started off with a mission to remove uses of dalvik.annotation.* (stuff
like @TestTargetNew and other useless junk that just makes it harder to
stay in sync with upstream). I wrote a script to go through tests showing
me the diff between what we have and what upstream has, thinking that in
cases where upstream has also added tests, I may as well pull them in at
the same time...

...but I didn't realize how close we were to having dx fill its 1.5GiB heap.

After trying various alternatives, I decided to bite the bullet and break
core-tests up into one .jar per module. This adds parallelism back into this,
the slowest part of our build. (I can do even better, but I'll do that in a
separate patch, preferably after we've merged recent changes from master.)

Only a couple of dependencies were problematic: the worthless TestSuiteFactory
which already contained a comment suggesting we get rid of it, and the fact
that some tests -- most notably the concurrent ones -- also contained main
methods that started the JUnit tty-based TestRunner.

(In the long run, we want to be running the harmony tests directly from a
pristine "svn co" of upstream, using DalvikRunner. But this will be a big
help in the meantime, and starts the work of getting our current copy of
the tests into a state where we can start to extract any meaningful
changes/additions we've made.)
llTests.java
ufferedReaderTest.java
ilePermissionTest.java
ileTest.java
nputStreamReaderTest.java
bjectInputStreamTest.java
bjectStreamConstantsTest.java
utputStreamWriterTest.java
andomAccessFileTest.java
riterTest.java
d37c804ccd11e38ee9221194866a152a4de6c8e9 24-Oct-2009 Jesse Wilson <jessewilson@google.com> A new hygenic way for tests to clean up before or after execution.

This replaces PrefsTester and is more general purpose.
ileTest.java
4030ad60f305d1f23e9b681dca7a181ab4f09276 20-Oct-2009 Jesse Wilson <jessewilson@google.com> Removing caching of file canonical path caching, and fixing NIO tests.

I checked in some regressions in the NIO test cases with the NIO patch;
this addresses those problems.
llTests.java
ileCanonPathCacheTest.java
a389b4a499f40379b0b204d7ba1c2057663d95c0 11-Aug-2009 Jesse Wilson <jessewilson@google.com> Update Luni to Harmony r802921.

Notable changes:
- replaced StringBuffer with StringBuilder in several places
- fixed a problem with BufferedInputStream's newline characters (EBCDIC)
- cleanup Timer's finalizer helper object
- new cache for the canonical path of a file
- fixed concurrency issue with ArrayList
- floating point parsing now trims length for very small numbers
- encoding specified "UTF-8" when converting some byte[]s to strings (JarURLConnection, Util, OSFileSystem)
- Harmony now implements floor and ceil in Java. We continue to use native code.
llTests.java
ileCanonPathCacheTest.java
f5597e626ecf7949d249dea08c1a2964d890ec11 25-Jul-2009 Jesse Wilson <jessewilson@google.com> Integrate luni module (but not tests) to Harmony r772995.

Notable changes
- Stripped "@since Android 1.0" from many files. Most files
are now 100% the same in Dalvik and Harmony.
- AbstractStringBuilder.reverse() supports surrogates
- AbstractStringBuilder shares less to waste less memory
- Bitset optimized
- BufferedInputStream changed to support unsynchronized close()
- BufferedOutputStream does flushInternal
- BufferedReader supports EBCDIC NEL
- Collections.synchronizedList().indexOf() does a copy for more concurrency
- Classes in nio module changed: DatagramChannelImpl, SocketChannelImpl
and ServerSocketChannelImpl (these depend on internal APIs changed in
this update)
- DataInputStream/DataOutputStream now use a small buffer to limit the
number of times the underlying stream is accessed
- Date now has a minutes offset, more efficient toString()
- ExposedByteArrayInputStream: new internal class
- DeleteOnExit moved to top-level class
- FileDescriptor.isValid() now non-native
- Float, Double lessThan optimized (fix for compare(-0.0F, 0.0F) still pending)
- FileURLConnection now guesses content types from streams
- HashMap iterator changes
- Hashtable iterator changes
- INetworkSystem
- removes bind2(), createMulticastSocket, sendStream(),
- renames createSocket to createStreamSocket
- JarURLConnection rewritten
- LinkedHashMap: new iterator
- Locale, Currency, TimeZone: now use ICU in Harmony, plain Java in Dalvik
- ObjectInputStream: Accessor objects in Harmony, direct native in Dalvik
- ProxyClassFile - many changes
- String - optimized ascii for toLowerCase, toUpperCase, compare
- Timer - rewritten
- TreeMap - rewritten
- URLClassLoader - new
- URLConnection - new guessContentTypeFromStream(), uses org.apache.harmony.awt.www.content
to lookup content type handlers
ileTest.java
adc854b798c1cfe3bfd4c27d68d5cee38ca617da 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
llTests.java
ufferedReaderTest.java
ilePermissionTest.java
ileTest.java
nputStreamReaderTest.java
bjectInputStreamTest.java
bjectStreamConstantsTest.java
utputStreamWriterTest.java
ushBackInputStreamTest.java
andomAccessFileTest.java
eaderTest.java
riterTest.java
1c0fed63c71ddb230f3b304aac12caffbedf2f21 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
llTests.java
ufferedReaderTest.java
ilePermissionTest.java
ileTest.java
nputStreamReaderTest.java
bjectInputStreamTest.java
bjectStreamConstantsTest.java
utputStreamWriterTest.java
ushBackInputStreamTest.java
andomAccessFileTest.java
eaderTest.java
riterTest.java
a0881d052ee72e3f7e773374e9b1aa75fbd6be4c 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
llTests.java
ufferedInputStreamTest.java
ufferedReaderTest.java
ileInputStreamTest.java
ileOutputStreamTest.java
ilePermissionTest.java
ileTest.java
nputStreamReaderTest.java
bjectInputStreamTest.java
bjectStreamConstantsTest.java
utputStreamWriterTest.java
ushBackInputStreamTest.java
andomAccessFileTest.java
eaderTest.java
riterTest.java
dd828f42a5c83b4270d4fbf6fce2da1878f1e84a 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
ufferedInputStreamTest.java
ufferedReaderTest.java
ileInputStreamTest.java
ileOutputStreamTest.java
ilePermissionTest.java
ileTest.java
nputStreamReaderTest.java
bjectInputStreamTest.java
bjectStreamConstantsTest.java
utputStreamWriterTest.java
ushBackInputStreamTest.java
andomAccessFileTest.java
eaderTest.java
riterTest.java
fdb2704414a9ed92394ada0d1395e4db86889465 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
llTests.java
ufferedInputStreamTest.java
ufferedReaderTest.java
ileInputStreamTest.java
ileOutputStreamTest.java
ilePermissionTest.java
ileTest.java
nputStreamReaderTest.java
bjectInputStreamTest.java
bjectStreamConstantsTest.java
utputStreamWriterTest.java
ushBackInputStreamTest.java
andomAccessFileTest.java
eaderTest.java
riterTest.java