Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 190 for Successful (0.26 sec)

  1. src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java

        void testClose_Successful() throws IOException {
            // Test case: close() when opened and successful MsrpcSamrCloseHandle
            String server = "testServer";
            int access = 123;
    
            // Setup for successful constructor
            doNothing().when(mockHandle).sendrecv(any(MsrpcSamrConnect4.class));
    
            // Setup for successful close
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/job/PurgeDocJobTest.java

            RangeQueryBuilder rangeQuery = (RangeQueryBuilder) deleteQuery;
            assertEquals("expires", rangeQuery.fieldName());
            assertEquals("now", rangeQuery.to());
    
            // Assert result is empty when successful
            assertEquals("", result);
        }
    
        public void test_execute_withException() {
            // Create mock SearchEngineClient that throws exception
            searchEngineClient = new SearchEngineClient() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/ASN1UtilTest.java

    /**
     * Tests for the {@link ASN1Util} class.
     */
    class ASN1UtilTest {
    
        // --- as(Class, Object) ---
    
        @Test
        void testAs_Object_Success() throws PACDecodingException {
            // Test successful casting
            String expected = "test string";
            Object obj = expected;
            String result = ASN1Util.as(String.class, obj);
            assertSame(expected, result);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

            HandleGuid guid = new HandleGuid();
    
            // Create handle info with empty file ID (will be populated after successful create response)
            HandleInfo info = new HandleInfo(path, guid, new byte[16], type, timeout, leaseKey);
    
            lock.writeLock().lock();
            try {
                handles.put(path, info);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/NameQueryResponseTest.java

        @Test
        void readRDataWireFormat_shouldSetNbtAddress_whenAddressIsNonZero_groupNameFalse_nodeTypeZero()
                throws NoSuchFieldException, IllegalAccessException {
            // Prepare superclass fields for successful parsing
            setSuperclassFieldsForSuccessfulParsing();
    
            byte[] src = new byte[10];
            int srcIndex = 0;
    
            // Simulate groupName = false (0x00), nodeType = 0 (0x00) -> src[srcIndex] = 0x00
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

            when(locator.getType()).thenReturn(SmbConstants.TYPE_WORKGROUP);
            when(locator.getURL()).thenReturn(createSmbURL("smb://"));
    
            // Mock successful but empty response
            when(treeHandle.send(any(), any(), (RequestParam[]) any())).thenAnswer(invocation -> {
                // The response is the second argument
                Object response = invocation.getArgument(1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java

        }
    
        @Test
        void constructor_shouldOpenDomainSuccessfully() throws IOException {
            // Arrange
            int access = 0x01; // Example access value
            // Simulate successful RPC call
            doAnswer(invocation -> {
                MsrpcSamrOpenDomain rpc = invocation.getArgument(0);
                rpc.retval = 0; // Success
                return null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/witness/WitnessUnregisterResponse.java

        public WitnessUnregisterResponse() {
            // Default constructor
        }
    
        private int returnCode;
        private String error;
    
        /**
         * Checks if the unregistration was successful.
         *
         * @return true if successful
         */
        public boolean isSuccess() {
            return returnCode == 0;
        }
    
        /**
         * Gets a human-readable error description.
         *
         * @return the error description
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/witness/WitnessClientTest.java

        @Test
        void testUnregistration() throws Exception {
            // Setup successful registration
            WitnessRegisterResponse registerResponse = mock(WitnessRegisterResponse.class);
            lenient().when(registerResponse.isSuccess()).thenReturn(true);
            lenient().when(registerResponse.getRegistrationId()).thenReturn("test-reg-123");
    
            // Setup successful unregistration
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

         *
         * Current strategy is based on failure count. In the future, this could be enhanced to consider:
         * - Recent event frequency (successful notifications)
         * - Time since last successful notification
         * - Events per unit time for more adaptive behavior
         *
         * @param handle notification handle
         * @return polling interval in milliseconds
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
Back to top