/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | SimpleFileVisitorTest.java | 27 import static org.mockito.Mockito.mock; 32 Path stubPath = mock(Path.class); in test_preVisitDirectory() 33 BasicFileAttributes stubAttributes = mock(BasicFileAttributes.class); in test_preVisitDirectory() 51 Path stubPath = mock(Path.class); in test_postVisitDirectory() 71 Path stubPath = mock(Path.class); in test_visitFile() 72 BasicFileAttributes stubAttributes = mock(BasicFileAttributes.class); in test_visitFile() 89 Path stubPath = mock(Path.class); in test_visitFileFailed()
|
D | FilesTest.java | 56 import static org.mockito.Mockito.mock; 364 FileAttribute mockFileAttribute = mock(FileAttribute.class); in test_createSymbolicLink() 384 CopyOption copyOption = mock(CopyOption.class); in test_copy()
|
D | Files2Test.java | 92 import static org.mockito.Mockito.mock; 119 CopyOption mockCopyOption = mock(CopyOption.class); in test_move() 167 FileAttributeView mockFileAttributeView = mock(FileAttributeView.class); in test_getFileAttributeView() 176 BasicFileAttributes mockBasicFileAttributes = mock(BasicFileAttributes.class); in test_readAttributes() 1806 FileAttribute stubFileAttribute = mock(FileAttribute.class); in test_newByteChannel$Path$Set_OpenOption$FileAttributes()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileChannelTest.java | 21 import static org.mockito.Mockito.mock; 302 Path mockPath = mock(Path.class); in test_open_Path_Set_FileAttributes() 303 FileSystem mockFileSystem = mock(FileSystem.class); in test_open_Path_Set_FileAttributes() 304 FileSystemProvider mockFileSystemProvider = mock(FileSystemProvider.class); in test_open_Path_Set_FileAttributes() 305 FileChannel mockFileChannel = mock(FileChannel.class); in test_open_Path_Set_FileAttributes() 307 FileAttribute mockFileAttribute1 = mock(FileAttribute.class); in test_open_Path_Set_FileAttributes() 308 FileAttribute mockFileAttribute2 = mock(FileAttribute.class); in test_open_Path_Set_FileAttributes() 330 Path mockPath = mock(Path.class); in test_open_Path_OpenOptions() 331 FileSystem mockFileSystem = mock(FileSystem.class); in test_open_Path_OpenOptions() 332 FileSystemProvider mockFileSystemProvider = mock(FileSystemProvider.class); in test_open_Path_OpenOptions() [all …]
|
D | ChannelsTest.java | 36 import static org.mockito.Mockito.mock; 74 AsynchronousByteChannel abc = mock(AsynchronousByteChannel.class); in testInputStreamAsynchronousByteChannel() 76 Future<Integer> result = mock(Future.class); in testInputStreamAsynchronousByteChannel() 102 AsynchronousByteChannel abc = mock(AsynchronousByteChannel.class); in testOutputStreamAsynchronousByteChannel() 104 Future<Integer> result = mock(Future.class); in testOutputStreamAsynchronousByteChannel()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | EnumTest.java | 229 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/ |
D | OldAuthenticatorTest.java | 34 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/ |
D | AbstractSelectableChannelTest.java | 277 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/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatters.java | 1343 MockAccessor mock = new MockAccessor(); in buildAccessor() local 1345 mock.fields.put(YEAR, (long) year); in buildAccessor() 1348 mock.fields.put(MONTH_OF_YEAR, (long) month); in buildAccessor() 1351 mock.fields.put(DAY_OF_MONTH, (long) day); in buildAccessor() 1354 mock.fields.put(HOUR_OF_DAY, (long) hour); in buildAccessor() 1357 mock.fields.put(MINUTE_OF_HOUR, (long) min); in buildAccessor() 1360 mock.fields.put(SECOND_OF_MINUTE, (long) sec); in buildAccessor() 1363 mock.fields.put(NANO_OF_SECOND, (long) nano); in buildAccessor() 1365 mock.setOffset(offsetId); in buildAccessor() 1366 mock.setZone(zoneId); in buildAccessor() [all …]
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertPathValidatorExceptionTest.java | 27 import static org.mockito.Mockito.mock; 440 Throwable cause = mock(Throwable.class); in testCertPathValidatorException_constructsCorrectlyWithReason() 441 CertPath certPath = mock(CertPath.class); in testCertPathValidatorException_constructsCorrectlyWithReason() 443 Certificate cert1 = mock(Certificate.class); in testCertPathValidatorException_constructsCorrectlyWithReason() 444 Certificate cert2 = mock(Certificate.class); in testCertPathValidatorException_constructsCorrectlyWithReason()
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | ForwardingOsTest.java | 44 Os mockOs = Mockito.mock(Os.class); in toStringContainsDelegate()
|
D | OsTest.java | 30 Os mockOs = Mockito.mock(Os.class); in testCompareAndSetDefault_success()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ThreadTest.java | 227 UncaughtExceptionHandler initialHandler = Mockito.mock(UncaughtExceptionHandler.class); in testUncaughtExceptionPreHandler_calledBeforeDefaultHandler() 228 UncaughtExceptionHandler defaultHandler = Mockito.mock(UncaughtExceptionHandler.class); in testUncaughtExceptionPreHandler_calledBeforeDefaultHandler() 249 UncaughtExceptionHandler initialHandler = Mockito.mock(UncaughtExceptionHandler.class); in testUncaughtExceptionPreHandler_noDefaultHandler()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | CipherInputStreamTest.java | 42 import static org.mockito.Mockito.mock; 221 InputStream mockIs = mock(InputStream.class); in testCloseTwice()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FilterOutputStreamTest.java | 67 OutputStream outputStream = Mockito.mock(OutputStream.class); in test_doubleClose()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | SignatureTest.java | 20 import static org.mockito.Mockito.mock; 475 MockableSignatureSpi signatureSpi = mock(MockableSignatureSpi.class); in testGetParameters_IsCalled()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZoneId.java | 511 TemporalAccessor mock = new TemporalAccessor() { in factory_from_TemporalAccessor_zoneId() local 529 assertEquals(ZoneId.from(mock), ZoneId.of("Europe/Paris")); in factory_from_TemporalAccessor_zoneId()
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldPreparedStatementTest.java | 2076 Blob mock = new MockBlob(); in testSetBlob() local 2080 ps.setBlob(1,mock); in testSetBlob() 2090 Clob mock = new MockClob(); in testSetClob() local 2094 ps.setClob(1,mock); in testSetClob() 2195 Ref mock = new MockRef(); in testSetRef() local 2199 ps.setRef(1,mock); in testSetRef()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | HashMapTest.java | 230 MockClonable mock = new MockClonable(1); in test_clone() local 231 hashmap.put(1, mock); in test_clone() 235 mock.i = 0; in test_clone()
|