- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for Dummy (0.87 sec)
-
src/test/java/jcifs/smb1/UniAddressTest.java
void getAddressReturnsOriginalObject() { InetAddress dummy = mock(InetAddress.class); UniAddress ua = new UniAddress(dummy); assertSame(dummy, ua.getAddress(), "getAddress should return the wrapped address"); } @Test void getHostNameDelegatesToWrappedInetAddress() { InetAddress dummy = mock(InetAddress.class); when(dummy.getHostName()).thenReturn("host.example.com");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/normalizer/AnalyzerNormalizer.java
* @param text the text to normalize * @param field the field to use for normalization * @param dummy additional parameters (not used) * @return the normalized text */ @Override public String normalize(final String text, final String field, final String... dummy) { if (text == null) { return null; }Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 17 14:23:01 UTC 2025 - 4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/api/WebApiResponse.java
} /** * Gets a PrintWriter for writing response content. * Returns a dummy PrintWriter that writes to a ByteArrayOutputStream. * * @return A PrintWriter for response output * @throws IOException If an I/O error occurs */ @Override public PrintWriter getWriter() throws IOException { // dummy stream return new PrintWriter(new ByteArrayOutputStream()); }Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java
/** Lightweight concrete implementation used only for testing. */ private static class Dummy extends NtlmMessage { @Override public byte[] toByteArray() { return new byte[0]; } } private Dummy msg; @BeforeEach void setUp() { msg = new Dummy(); } // ---------------- Flag manipulation tests ----------------- @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java
Key key = new KerberosKey(null, secretKey.getEncoded(), KerberosConstants.DES_ENC_TYPE, 0); byte[] data = new byte[32]; // Dummy data, must be multiple of 8 byte[] decrypted = KerberosEncData.decrypt(data, key, KerberosConstants.DES_ENC_TYPE); assertNotNull(decrypted); // With dummy data, we can't verify the content, just that it decrypts without error // and returns a result of the expected size.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNtTransactionTest.java
int writeSetupWireFormat(byte[] dst, int dstIndex) { // Dummy implementation for testing return 0; } @Override int readSetupWireFormat(byte[] buffer, int bufferIndex, int len) { return 0; } @Override int writeParametersWireFormat(byte[] dst, int dstIndex) { // Dummy implementation for testing return 0; }
Registered: 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/org/codelibs/curl/io/IOIntegrationTest.java
return new ByteArrayInputStream(new byte[100]); // dummy payload } } @Test public void test_TmpFileHasBeenDeletedAfterResponseWasClosed() throws Exception { // ## Arrange ## CurlRequest req = new MockCurlRequest(Curl.Method.POST, "http://dummy"); req.threshold(0); // always create tmp file // ## Act ##
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Sat May 10 01:44:04 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceLocatorTest.java
throw new IllegalArgumentException("URL string must not be null"); } if (!urlStr.startsWith("smb://")) { throw new MalformedURLException("Only SMB URLs are supported in the dummy implementation"); } this.urlStr = urlStr; // Parse SMB URL manually String remaining = urlStr.substring(6); // Remove "smb://"
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java
} @Test void testDecode() throws NdrException { // Test the decode method long decodedValue = 112233445566778L; NdrHyper ndrHyper = new NdrHyper(0); // Initialize with a dummy value // Configure the mock NdrBuffer to return a specific value when dec_ndr_hyper is called when(mockNdrBuffer.dec_ndr_hyper()).thenReturn(decodedValue);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/UnicodeStringTest.java
assertNull(unicodeStringFalse.buffer, "Buffer should be null for empty string"); } @Test void testConstructorWithRpcUnicodeStringAndZterm() { // Create a dummy rpc.unicode_string rpc.unicode_string dummyRus = new rpc.unicode_string(); dummyRus.length = 10; dummyRus.maximum_length = 20; dummyRus.buffer = new short[] { 'H', 'e', 'l', 'l', 'o' };
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0)