- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 643 for getName (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java
checkThreadPoolName(thread3, 1); assertThat(thread2.getName().substring(0, thread.getName().lastIndexOf('-'))) .isNotEqualTo(thread3.getName().substring(0, thread.getName().lastIndexOf('-'))); } private static void checkThreadPoolName(Thread thread, int threadId) { assertThat(thread.getName()).matches("^pool-\\d+-thread-" + threadId + "$"); } public void testNameFormatWithPercentS_custom() {
Created: 2025-12-26 12:43 - Last Modified: 2025-12-11 20:07 - 7.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java
checkThreadPoolName(thread3, 1); assertThat(thread2.getName().substring(0, thread.getName().lastIndexOf('-'))) .isNotEqualTo(thread3.getName().substring(0, thread.getName().lastIndexOf('-'))); } private static void checkThreadPoolName(Thread thread, int threadId) { assertThat(thread.getName()).matches("^pool-\\d+-thread-" + threadId + "$"); } public void testNameFormatWithPercentS_custom() {
Created: 2025-12-26 12:43 - Last Modified: 2025-12-11 20:07 - 7.6K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/TraverserUtilTest.java
assertThat(set.size() > 0, is(true)); assertThat(set.contains(DummyTest.class.getName()), is(true)); assertThat(set.contains(TraverserUtilTest.class.getName()), is(true)); assertThat(set.contains(TestCase.class.getName()), is(not(true))); } /** * @throws Exception */ @Test public void testFromClass_JarFile() throws Exception {
Created: 2025-12-20 08:55 - Last Modified: 2025-05-10 01:32 - 6.4K bytes - Click Count (0) -
src/test/java/jcifs/NetbiosNameTest.java
when(mockNetbiosName.getName()).thenReturn(upperCase); assertEquals(upperCase, mockNetbiosName.getName()); when(mockNetbiosName.getName()).thenReturn(lowerCase); assertEquals(lowerCase, mockNetbiosName.getName()); when(mockNetbiosName.getName()).thenReturn(mixedCase); assertEquals(mixedCase, mockNetbiosName.getName()); } @Test
Created: 2025-12-20 13:44 - Last Modified: 2025-08-14 05:31 - 8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
verify(request, times(1)).getName(); } @Test @DisplayName("getName() should handle null return value") void testGetNameWithNull() { CreateContextRequest request = mock(CreateContextRequest.class); when(request.getName()).thenReturn(null); byte[] actualName = request.getName(); assertNull(actualName); } @Test
Created: 2025-12-20 13:44 - Last Modified: 2025-08-14 05:31 - 24.9K bytes - Click Count (0) -
compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/Parameter.java
Created: 2025-12-28 03:35 - Last Modified: 2025-06-06 14:28 - 5.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java
assertEquals(SMBProtocolDowngradeException.class.getName(), ex.toString()); } else if (message.isEmpty()) { // Throwable.toString prints class + ": " (with space) even for empty string assertEquals(SMBProtocolDowngradeException.class.getName() + ": ", ex.toString()); } else { assertEquals(SMBProtocolDowngradeException.class.getName() + ": " + message, ex.toString()); } }
Created: 2025-12-20 13:44 - Last Modified: 2025-08-14 05:31 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java
assertEquals("DiskShare", entries[0].getName()); assertEquals(8, entries[0].getType()); // TYPE_SHARE // Verify printer share assertEquals("PrinterShare", entries[1].getName()); assertEquals(32, entries[1].getType()); // TYPE_PRINTER (0x20) // Verify named pipe assertEquals("PipeShare", entries[2].getName());
Created: 2025-12-20 13:44 - Last Modified: 2025-08-14 05:31 - 8.1K bytes - Click Count (0) -
src/test/java/jcifs/MsrpcDfsRootEnumTest.java
assertEquals(entries2.length, entries3.length); for (int i = 0; i < entries1.length; i++) { assertEquals(entries1[i].getName(), entries2[i].getName()); assertEquals(entries2[i].getName(), entries3[i].getName()); assertEquals(entries1[i].getType(), entries2[i].getType()); assertEquals(entries2[i].getType(), entries3[i].getType()); } }
Created: 2025-12-20 13:44 - Last Modified: 2025-08-14 05:31 - 12.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/CallablesTest.java
String oldName = Thread.currentThread().getName(); Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName"); Callable<@Nullable Void> callable = new Callable<@Nullable Void>() { @Override public @Nullable Void call() throws Exception { assertEquals(Thread.currentThread().getName(), newName.get()); return null; } };
Created: 2025-12-26 12:43 - Last Modified: 2025-10-28 16:03 - 4.4K bytes - Click Count (0)