- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 106 for TestConstructor (0.08 seconds)
-
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
} /** * Runs {@link #testConstructor} on every constructor in class {@code c} that has at least {@code * minimalVisibility}. */ public void testConstructors(Class<?> c, Visibility minimalVisibility) { for (Constructor<?> constructor : c.getDeclaredConstructors()) { if (minimalVisibility.isVisible(constructor) && !isIgnored(constructor)) { testConstructor(constructor); } } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 24.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java
when(mockAuth.getDomain()).thenReturn("TESTDOMAIN"); setupAndX = new SmbComSessionSetupAndX(mockSession, mockAndx, mockAuth); } @Test void testConstructor() { assertNotNull(setupAndX); assertEquals(ServerMessageBlock.SMB_COM_SESSION_SETUP_ANDX, setupAndX.command); assertEquals(mockSession, setupAndX.session);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java
} /** * Test the constructor of SmbComNegotiate. * It should initialize the command and flags2 with default values. */ @Test void testConstructor() { // Verify that the command is set to SMB_COM_NEGOTIATE assertEquals(ServerMessageBlock.SMB_COM_NEGOTIATE, smbComNegotiate.command, "Constructor should set the command to SMB_COM_NEGOTIATE.");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java
} /** * Test for the constructor of {@link Trans2SetFileInformationResponse}. * It should initialize the subCommand correctly. */ @Test void testConstructor() { // Verify that the subCommand is set to TRANS2_SET_FILE_INFORMATION assertEquals(SmbComTransaction.TRANS2_SET_FILE_INFORMATION, response.subCommand,Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java
response = new TransTransactNamedPipeResponse(mockPipe); } /** * Tests the constructor of {@link TransTransactNamedPipeResponse}. */ @Test void testConstructor() { // The constructor is called in setUp(), so we just verify the result. assertNotNull(response, "The response object should not be null."); } /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java
when(mockConfig.getChannelHealthCheckInterval()).thenReturn(10); channelManager = new ChannelManager(mockContext, mockSession); } @Test void testConstructor() { assertNotNull(channelManager); assertFalse(channelManager.isUseMultiChannel()); assertEquals(0, channelManager.getChannels().size()); assertNotNull(channelManager.getLoadBalancer());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 7.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfoTest.java
@BeforeEach void setUp() throws UnknownHostException { testAddress = InetAddress.getByName("192.168.1.100"); loopbackAddress = InetAddress.getLoopbackAddress(); } @Test void testConstructor() { NetworkInterfaceInfo info = new NetworkInterfaceInfo(testAddress, 1000); assertEquals(testAddress, info.getAddress()); assertEquals(1000, info.getLinkSpeed());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 4.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/DosFileFilterTest.java
* The wildcard parameter is stored but its filtering logic is handled server-side, * so we only verify its acceptance here. */ @Test void testConstructor() { // The constructor should not throw any exceptions with valid inputs. new DosFileFilter("*.*", SmbFile.ATTR_ARCHIVE); new DosFileFilter("?", SmbFile.ATTR_DIRECTORY);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.2K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NbtExceptionTest.java
*/ @Test @DisplayName("NbtException constructor should correctly set error class, error code, and message") void testConstructor() { int errorClass = NbtException.ERR_NAM_SRVC; int errorCode = NbtException.FMT_ERR; NbtException exception = new NbtException(errorClass, errorCode);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java
response = new SmbComQueryInformationResponse(serverTimeZoneOffset); } /** * Test of constructor, of class SmbComQueryInformationResponse. */ @Test public void testConstructor() { // The constructor sets the command and serverTimeZoneOffset. // We can't directly access serverTimeZoneOffset, but we can verify its effect.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.5K bytes - Click Count (0)