Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for expectedTypes (0.06 sec)

  1. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 89K bytes
    - Viewed (0)
  2. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  4. 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 Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 18.9K 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

        void testServerInfo1GetTypeVariousTypes(String typeHex, int expectedType) throws Exception {
            NetServerEnum2Response.ServerInfo1 server = response.new ServerInfo1();
            server.type = (int) Long.parseLong(typeHex.substring(2), 16);
            assertEquals(expectedType, server.getType());
        }
    
        @Test
        @DisplayName("Test ServerInfo1 getName")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.4K bytes
    - Viewed (0)
Back to top