- Sort Score
- Num 10 results
- Language All
Results 1051 - 1060 of 8,784 for KClass (0.06 seconds)
-
guava-tests/test/com/google/common/eventbus/EventBusTest.java
} public void testPrimitiveSubscribeFails() { class SubscribesToPrimitive { @Subscribe public void toInt(int i) {} } assertThrows(IllegalArgumentException.class, () -> bus.register(new SubscribesToPrimitive())); } /** Records thrown exception information. */ private static final class RecordingSubscriberExceptionHandler implements SubscriberExceptionHandler {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 11.6K bytes - Click Count (0) -
src/test/java/jcifs/util/StringsTest.java
@Test @DisplayName("Strings utility class should not be instantiable") void testUtilityClassNotInstantiable() { // Given - Strings is a utility class with private constructor // When & Then - verify constructor is private by reflection assertDoesNotThrow(() -> { java.lang.reflect.Constructor<Strings> constructor = Strings.class.getDeclaredConstructor();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java
@NullUnmarked @GwtIncompatible @J2ktIncompatible public class JdkFutureAdaptersTest extends TestCase { private static final String DATA1 = "data"; public void testListenInPoolThreadReturnsSameFuture() throws Exception { ListenableFuture<String> listenableFuture = immediateFuture(DATA1); assertThat(listenInPoolThread(listenableFuture)).isSameInstanceAs(listenableFuture); } private static class SingleCallListener implements Runnable {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 10K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java
} // TODO: replace with version in common.reflect if and when it's open-sourced private static <T> T newProxy(Class<T> interfaceType, InvocationHandler handler) { Object object = Proxy.newProxyInstance( interfaceType.getClassLoader(), new Class<?>[] {interfaceType}, handler); return interfaceType.cast(object); } @ParametricNullness
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 08 18:35:13 GMT 2025 - 9.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/FileEntryTest.java
import org.mockito.junit.jupiter.MockitoExtension; @ExtendWith(MockitoExtension.class) @DisplayName("FileEntry interface contract tests") class FileEntryTest { @Test @DisplayName("Mock returns configured values") void mockReturnsConfiguredValues() { FileEntry mock = mock(FileEntry.class); when(mock.getName()).thenReturn("test.txt"); when(mock.getType()).thenReturn(1);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/StandaloneRestTestPlugin.java
project.getRootProject().getPluginManager().apply(GlobalBuildInfoPlugin.class); project.getPluginManager().apply(RestTestBasePlugin.class); project.getTasks().register("buildResources", ExportElasticsearchBuildResourcesTask.class); // only setup tests to build SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class); final SourceSet testSourceSet = sourceSets.create("test");
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Jul 05 08:34:36 GMT 2021 - 3.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/sso/SsoAction.java
* successful login, authentication failures, and redirects. */ public class SsoAction extends FessLoginAction { // =================================================================================== // Constant // private static final Logger logger = LogManager.getLogger(SsoAction.class); /** * Constructs a new SSO action. */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 9.5K bytes - Click Count (0) -
guava/src/com/google/common/base/Optional.java
* * <p>A common alternative to using this class is to find or create a suitable <a * href="http://en.wikipedia.org/wiki/Null_Object_pattern">null object</a> for the type in question. * * <p>This class is not intended as a direct analogue of any existing "option" or "maybe" construct * from other programming environments, though it may bear some similarities. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 15.1K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/Session.java
* <p> * Shortcut for {@code getService(TypeRegistry.class).require(...)}. * * @see org.apache.maven.api.services.TypeRegistry#require(String) */ @Nonnull Type requireType(@Nonnull String id); /** * Obtain the {@link Language} from the specified {@code id}. * <p> * Shortcut for {@code getService(LanguageRegistry.class).require(...)}. *Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Jul 03 14:18:26 GMT 2025 - 36.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
import jcifs.SmbResourceLocator; /** * Unit tests for NetServerEnumIterator. * Tests focus on constructor validation and basic iterator contract. */ @ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) class NetServerEnumIteratorTest { @Mock private SmbResourceLocator locator; @Mock private SmbTreeHandleImpl treeHandle; @Mock private Configuration config;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.8K bytes - Click Count (0)