Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 585 for Upsert (0.15 sec)

  1. guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

       */
      public static void assertBasic(Escaper escaper) throws IOException {
        // Escapers operate on characters: no characters, no escaping.
        Assert.assertEquals("", escaper.escape(""));
        // Assert that escapers throw null pointer exceptions.
        try {
          escaper.escape((String) null);
          Assert.fail("exception not thrown when escaping a null string");
        } catch (NullPointerException e) {
          // pass
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/auth/AuthenticationManagerTest.java

            assertNotNull(manager);
        }
    
        // Test insert with no chains
        public void test_insert_noChains() {
            User user = createTestUser("testuser");
            authenticationManager.insert(user);
            // Should not throw exception even with no chains
        }
    
        // Test insert with single chain
        public void test_insert_singleChain() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 14K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NodeStatusRequestTest.java

            // Assert
            assertEquals(0, result);
        }
    
        @Test
        void readBodyWireFormat_withDifferentOffsets_shouldAlwaysReturnZero() {
            // Arrange
            nodeStatusRequest = new NodeStatusRequest(mockConfig, mockName);
            byte[] src = new byte[100];
    
            // Act & Assert
            assertEquals(0, nodeStatusRequest.readBodyWireFormat(src, 0));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java

            // Assert - message and cause are null
            assertNull(ex.getMessage(), "Default constructor should have null message");
            assertNull(ex.getCause(), "Default constructor should have null cause");
    
            // Assert - toString shows class name when message is null
            assertEquals(SMBProtocolDowngradeException.class.getName(), ex.toString());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/StaticJAASConfigurationTest.java

            // Arrange
            StaticJAASConfiguration cfg = new StaticJAASConfiguration();
    
            // Act
            AppConfigurationEntry[] entries = cfg.getAppConfigurationEntry("ignored");
    
            // Assert
            assertNotNull(entries, "Entries array should not be null");
            assertEquals(1, entries.length, "Exactly one entry is expected");
            AppConfigurationEntry e = entries[0];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java

        @DisplayName("Constructor should initialize with correct values")
        void testConstructor() {
            // Act
            transPeekNamedPipe = new TransPeekNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_FID);
    
            // Assert
            assertNotNull(transPeekNamedPipe);
            assertEquals(TEST_PIPE_NAME, transPeekNamedPipe.name);
            assertEquals(0xFFFFFFFF, transPeekNamedPipe.timeout);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

        // Verify that the listener executed in a reasonable amount of time.
        Assert.assertTrue(countDownLatch.await(1L, SECONDS));
    
        try {
          future.get();
          Assert.fail("This call was supposed to throw an ExecutionException");
        } catch (ExecutionException expected) {
          Assert.assertSame(expectedCause, expected.getCause());
        }
      }
    
      public void assertTimeout() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri May 12 18:12:42 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java

            testSids = new jcifs.SID[] { mockSid };
    
            // Act & Assert - Constructor accepts null, no exception thrown
            assertDoesNotThrow(() -> {
                new MsrpcLookupSids(null, testSids);
            });
        }
    
        @Test
        void constructor_shouldThrowExceptionWithNullSids() {
            // Act & Assert - Null SID array causes NPE when accessing length
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  9. clause/insert_test.go

    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{clause.Insert{}},
    			"INSERT INTO `users`", nil,
    		},
    		{
    			[]clause.Interface{clause.Insert{Modifier: "LOW_PRIORITY"}},
    			"INSERT LOW_PRIORITY INTO `users`", nil,
    		},
    		{
    			[]clause.Interface{clause.Insert{Table: clause.Table{Name: "products"}, Modifier: "LOW_PRIORITY"}},
    			"INSERT LOW_PRIORITY INTO `products`", nil,
    		},
    	}
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Jun 02 01:18:01 UTC 2020
    - 737 bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java

        void testConstructor() {
            // Act
            TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, TEST_DATA, TEST_OFFSET, TEST_LENGTH);
    
            // Assert
            assertNotNull(trans);
            assertEquals(0, trans.maxParameterCount);
            assertEquals(0xFFFF, trans.maxDataCount);
            assertEquals(0x00, trans.maxSetupCount);
            assertEquals(2, trans.setupCount);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
Back to top