Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for invokes (2.67 sec)

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

        @Mock
        private Request<CommonServerMessageBlockResponse> request;
    
        @Mock
        private CommonServerMessageBlockResponse response;
    
        @Test
        @DisplayName("connectLogon invokes underlying implementation")
        void connectLogon_invocation_isForwarded() throws Exception {
            // Act
            tree.connectLogon(context);
    
            // Assert - verify interaction with dependency
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

            NdrShort decoded = new NdrShort(0);
            decoded.decode(buf);
            assertEquals(123, decoded.value, "decoded value should equal original");
        }
    
        /**
         * Verify that encode invokes NdrBuffer.enc_ndr_short via a mocked
         * (spied) buffer.
         */
        @Test
        void encodeWithSpiedBufferCallsEncMethod() throws NdrException {
            NdrShort ns = new NdrShort(42);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/MethodDesc.java

        /**
         * Invokes the method and returns its result.
         *
         * @param <T>
         *            the return type of the method
         * @param target
         *            the target object. Must not be {@literal null}
         * @param args
         *            the method arguments
         * @return the result of the method
         */
        <T> T invoke(Object target, Object... args);
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

        }
    
        @Test
        @DisplayName("finalize() invokes checkRelease exactly once")
        void finalize_invokes_checkRelease() throws Throwable {
            // Arrange: spy to verify internal interaction with checkRelease()
            CIFSContext ctx = mock(CIFSContext.class);
            SmbTreeConnectionTrace trace = Mockito.spy(new SmbTreeConnectionTrace(ctx));
    
            // Act: directly invoke finalize to simulate GC finalization path
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/opensearch/common/ImplementedInvokerAssistant.java

            return null;
        }
    
        /**
         * Assists client invoke names for DBFlute behavior invocation.
         *
         * @return array of default client invoke names
         */
        @Override
        public String[] assistClientInvokeNames() {
            return DEFAULT_CLIENT_INVOKE_NAMES;
        }
    
        /**
         * Assists bypass invoke names for DBFlute behavior invocation.
         *
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

                    Arguments.of(-1, -2L, -3L, -4L, -5L) // negative values
            );
        }
    
        // --- Mockito interaction: verify each getter is invoked and returns stubbed values ---
        @Test
        void mockitoMock_verifiesGetterInteractions() {
            // Arrange: mock and stub each getter with distinct values
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java

                java.lang.reflect.Method method =
                        MultiChannelManager.class.getDeclaredMethod("createChannelTransport", InetAddress.class, InetAddress.class);
                method.setAccessible(true);
                method.invoke(multiChannelManager, null, null);
            });
    
            // Check that the root cause is CIFSException
            assertTrue(exception instanceof java.lang.reflect.InvocationTargetException);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/https/HandlerTest.java

                // Then
                assertTrue(Modifier.isProtected(method.getModifiers()));
                method.setAccessible(true); // Required to invoke protected method
                assertEquals(443, method.invoke(testHandler));
            }
    
            @Test
            @DisplayName("Should maintain inheritance hierarchy")
            void testInheritanceHierarchy() {
                // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java

            if (pcd == null) {
                return null;
            }
            return pcd.getRawClass();
        }
    
        @Override
        public <T> T invoke(final Object target, final Object... args) {
            assertArgumentNotNull("target", target);
    
            return MethodUtil.invoke(method, target, args);
        }
    
        @Override
        public <T> T invokeStatic(final Object... args) {
            if (!isStatic()) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java

                    }
                };
                assertThrows(SmbException.class, () -\u003e throwOnNull.accept(null));
            }
        }
    
        @Nested
        @DisplayName("Interaction – verify that file methods are invoked")
        class Interaction {
            @Test
            void verifiesPathInvocation() throws Exception {
                SmbFile mockFile = mock(SmbFile.class);
                when(mockFile.getPath()).thenReturn("/share/dir/");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top