Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 529 for ensure (0.05 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

          Map<Object, Integer> indexByLock = new HashMap<>();
          for (int i = 0; i < striped.size(); i++) {
            indexByLock.put(striped.getAt(i), i);
          }
    
          // ensure that bulkGet returns locks in monotonically increasing order
          for (int objectsNum = 1; objectsNum <= striped.size() * 2; objectsNum++) {
            Set<Object> objects = Sets.newHashSetWithExpectedSize(objectsNum);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

          Map<Object, Integer> indexByLock = new HashMap<>();
          for (int i = 0; i < striped.size(); i++) {
            indexByLock.put(striped.getAt(i), i);
          }
    
          // ensure that bulkGet returns locks in monotonically increasing order
          for (int objectsNum = 1; objectsNum <= striped.size() * 2; objectsNum++) {
            Set<Object> objects = Sets.newHashSetWithExpectedSize(objectsNum);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            assertEquals(0, responseLength);
        }
    
        @Test
        void testMultipleReadDataWireFormatCalls() throws SMBProtocolDecodingException {
            // Test multiple calls to readDataWireFormat to ensure buffer is overwritten
            byte[] firstData = "First data set".getBytes();
            byte[] secondData = "Second data set".getBytes();
            byte[] buffer1 = new byte[100];
            byte[] buffer2 = new byte[100];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. README.md

        users outside your own control), you should not use beta APIs unless you
        [repackage] them. **If your code is a library, we strongly recommend using
        the [Guava Beta Checker] to ensure that you do not use any `@Beta` APIs!**
    
    2.  APIs without `@Beta` will remain binary-compatible for the indefinite
        future. (Previously, we sometimes removed such APIs after a deprecation
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Aug 05 15:30:14 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/MultiChannelManager.java

                SmbTransportImpl transport = new SmbTransportImpl(context, serverUniAddress, port, localAddress, localPort, forceSigning);
    
                // Ensure the transport is connected and ready
                transport.ensureConnected();
    
                // Verify multi-channel capability (SMB3+ required)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

          assertWrapsInterruptedException(expected);
        } finally {
          interruptenator.shutdown();
          Thread.interrupted();
        }
      }
    
      /**
       * awaitFullGc() is not quite as reliable a way to ensure calling of a specific finalize method as
       * the more direct await* methods, but should be reliable enough in practice to avoid flakiness of
       * this test. (And if it isn't, we'd like to know about it first!)
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

     * behaviour. The tests cover flag manipulation, byte‑buffer operations and
     * static helpers. Edge cases such as null or short arrays and negative
     * values are verified to ensure proper exception handling and byte
     * conversion.
     */
    @ExtendWith(MockitoExtension.class)
    class NtlmMessageTest {
    
        /** Lightweight concrete implementation used only for testing. */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                throw SmbException.wrap(e);
            }
        }
    
        /**
         * @return
         * @throws SmbException
         */
        synchronized SmbFileHandleImpl ensureOpen() throws CIFSException {
            // ensure file is open
            if (this.handle == null || !this.handle.isValid()) {
                // one extra acquire to keep this open till the stream is released
                this.handle =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/StaticJAASConfigurationTest.java

            assertEquals("true", returned.get("useKeyTab"));
            assertEquals("true", returned.get("storeKey"));
            assertEquals("******@****.***", returned.get("principal"));
            // Ensure no unexpected extra options
            assertEquals(3, returned.size(), "Only provided options are expected");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

          for (int i = off; i < off + len; i++) {
            out.write(b[i]);
          }
        } else {
          out.write(b, off, len);
        }
        out.flush(); // for coverage
      }
    
      // TODO(chrisn): only works if we ensure we have crossed file threshold
    
      public void testWriteErrorAfterClose() throws Exception {
        byte[] data = newPreFilledByteArray(100);
        FileBackedOutputStream out = new FileBackedOutputStream(50);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top