- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,681 for void (0.03 sec)
-
src/test/java/jcifs/util/transport/TransportTest.java
} // Test control methods public void setState(int state) { this.state = state; } public void setPeekedKey(Long key) { this.peekedKey = key; } public void setSendException(IOException e) { this.sendException = e; } public void setRecvException(IOException e) { this.recvException = e;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java
public class DictionaryExpiredExceptionTest extends UnitFessTestCase { public void test_constructor() { // Test default constructor DictionaryExpiredException exception = new DictionaryExpiredException(); assertNotNull(exception); assertNull(exception.getMessage()); assertNull(exception.getCause()); } public void test_instanceOf() { // Test that exception is instance of RuntimeException
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.2K bytes - Viewed (0) -
src/test/java/jcifs/http/HandlerTest.java
handlers.put("https", httpsHandler); } @Test void testGetDefaultPort() { // This test verifies that the handler returns the correct default HTTP port. assertEquals(Handler.DEFAULT_HTTP_PORT, handler.getDefaultPort(), "Default port should be 80 for HTTP."); } @Test void testOpenConnection_HttpProtocol_ReturnsNtlmHttpURLConnection() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
@BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getNetbiosScope()).thenReturn(null); // Configure OEM encoding to avoid NullPointerException when(mockConfig.getOemEncoding()).thenReturn("UTF-8"); } @Test @DisplayName("Constructor with Configuration only should create empty Name instances") void testConstructorWithConfigOnly() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/util/ServerResponseValidatorTest.java
@BeforeEach public void setUp() { validator = new ServerResponseValidator(); } @Test public void testValidBuffer() throws Exception { byte[] buffer = new byte[1024]; validator.validateBuffer(buffer, 100, 2048); // Should pass without exception } @Test public void testNullBuffer() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/netbios/UniAddressTest.java
void shouldReturnTrueForValidIpAddresses(String ip) { assertTrue(UniAddress.isDotQuadIP(ip)); } @ParameterizedTest(name = "should return false for invalid IP address or hostname: {0}") @ValueSource(strings = { "192.168.1", "hostname", "1.2.3.4.5", "192.168.1.1a", "a.b.c.d" }) void shouldReturnFalseForInvalidIpAddressesOrHostnames(String input) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/QueryHelperTest.java
// Additional test methods for improved coverage public void test_getSortPrefix() { assertEquals("sort:", queryHelper.getSortPrefix()); } public void test_setSortPrefix() { queryHelper.setSortPrefix("customSort:"); assertEquals("customSort:", queryHelper.getSortPrefix()); } public void test_getAdditionalQuery() { assertNull(queryHelper.getAdditionalQuery());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 52.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
@Test void testGetCanonicalPath() { // Act & Assert assertEquals("smb://localhost/share/file.txt", smbFile.getCanonicalPath()); } @Test void testGetServer() { // Act & Assert assertEquals("localhost", smbFile.getServer()); } @Test void testGetShare() { // Act & Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
} public void setBytesWritten(int bytes) { this.bytesWritten = bytes; } public void setBytesRead(int bytes) { this.bytesRead = bytes; } public void setThrowOnRead(boolean throwOnRead) { this.throwOnRead = throwOnRead; } } @BeforeEach void setUp() { MockitoAnnotations.openMocks(this);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationResponseTest.java
@Mock private CommonServerMessageBlock serverMessageBlock; @Mock private Response response; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Test isValid returns true for valid negotiation") void testIsValidReturnsTrue() { // Arrange when(negotiationResponse.isValid(cifsContext, negotiationRequest)).thenReturn(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.6K bytes - Viewed (0)