- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 156 for exists (0.23 sec)
-
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamAndroidIncompatibleTest.java
assertEquals(100, file.length()); assertTrue(file.exists()); out.close(); // Make sure that finalize deletes the file out = null; // times out and throws RuntimeException on failure GcFinalization.awaitDone( new GcFinalization.FinalizationPredicate() { @Override public boolean isDone() { return !file.exists(); } }); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Jun 08 21:20:23 GMT 2023 - 1.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
return; } write(out, data, chunk1, chunk2, singleByte); file = out.getFile(); assertEquals(dataSize, file.length()); assertTrue(file.exists()); assertThat(file.getName()).contains("FileBackedOutputStream"); if (!isAndroid() && !isWindows()) { PosixFileAttributes attributes =
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 5.5K bytes - Viewed (0) -
android/guava/src/com/google/common/annotations/VisibleForTesting.java
* or implied. See the License for the specific language governing permissions and limitations under * the License. */ package com.google.common.annotations; /** * Annotates a program element that exists, or is more widely visible than otherwise necessary, only * for use in test code. * * <p><b>Do not use this interface</b> for public or protected declarations: it is a fig leaf for
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Jan 30 22:25:16 GMT 2023 - 1.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/DiscreteDomain.java
} } return current; } /** * Returns the unique least value of type {@code C} that is greater than {@code value}, or {@code * null} if none exists. Inverse operation to {@link #previous}. * * @param value any value of type {@code C} * @return the least value greater than {@code value}, or {@code null} if {@code value} is {@code * maxValue()} */
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 10.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java
if (JAVA_IO_TMPDIR.value().equals("/sdcard")) { assertThrows(IllegalStateException.class, Files::createTempDir); return; } File temp = Files.createTempDir(); try { assertThat(temp.exists()).isTrue(); assertThat(temp.isDirectory()).isTrue(); assertThat(temp.listFiles()).isEmpty(); File child = new File(temp, "child"); assertThat(child.createNewFile()).isTrue();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Oct 06 17:11:11 GMT 2023 - 4.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
Path temp = createTempFile(); assertTrue(Files.exists(temp)); Files.delete(temp); assertFalse(Files.exists(temp)); MoreFiles.touch(temp); assertTrue(Files.exists(temp)); MoreFiles.touch(temp); assertTrue(Files.exists(temp)); } public void testTouchTime() throws IOException { Path temp = createTempFile(); assertTrue(Files.exists(temp));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Jan 29 22:57:05 GMT 2024 - 27.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java
return Helpers.mapEntry(key, value); } @Override protected void expectContents(Collection<Entry<K, V>> expected) { // TODO: move this to invariant checks once the appropriate hook exists? super.expectContents(expected); for (Entry<K, V> entry : expected) { assertEquals( "Wrong value for key " + entry.getKey(), entry.getValue(), getMap().get(entry.getKey())); } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 7.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
} public void testTouch() throws IOException { File temp = createTempFile(); assertTrue(temp.exists()); assertTrue(temp.delete()); assertFalse(temp.exists()); Files.touch(temp); assertTrue(temp.exists()); Files.touch(temp); assertTrue(temp.exists()); assertThrows( IOException.class, () -> Files.touch(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 22.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
} public void testTouch() throws IOException { File temp = createTempFile(); assertTrue(temp.exists()); assertTrue(temp.delete()); assertFalse(temp.exists()); Files.touch(temp); assertTrue(temp.exists()); Files.touch(temp); assertTrue(temp.exists()); assertThrows( IOException.class, () -> Files.touch(
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 22.2K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/ImmutableIntArray.java
Preconditions.checkElementIndex(index, length()); return array[start + index]; } /** * Returns the smallest index for which {@link #get} returns {@code target}, or {@code -1} if no * such index exists. Equivalent to {@code asList().indexOf(target)}. */ public int indexOf(int target) { for (int i = start; i < end; i++) { if (array[i] == target) { return i - start; } }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri May 12 16:34:24 GMT 2023 - 18.9K bytes - Viewed (0)