Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 624 for First (0.01 sec)

  1. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

        void iteratesAndFetchesMoreThenCloses() throws Exception {
            // Arrange: program send() to simulate first, next, next(NO_MORE_FILES)
            List<String[]> batches = new ArrayList<>();
            batches.add(new String[] { ".", "..", "a", "b" }); // first batch, dot entries filtered
            batches.add(new String[] { "c" }); // second batch
            batches.add(new String[] {}); // last -> NO_MORE_FILES
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

            // Then
            assertTrue(result > 0);
            assertEquals((byte) 0x04, dst[0]); // First buffer format byte
    
            // Find the second buffer format byte
            int secondBufferFormatIndex = oldFileName.length() + 2; // 1 for first 0x04, 1 for null terminator
            assertEquals((byte) 0x04, dst[secondBufferFormatIndex]);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. tests/query_test.go

    	if err := DB.Create(&users).Error; err != nil {
    		t.Fatalf("errors happened when create users: %v", err)
    	}
    
    	t.Run("First", func(t *testing.T) {
    		var first User
    		if err := DB.Where("name = ?", "find").First(&first).Error; err != nil {
    			t.Errorf("errors happened when query first: %v", err)
    		} else {
    			CheckUser(t, first, users[0])
    		}
    	})
    
    	t.Run("Last", func(t *testing.T) {
    		var last User
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Jul 22 06:21:04 UTC 2025
    - 51K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

            assertTrue(it.hasNext());
            FileEntry e2 = it.next();
    
            // Assert
            assertNotNull(e1);
            assertNotNull(e2);
            assertEquals("first", e1.getName());
            assertEquals(acceptedName, e2.getName(), "Should return the first name accepted by filter");
    
            // Verify filter interactions: not called for '.' and '..', called for others
            verify(nameFilter, never()).accept(parent, ".");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

        void testEncodeDecodeRoundtrip() throws SMBProtocolDecodingException {
            // Setup first instance with test data
            long expectedIndexNumber = 0x1122334455667788L;
            byte[] originalBuffer = new byte[8];
            SMBUtil.writeInt8(expectedIndexNumber, originalBuffer, 0);
    
            // Decode into first instance
            FileInternalInfo firstInstance = new FileInternalInfo();
    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. .teamcity/src/main/kotlin/configurations/Gradleception.kt

         1. Build a Gradle distribution with a fixed timestamp and hash it, but never use this distribution.
         2. Build a Gradle distribution with this hash as a version + fixed timestamp -> dogfood-first
         3. Build a Gradle distribution using dogfood-first with this hash as a version + fixed timestamp different from the one above -> dogfood-second
         4. Use dogfood-second to run a Gradle build which runs tests.
    
         */
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Thu May 01 14:55:05 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  7. tests/customize_field_test.go

    		t.Error("There should be one record be affected when create record")
    	}
    
    	var cc1 CustomizeColumn
    	DB.First(&cc1, "mapped_name = ?", "foo")
    
    	if cc1.Name != expected {
    		t.Errorf("Failed to query CustomizeColumn")
    	}
    
    	cc.Name = "bar"
    	DB.Save(&cc)
    
    	var cc2 CustomizeColumn
    	DB.First(&cc2, "mapped_id = ?", 666)
    	if cc2.Name != "bar" {
    		t.Errorf("Failed to query CustomizeColumn")
    	}
    }
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Sep 11 09:33:31 UTC 2020
    - 6.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java

            byte[] actualMachineId = new byte[32];
            System.arraycopy(value, 16, actualMachineId, 0, 32);
            assertArrayEquals(expectedMachineId, actualMachineId);
    
            // Verify the size field (first 4 bytes)
            assertEquals(48, (value[0] & 0xFF) | ((value[1] & 0xFF) << 8) | ((value[2] & 0xFF) << 16) | ((value[3] & 0xFF) << 24));
        }
    
        /**
         * Test constructor AvSingleHost(byte[] customData, byte[] machineId).
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  9. compat/maven-builder-support/src/test/java/org/apache/maven/building/ProblemCollectorFactoryTest.java

            assertEquals(2, problems.size(), "Should collect both problems");
            assertEquals(Problem.Severity.ERROR, problems.get(0).getSeverity(), "First problem should be ERROR");
            assertEquals("Error message", problems.get(0).getMessage(), "First problem should have correct message");
            assertEquals(Problem.Severity.WARNING, problems.get(1).getSeverity(), "Second problem should be WARNING");
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sun Jul 20 20:19:43 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

                if (first.getPath() != null) {
                    expectedPathConsumed -= (first.getPath().length() + 1);
                }
                assertEquals(expectedPathConsumed, combined.getPathConsumed());
            }
    
            @Test
            @DisplayName("Should combine when first has null path")
            void testCombineWithNullPath() {
                // Create first with null path
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
Back to top