- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for testGetPtype (0.05 sec)
-
src/test/java/jcifs/dcerpc/DcerpcMessageTest.java
} } @Nested @DisplayName("Getter Tests") class GetterTests { @Test @DisplayName("getPtype should return correct packet type") void testGetPtype() { message.ptype = DcerpcConstants.RPC_PT_REQUEST; assertEquals(DcerpcConstants.RPC_PT_REQUEST, message.getPtype()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java
assertEquals(netName, instance.getName()); } /** * Test of getType method, of class SmbShareInfo. */ @Test void testGetType() { // Test for TYPE_PRINTER SmbShareInfo printerShare = new SmbShareInfo("PRINTER", 1, "A printer"); assertEquals(SmbFile.TYPE_PRINTER, printerShare.getType()); // Test for TYPE_NAMED_PIPE
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
assertFalse(locator("smb://server/share/").isIPC()); } @Test @DisplayName("Type detection covers filesystem/share/IPC/workgroup/server") void testGetType() throws Exception { // Filesystem when there is a path beyond share assertEquals(SmbConstants.TYPE_FILESYSTEM, locator("smb://server/share/path").getType()); // Named pipe for IPC$ root
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceTest.java
} } @Nested @DisplayName("Resource Type Tests") class ResourceTypeTests { @Test @DisplayName("getType should return valid SMB resource type") void testGetType() throws CIFSException { // Given int expectedType = 1; // Assuming TYPE_FILESYSTEM when(mockResource.getType()).thenReturn(expectedType); // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java
// Verify assertEquals("testfile.txt", fileBothDirectoryInfo.getName()); } @Test @DisplayName("Test getType returns TYPE_FILESYSTEM") void testGetType() { assertEquals(SmbConstants.TYPE_FILESYSTEM, fileBothDirectoryInfo.getType()); } @Test @DisplayName("Test getFileIndex returns correct value")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java
"Should throw exception for ACE count > 4096"); } @Test @DisplayName("Test getType returns correct value") void testGetType() throws SMBProtocolDecodingException { // Prepare buffer with specific type value testBuffer[0] = 0x01; // revision testBuffer[1] = 0x00; // padding testBuffer[2] = 0x04; // type low byte
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/MediaTypeTest.java
public void testCreateVideoType() { MediaType newType = MediaType.createVideoType("yams"); assertEquals("video", newType.type()); assertEquals("yams", newType.subtype()); } public void testGetType() { assertEquals("text", MediaType.parse("text/plain").type()); assertEquals("application", MediaType.parse("application/atom+xml; charset=utf-8").type()); } public void testGetSubtype() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
public void testGetClass() { TypeToken<List> token = TypeToken.of(List.class); assertEquals(new TypeToken<List>() {}, token); } public void testGetType() { TypeToken<?> t = TypeToken.of(StringList.class.getGenericInterfaces()[0]); assertEquals(new TypeToken<List<String>>() {}, t); } public void testNonStaticLocalClass() { class Local<T> {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
public void testGetClass() { TypeToken<List> token = TypeToken.of(List.class); assertEquals(new TypeToken<List>() {}, token); } public void testGetType() { TypeToken<?> t = TypeToken.of(StringList.class.getGenericInterfaces()[0]); assertEquals(new TypeToken<List<String>>() {}, t); } public void testNonStaticLocalClass() { class Local<T> {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0)