Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 270 for thenReturn (0.04 sec)

  1. impl/maven-core/src/test/java/org/apache/maven/classrealm/DefaultClassRealmManagerTest.java

            when(artifact.getFile()).thenReturn(new File(new File("local/repository"), "some/path"));
            when(artifact.getGroupId()).thenReturn("group1");
            when(artifact.getArtifactId()).thenReturn("artifact1");
            when(artifact.getExtension()).thenReturn("ext");
            when(artifact.getClassifier()).thenReturn("classifier1");
            when(artifact.getVersion()).thenReturn("1");
            artifacts.add(artifact);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DfsImplTest.java

            // Set up mock behaviors
            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockContext.getCredentials()).thenReturn(mockCredentials);
            when(mockContext.getTransportPool()).thenReturn(mockTransportPool);
            when(mockConfig.getDfsTtl()).thenReturn(300L);
    
            // Mock transport to throw IOException - simulating connection failure
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/FileEntryTest.java

            FileEntry mock = mock(FileEntry.class);
            when(mock.getName()).thenReturn("test.txt");
            when(mock.getType()).thenReturn(1);
            when(mock.getAttributes()).thenReturn(128);
            when(mock.createTime()).thenReturn(1_500L);
            when(mock.lastModified()).thenReturn(1_800L);
            when(mock.length()).thenReturn(100L);
    
            assertEquals("test.txt", mock.getName());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/NotifyResponseTest.java

            // Setup mock notify information
            when(mockNotifyInfo1.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_ADDED);
            when(mockNotifyInfo1.getFileName()).thenReturn("test1.txt");
    
            when(mockNotifyInfo2.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_MODIFIED);
            when(mockNotifyInfo2.getFileName()).thenReturn("test2.txt");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

                when(mockBuffer.dec_ndr_small()).thenReturn(5)
                        .thenReturn(0)
                        .thenReturn(DcerpcConstants.RPC_PT_RESPONSE)
                        .thenReturn(DcerpcConstants.RPC_C_PF_BROADCAST);
                when(mockBuffer.dec_ndr_long()).thenReturn(0x00000010);
                when(mockBuffer.dec_ndr_short()).thenReturn(100).thenReturn(1); // Non-zero auth_value length
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

            doNothing().when(messageBlock).reset();
    
            when(messageBlock.getMid()).thenReturn(mid);
            when(messageBlock.getCommand()).thenReturn(command);
            when(messageBlock.getDigest()).thenReturn(digest);
            when(messageBlock.getResponse()).thenReturn(response);
    
            // When - simulate a typical usage sequence
            messageBlock.setMid(mid);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/rpcTest.java

                // Mock the NdrBuffer responses for decoding
                when(mockNdrBuffer.dec_ndr_long()).thenReturn(0x12345678);
                when(mockNdrBuffer.dec_ndr_short()).thenReturn((int) (short) 0x9ABC, (int) (short) 0xDEF0);
                when(mockNdrBuffer.dec_ndr_small()).thenReturn((int) (byte) 0x11, (int) (byte) 0x22, // clock seq bytes
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/test/java/org/apache/maven/cli/event/ExecutionEventLoggerTest.java

            when(project.getGroupId()).thenReturn("org.apache.maven");
            when(project.getArtifactId()).thenReturn("maven-embedder");
            when(project.getPackaging()).thenReturn("jar");
            when(project.getName()).thenReturn("Apache Maven Embedder");
            when(project.getVersion()).thenReturn("3.5.4-SNAPSHOT");
            when(project.getFile()).thenReturn(new File(basedir, "maven-embedder/pom.xml"));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Dec 01 19:41:22 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/DfsResolverTest.java

            when(mockConfig.isDfsDisabled()).thenReturn(false);
            when(mockContext.getCredentials()).thenReturn(mockCredentials);
            when(mockCredentials.getUserDomain()).thenReturn(null);
            assertFalse(dfsResolver.isTrustedDomain(mockContext, "anyDomain"));
        }
    
        @Test
        void testIsTrustedDomain_EmptyUserDomain() throws CIFSException {
            when(mockConfig.isDfsDisabled()).thenReturn(false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            when(mockFile1.getName()).thenReturn("file1.txt");
            when(mockFile1.length()).thenReturn(1024L);
            when(mockFile1.lastModified()).thenReturn(1000L);
            when(mockFile1.isDirectory()).thenReturn(false);
            when(mockFile1.getAttributes()).thenReturn(0x20);
            when(mockFile1.createTime()).thenReturn(500L);
            when(mockFile1.lastAccess()).thenReturn(800L);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
Back to top