- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,181 for first (0.05 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
checkMessage( expected, "OtherOrder.FIRST -> MyOrder.THIRD", "MyOrder.THIRD -> OtherOrder.FIRST"); lockA.lock(); lock01.unlock(); lockB.lock(); lockA.unlock(); expected = assertThrows(PotentialDeadlockException.class, () -> lock01.lock()); checkMessage( expected, "LockB -> OtherOrder.FIRST", "LockA -> LockB", "OtherOrder.FIRST -> LockA"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 16.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
checkMessage( expected, "OtherOrder.FIRST -> MyOrder.THIRD", "MyOrder.THIRD -> OtherOrder.FIRST"); lockA.lock(); lock01.unlock(); lockB.lock(); lockA.unlock(); expected = assertThrows(PotentialDeadlockException.class, () -> lock01.lock()); checkMessage( expected, "LockB -> OtherOrder.FIRST", "LockA -> LockB", "OtherOrder.FIRST -> LockA"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 16.2K bytes - Viewed (0) -
tests/hooks_test.go
} if DB.Where("code = ?", "update_callback").First(&Product{}).Error != nil { t.Fatalf("Record Should not be updated due to errors happened in before update callback") } if DB.Where("code = ?", "dont_update").First(&Product{}).Error == nil { t.Fatalf("Record Should not be updated due to errors happened in before update callback") }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jun 17 03:59:06 UTC 2024 - 16.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java
NetServerFileEntryAdapterIterator itr = new NetServerFileEntryAdapterIterator(parent, delegate, null); // Act & Assert assertTrue(itr.hasNext(), "Should have first element ready"); SmbResource r1 = itr.next(); assertNotNull(r1, "First adapted resource must not be null"); // For workgroup/server entries, names end with '/' assertTrue(r1.getName().endsWith("/"), "Name should end with '/'");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/JAASAuthenticatorTest.java
} else if (first != null && second != null) { // Both non-null - should be same instance assertSame(first, second, "Second getSubject should return same cached instance as first"); } else { fail("Inconsistent behavior: first=" + first + ", second=" + second); } // Third call should return the same cached Subject instance
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
tests/named_argument_test.go
DB.Create(&namedUser) var result NamedUser DB.First(&result, "name1 = @name OR name2 = @name OR name3 = @name", sql.Named("name", "jinzhu2")) AssertEqual(t, result, namedUser) var result2 NamedUser DB.Where("name1 = @name OR name2 = @name OR name3 = @name", sql.Named("name", "jinzhu2")).First(&result2) AssertEqual(t, result2, namedUser) var result3 NamedUser
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Tue Dec 21 11:50:00 UTC 2021 - 2.7K bytes - Viewed (0) -
tests/associations_test.go
t.Fatalf("Should delete member, got error: %v, affected: %v", r.Error, r.RowsAffected) } var result Member if err := DB.First(&result, member.ID).Error; err == nil { t.Fatalf("Should not find deleted member") } if err := DB.First(&profile2, profile.ID).Error; err == nil { t.Fatalf("Should not find deleted profile") } } func TestForeignKeyConstraintsBelongsTo(t *testing.T) {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Feb 08 08:29:09 UTC 2023 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionTest.java
void testNextElementFirstCall() { Object element = transaction.nextElement(); assertSame(transaction, element, "First nextElement should return the transaction itself"); } @Test @DisplayName("Test nextElement() changes command on second call") void testNextElementSecondCall() { // First call - primary
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
tests/delete_test.go
} var result User if err := DB.Where("id = ?", users[1].ID).First(&result).Error; err == nil || !errors.Is(err, gorm.ErrRecordNotFound) { t.Errorf("should returns record not found error, but got %v", err) } for _, user := range []User{users[0], users[2]} { result = User{} if err := DB.Where("id = ?", user.ID).First(&result).Error; err != nil {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 9.5K bytes - Viewed (0)