Search Options

Results per page
Sort
Preferred Languages
Advance

Results 4681 - 4690 of 4,820 for If (0.01 sec)

  1. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java

            SMBUtil.writeInt2(100, buffer, 0);
            SMBUtil.writeInt2(0, buffer, 2);
            SMBUtil.writeInt2(TransPeekNamedPipeResponse.STATUS_CONNECTION_OK, buffer, 4);
    
            // Act - Still returns 6 even if len is smaller
            int result = response.readParametersWireFormat(buffer, 0, 3);
    
            // Assert
            assertEquals(6, result);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                SmbException ex = assertThrows(SmbException.class, () -> SmbEnumerationUtil.doShareEnum(parent, "*", 0, null, null));
    
                // Assert message indicates which validation failed
                if (expectDirSlashMsg) {
                    assertTrue(ex.getMessage().contains("directory must end with '/'"),
                            "Expected trailing slash message, was: " + ex.getMessage());
                } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     * Lesser General Public License for more details.
     *
     * You should have received a copy of the GNU Lesser General Public
     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.smb;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/NtStatus.java

     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     * Lesser General Public License for more details.
     *
     * You should have received a copy of the GNU Lesser General Public
     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb1.smb1;
    
    /**
     * Interface defining NT status codes used in SMB1 protocol operations.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            // Execute
            int bytesEncoded = request.encode(buffer, 0);
    
            // Verify
            assertEquals(0L, SMBUtil.readInt8(buffer, 0));
    
            // Even with zero timeout, if using timeout constructor, flag should be set
            assertEquals(0x1, buffer[12]);
        }
    
        @Test
        @DisplayName("Test size method consistency")
        void testSizeMethodConsistency() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbSessionTest.java

                for (int i = 0; i < 5; i++) {
                    new Thread(() -> {
                        try {
                            Configuration result = mockSession.getConfig();
                            if (result == mockConfig) {
                                successCount.incrementAndGet();
                            }
                        } finally {
                            latch.countDown();
                        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

            for (int invalidSize : invalidSizes) {
                byte[] buffer = new byte[256];
    
                // Handle negative values (will wrap around in writeInt2)
                if (invalidSize >= 0) {
                    SMBUtil.writeInt2(invalidSize, buffer, 0);
    
                    // When & Then
                    SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

                setLength(calculatedLength);
    
                // Now call the ServerMessageBlock2Request's encode which will do the validation
                int exp = size();
                int actual = getLength();
                if (exp != actual) {
                    throw new IllegalStateException(String.format("Wrong size calculation have %d expect %d", exp, actual));
                }
    
                return calculatedLength;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        val ping = peer.takeFrame()
        assertThat(ping.type).isEqualTo(Http2.TYPE_PING)
      }
    
      /**
       * A server RST_STREAM shouldn't prevent the client from consuming the response body, even if it
       * follows a truncated request body.
       */
      @Test fun clientRequestBodyServerResponseBodyRstStream() {
        // Write the mocking script.
        peer.sendFrame().settings(Settings())
        peer.acceptFrame() // ACK
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 75.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        sort(entries, sortedMultiset.comparator());
    
        // some tests assume SEVERAL == 3
        if (entries.size() >= 1) {
          a = Multisets.immutableEntry(entries.get(0), sortedMultiset.count(entries.get(0)));
          if (entries.size() >= 3) {
            b = Multisets.immutableEntry(entries.get(1), sortedMultiset.count(entries.get(1)));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 20:14:36 UTC 2024
    - 26K bytes
    - Viewed (0)
Back to top