- Sort Score
- Result 10 results
- Languages All
Results 281 - 290 of 1,320 for helper (0.04 sec)
-
src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java
return nextBlock; } @Override public void setNext(ServerMessageBlock2 next) { this.nextBlock = next; } // Helper methods to manipulate parent's private fields via reflection or protected methods public void setStatusForTest(int status) { // Workaround: Use reflection to set private status field try {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/UniAddressTest.java
*/ @ExtendWith(MockitoExtension.class) class UniAddressTest { /* --------------------------------------------------------------------- * 0. Helper methods for parameterised tests * --------------------------------------------------------------------- */ private static Stream<Arguments> hostnamesProvider() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/FessSystemExceptionTest.java
} catch (FessSystemException e) { assertEquals(expectedMessage, e.getMessage()); assertEquals(expectedCause, e.getCause()); } } // Test helper class to access protected constructor private static class TestFessSystemException extends FessSystemException { public TestFessSystemException(String message, boolean enableSuppression, boolean writableStackTrace) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/dtyp/SecurityInfoTest.java
assertTrue(value <= 0xFFFF, "Constant " + field.getName() + " value seems unusually large"); } } } /** * Helper method to check if a number is a power of two */ private boolean isPowerOfTwo(int n) { return n > 0 && (n & (n - 1)) == 0; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java
import java.lang.reflect.Field; import org.junit.jupiter.api.Test; /** * Tests for SmbComWrite command - SMB write operations */ public class SmbComWriteTest { /** * Helper method to get private field value using reflection */ private Object getFieldValue(Object obj, String fieldName) { try { Field field = SmbComWrite.class.getDeclaredField(fieldName);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbSessionTest.java
public class SmbSessionTest { @Mock UniAddress addr; @Mock InetAddress inet; NtlmPasswordAuthentication auth; @Mock SmbTransport transport; // static helper that returns the mocked transport. The real class // performs several other operations, but for the purpose of the test // we intercept the factory call. private MockedStatic<SmbTransport> smbtStatic;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
int written = (buffer[0] & 0xFF) | ((buffer[1] & 0xFF) << 8); int expected = level & 0xFFFF; assertEquals(expected, written); } // Helper method to extract string from buffer private String extractStringFromBuffer(byte[] buffer, int offset, int maxLen) { int end = offset; while (end < offset + maxLen && buffer[end] != 0) { end++;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/RobotsTxtHelperTest.java
assertTrue(robotsTxt.allows("/private/index.html", userAgent)); assertTrue(robotsTxt.allows("/help/", userAgent)); assertTrue(robotsTxt.allows("/help.html", userAgent)); assertTrue(robotsTxt.allows("/help/faq.html", userAgent)); assertTrue(robotsTxt.allows("/foo/bar/", userAgent)); assertTrue(robotsTxt.allows("/foo/bar/index.html", userAgent));
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 5.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java
assertEquals(15, response.dataCount); assertEquals(40, response.dataOffset); assertEquals(0, response.dataDisplacement); assertEquals(1, response.setupCount); } // Helper method to write a 4-byte integer to a byte array. private void writeInt4(int val, byte[] dst, int dstIndex) { dst[dstIndex] = (byte) val; dst[dstIndex + 1] = (byte) (val >> 8);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/PluginHelper.java
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.helper; import static org.codelibs.core.stream.StreamUtil.split; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream;
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 24.9K bytes - Viewed (0)