Home
last modified time | relevance | path

Searched refs:mock (Results 1 – 5 of 5) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DEnumTest.java229 MockEnum mock = new MockEnum(); in testSerializationSelf() local
230 MockEnum test = (MockEnum) SerializationTest.copySerializable(mock); in testSerializationSelf()
231 assertEquals(mock.i, test.i); in testSerializationSelf()
232 assertEquals(mock.str, test.str); in testSerializationSelf()
233 assertEquals(mock.samEnum, test.samEnum); in testSerializationSelf()
/libcore/luni/src/test/java/libcore/java/net/
DOldAuthenticatorTest.java34 MockAuthenticator mock = new MockAuthenticator(); in test_setDefault() local
35 Authenticator.setDefault(mock); in test_setDefault()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DAbstractSelectableChannelTest.java277 MockSelectableChannel mock = new MockSelectableChannel(SelectorProvider in test_configureBlocking_Z() local
281 mock.configureBlocking(true); in test_configureBlocking_Z()
282 assertFalse(mock.implConfigureBlockingCalled); in test_configureBlocking_Z()
283 mock.configureBlocking(false); in test_configureBlocking_Z()
284 assertTrue(mock.implConfigureBlockingCalled); in test_configureBlocking_Z()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DHashMapTest.java225 MockClonable mock = new MockClonable(1); in test_clone() local
226 hashmap.put(1, mock); in test_clone()
230 mock.i = 0; in test_clone()
/libcore/luni/src/test/java/libcore/java/sql/
DOldPreparedStatementTest.java2078 Blob mock = new MockBlob(); in testSetBlob() local
2082 ps.setBlob(1,mock); in testSetBlob()
2092 Clob mock = new MockClob(); in testSetClob() local
2096 ps.setClob(1,mock); in testSetClob()
2197 Ref mock = new MockRef(); in testSetRef() local
2201 ps.setRef(1,mock); in testSetRef()