Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for expectedTypes (0.14 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java

            byte[] expectedBytes = DIALECTS.getBytes("ASCII");
            byte[] dst = new byte[expectedBytes.length];
            int dstIndex = 0;
    
            // Execute the method to write bytes
            int bytesWritten = smbComNegotiate.writeBytesWireFormat(dst, dstIndex);
    
            // Verify the number of bytes written
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java

            // Test throwing and catching the exception
            String expectedType = "OAuth";
            String expectedMessage = "OAuth token is invalid";
    
            try {
                throw new InvalidAccessTokenException(expectedType, expectedMessage);
            } catch (InvalidAccessTokenException e) {
                assertEquals(expectedType, e.getType());
                assertEquals(expectedMessage, e.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

            byte[] expectedBytes = unicodeFileName.getBytes(StandardCharsets.UTF_16LE);
            assertEquals(32 + expectedBytes.length, bytesWritten);
    
            // Verify filename length in header
            int fnLength = buffer[Smb2Constants.SMB2_HEADER_LENGTH + 26] | (buffer[Smb2Constants.SMB2_HEADER_LENGTH + 27] << 8);
            assertEquals(expectedBytes.length, fnLength);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            // Then - Verify UTF-16LE encoding
            byte[] expectedBytes = testPath.getBytes(StandardCharsets.UTF_16LE);
            byte[] actualBytes = new byte[expectedBytes.length];
            System.arraycopy(buffer, Smb2Constants.SMB2_HEADER_LENGTH + 8, actualBytes, 0, expectedBytes.length);
    
            assertArrayEquals(expectedBytes, actualBytes);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/SmbResourceTest.java

            void testGetType() throws CIFSException {
                // Given
                int expectedType = 1; // Assuming TYPE_FILESYSTEM
                when(mockResource.getType()).thenReturn(expectedType);
    
                // When
                int type = mockResource.getType();
    
                // Then
                assertEquals(expectedType, type, "Should return correct resource type");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        Type expectedType = new TypeToken<Map<String, List<Object>>>() {}.getType();
        assertEquals(
            expectedType,
            new TypeToken<ListMap<String, Object>>() {}.getSupertype(Map.class).getType());
      }
    
      private interface StringListMap<V> extends ListMap<String, V> {}
    
      public <V> void testGetSupertype_partiallySpecializedType() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        Type expectedType = new TypeToken<Map<String, List<Object>>>() {}.getType();
        assertEquals(
            expectedType,
            new TypeToken<ListMap<String, Object>>() {}.getSupertype(Map.class).getType());
      }
    
      private interface StringListMap<V> extends ListMap<String, V> {}
    
      public <V> void testGetSupertype_partiallySpecializedType() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

            int bytesRead = notifyInfo.decode(buffer, 0, buffer.length);
    
            // Should be: 4 (nextOffset) + 4 (action) + 4 (nameLength) + fileName bytes
            int expectedBytes = 12 + (fileName.length() * 2); // Unicode is 2 bytes per char
            assertEquals(expectedBytes, bytesRead);
        }
    
        @Test
        @DisplayName("Test getAction returns correct value")
        void testGetAction() throws SMBProtocolDecodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

                "100, " + SmbConstants.TYPE_SHARE // Unknown type defaults to share
        })
        void testGetTypeWithDifferentShareTypes(int inputType, int expectedType) {
            SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, inputType, TEST_REMARK);
            assertEquals(expectedType, info.getType());
        }
    
        @Test
        @DisplayName("Test getType with hidden flag")
        void testGetTypeWithHiddenFlag() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. cmd/endpoint_test.go

    					t.Errorf("endpoint: expected = %#v, got = %#v", test.expectedEndpoint, endpoint)
    				}
    			}
    
    			if err == nil && test.expectedType != endpoint.Type() {
    				t.Errorf("type: expected = %+v, got = %+v", test.expectedType, endpoint.Type())
    			}
    		})
    	}
    }
    
    func TestNewEndpoints(t *testing.T) {
    	testCases := []struct {
    		args        []string
    		expectedErr error
    	}{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 18.9K bytes
    - Viewed (0)
Back to top