Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1271 - 1280 of 2,806 for Then (0.03 sec)

  1. tests/delete_test.go

    	if err := DB.Create(&users).Error; err != nil {
    		t.Errorf("errors happened when create: %v", err)
    	}
    
    	for _, user := range users {
    		if user.ID == 0 {
    			t.Fatalf("user's primary key should has value after create, got : %v", user.ID)
    		}
    	}
    
    	if res := DB.Delete(&users[1]); res.Error != nil || res.RowsAffected != 1 {
    		t.Errorf("errors happened when delete: %v, affected: %v", res.Error, res.RowsAffected)
    	}
    
    	var result User
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        assertTrue(executor.isTerminated());
    
        otherTask.get();
      }
    
      /**
       * Test for a bug where threads weren't getting signaled when shutdown was called, only when tasks
       * completed.
       */
      public void testDirectExecutorService_awaitTermination_missedSignal() {
        ExecutorService service = newDirectExecutorService();
        Thread waiter =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 26.5K bytes
    - Viewed (0)
  3. tests/non_std_test.go

    	}
    
    	// When changing a field with a default value, the change must occur
    	animal.Name = "amazing horse"
    	DB.Save(&animal)
    	DB.First(&animal, animal.Counter)
    	if animal.Name != "amazing horse" {
    		t.Errorf("Update a filed with a default value should occur. But got %v\n", animal.Name)
    	}
    
    	// When changing a field with a default value with blank value
    	animal.Name = ""
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

            // Assert
            assertEquals(msg, ex.getMessage(), "Constructor should preserve the provided message (including null)");
            assertNull(ex.getCause(), "No cause expected when only message is provided");
    
            // toString behavior mirrors Throwable: includes message when not null
            String ts = ex.toString();
            assertTrue(ts.contains("SmbUnsupportedOperationException"), "toString should contain class name");
            if (msg != null) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/Tags.kt

        value: T?,
      ): Tags {
        // Create a copy of this `LinkedTags` that doesn't have a mapping for `key`.
        val thisMinusKey =
          when {
            key == this.key -> next // Subtract this!
    
            else -> {
              val nextMinusKey = next.plus(key, null)
              when {
                nextMinusKey === next -> this // Same as the following line, but with fewer allocations.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 24 11:37:46 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

        @BeforeEach
        void setUp() {
            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockConfig.isUseMultiChannel()).thenReturn(true);
            when(mockConfig.getMaxChannels()).thenReturn(4);
            when(mockConfig.getChannelBindingPolicy()).thenReturn(1); // preferred
            when(mockConfig.getLoadBalancingStrategy()).thenReturn("adaptive");
            when(mockConfig.getChannelHealthCheckInterval()).thenReturn(10);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/UniAddressTest.java

            // Arrange
            NbtAddress nbtMock = mock(NbtAddress.class);
            when(nbtMock.nextCalledName()).thenReturn("NEXT");
            UniAddress ua = new UniAddress(nbtMock);
            // Act
            String next = ua.nextCalledName();
            // Assert
            assertEquals("NEXT", next, "nextCalledName should delegate to NbtAddress when called");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

        void nameFilterAccepts(String acceptedName) throws Exception {
            // Arrange
            stubAcquireReturnsSelf();
            when(nameFilter.accept(any(), any())).thenReturn(false);
            when(nameFilter.accept(parent, acceptedName)).thenReturn(true);
    
            FileEntry initial = entry("first");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  9. mockwebserver/src/main/kotlin/mockwebserver3/internal/RecordedRequestFactory.kt

        headers[":authority"]
          ?: headers["Host"]
          ?: when (val inetAddress = socket.localAddress) {
            is Inet6Address -> "[${inetAddress.hostAddress}]:${socket.localPort}"
            else -> "${inetAddress.hostAddress}:${socket.localPort}"
          }
    
      // For OPTIONS, the request target may be a '*', like 'OPTIONS * HTTP/1.1'.
      val path =
        when {
          requestLine.method == "OPTIONS" && requestLine.target == "*" -> "/"
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Jul 29 12:43:16 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/HandlerTest.java

        @DisplayName("openConnection returns SmbFile using provided CIFSContext")
        void testOpenConnection_UsesProvidedContext() throws MalformedURLException, IOException {
            // Arrange
            when(mockCtx.getConfig()).thenReturn(mockCfg);
            when(mockCfg.isTraceResourceUsage()).thenReturn(false);
    
            Handler handler = newHandlerWith(mockCtx);
            URL url = new URL(null, "smb://example-host/share/", new Handler());
    
            // Act
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
Back to top