Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for mockConstruction (0.1 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/pac/kerberos/KerberosCredentialsTest.java

         *
         * @throws LoginException if login fails.
         */
        @Test
        void testConstructor_Success() throws LoginException {
            try (MockedConstruction<LoginContext> mocked = Mockito.mockConstruction(LoginContext.class, (mock, context) -> {
                when(mock.getSubject()).thenReturn(subject);
                doNothing().when(mock).login();
            })) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7K bytes
    - Click Count (0)
  2. src/test/java/jcifs/netbios/LmhostsTest.java

            // Mock SmbFileInputStream to simulate include file
            try (MockedConstruction<SmbFileInputStream> mockedConstruction =
                    Mockito.mockConstruction(SmbFileInputStream.class, (mock, context) -> {
                        // Mock the read method to return simple content
                        byte[] includeContent = "192.168.1.200 INCLUDEHOST\n".getBytes();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.2K bytes
    - Click Count (0)
Back to Top