- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for testList (0.24 sec)
-
src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java
final FieldDesc aaa = beanDesc.getFieldDesc("aaa"); aaa.setStaticFieldValue(String.class); } /** * @throws Exception */ @Test public void testList() throws Exception { final BeanDesc beanDesc = new BeanDescImpl(MyBean.class); final FieldDesc hoge = beanDesc.getFieldDesc("list");
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/GenericsUtilTest.java
assertThat(GenericsUtil.getGenericParameter(t2, 0), is(sameClass(String.class))); } /** * @throws Exception */ public void testList() throws Exception { final Method m1 = ListType.class.getMethod("listOfString"); final Type t1 = m1.getGenericReturnType(); assertThat(GenericsUtil.isTypeOf(t1, List.class), is(true));
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/NameServiceClientTest.java
} @Test void testGetNbtAllByAddress_StringIntString() throws UnknownHostException { // Arrange String host = "testHost"; int type = 0x20; String scope = "testScope"; NetbiosAddress[] expectedAddresses = { mock(NetbiosAddress.class) };Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/LmhostsTest.java
writer.write("192.168.1.100 TESTHOST\n"); writer.write("10.0.0.1 SERVER01\n"); } when(mockConfig.getLmHostsFileName()).thenReturn(lmhostsFile.getAbsolutePath()); // Test first host NbtAddress result = lmhosts.getByName("TESTHOST", mockContext); assertNotNull(result); assertEquals("TESTHOST", result.getHostName()); // Test second host
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
/** * Test basic session lifecycle management */ @Test @Timeout(5) public void testSessionLifecycle() throws Exception { SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport); // Test initial state - session starts with usage count > 0 due to transport.acquire() assertTrue(session.isInUse(), "New session should be in use due to transport acquisition");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
*/ @Test public void testConcurrentTreeOperationsThreadSafe() throws Exception { // Given SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport); int threadCount = 10; int opsPerThread = 100; ExecutorService executor = Executors.newFixedThreadPool(threadCount);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NbtAddressTest.java
// Test the constructor with minimal parameters mockName = new Name(mockConfig, "TESTHOST", 0x20, null); NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE); assertNotNull(nbtAddress); assertEquals("TESTHOST", nbtAddress.getHostName()); assertArrayEquals(new byte[] { (byte) 192, (byte) 168, (byte) 1, (byte) 1 }, nbtAddress.getAddress());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbTransportTest.java
verify(smbTransport).getRemoteAddress(); // Verify that the method was called } @Test void testGetRemoteHostName() { // Arrange String hostName = "testHost"; when(smbTransport.getRemoteHostName()).thenReturn(hostName); // Act String result = smbTransport.getRemoteHostName(); // Assert
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/config/PropertyConfigurationTest.java
props.setProperty("jcifs.smb.client.password", "testpass"); props.setProperty("jcifs.smb.client.domain", "testdomain"); props.setProperty("jcifs.netbios.hostname", "testhost"); props.setProperty("jcifs.netbios.scope", ""); props.setProperty("jcifs.smb.client.connTimeout", "35000"); props.setProperty("jcifs.smb.client.soTimeout", "35000");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
when(mockConfig.getResolveOrder()).thenReturn(Arrays.asList(ResolverType.RESOLVER_DNS)); // Only DNS, no broadcast when(mockConfig.getNetbiosHostname()).thenReturn("TESTHOST"); when(mockConfig.getNetbiosScope()).thenReturn(null); when(mockConfig.getNetbiosCachePolicy()).thenReturn(30); // Short cache when(mockConfig.getWinsServers()).thenReturn(new InetAddress[0]);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0)