- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 185 for locked (0.5 sec)
-
src/main/java/jcifs/smb1/netbios/Lmhosts.java
ioe.printStackTrace(log); continue; } /* An include was loaded successfully. We can skip * all other includes up to the #END_ALTERNATE tag. */ alt--;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationRequestTest.java
// Then assertTrue(result, "Custom implementation should return true when initialized with true"); } @Test @DisplayName("Test interface can be mocked") void testInterfaceCanBeMocked() { // Given SmbNegotiationRequest mockRequest = mock(SmbNegotiationRequest.class); // ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
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); NdrBuffer spy = spy(new NdrBuffer(new byte[10], 0));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/main/java/jcifs/netbios/Lmhosts.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.3K bytes - Viewed (0) -
src/test/java/jcifs/SmbFileHandleTest.java
@Test void testGetTree() { when(smbFileHandle.getTree()).thenReturn(smbTreeHandle); SmbTreeHandle result = smbFileHandle.getTree(); assertEquals(smbTreeHandle, result, "getTree should return the mocked SmbTreeHandle."); verify(smbFileHandle, times(1)).getTree(); } /** * Test isValid() when the handle is valid. */ @Test void testIsValid_whenValid() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacTest.java
// Should indicate missing required buffers assertNotNull(e.getMessage()); } @Test void testMockedSuccessfulParsing() throws PACDecodingException, IOException { // Test with mocked PacMac to avoid complex signature calculation try (MockedStatic<PacMac> pacMacMock = mockStatic(PacMac.class)) { // Mock the calculateMac method to return a valid checksumRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
SmbTreeHandleImpl t1 = h.getTree(); SmbTreeHandleImpl t2 = h.getTree(); assertSame(tree, t1, "Expected same mocked tree"); assertSame(tree, t2, "Expected same mocked tree"); // acquire is called once in ctor + once per getTree() call verify(tree, times(3)).acquire(); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java
assertNotNull(ex.toString(), "toString should be non-null"); ex.getMessage(); // don't assert content to avoid implementation assumptions // Verify no interactions happened with the mocked cause during construction/access verifyNoInteractions(mockCause); } @Test @DisplayName("Cause-only constructor with null: null cause maintained") void causeOnlyConstructor_acceptsNull() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImpl.java
* <li>Configure whether to use the filename for MIME type detection when the stream is octet-stream.</li> * </ul> * * <p> * The MIME type detection is based on the {@code tika-mimetypes.xml} resource, which is loaded during initialization. * </p> * * <p> * Usage: * </p> * <pre> * MimeTypeHelperImpl mimeTypeHelper = new MimeTypeHelperImpl(); * String contentType = mimeTypeHelper.getContentType(inputStream, filename);
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Nov 23 12:19:14 UTC 2025 - 6.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/stats/ApiAdminStatsAction.java
/** * Default constructor. */ public JvmClassesObj() { // Default constructor } /** Currently loaded classes */ public long loaded; /** Total classes loaded since JVM start */ public long total_loaded; /** Total classes unloaded */ public long unloaded; } /**Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 19.7K bytes - Viewed (0)