@Test public void get_withoutQualifier_missing() { final IllegalStateException exception = expectThrows( IllegalStateException.class, () -> Contexts.get( Runnable.class ) ); assertEquals( exception.getMessage(), "Attempting to retrieve React context with type interface java.lang.Runnable and qualifier '' but no such context exists with that type and name" ); }
public static <T> Context<T> get( @Nonnull final Class<T> type ) { return get( type, DEFAULT_QUALIFIER ); }
Contexts { public static <T> Context<T> get( @Nonnull final Class<T> type ) { return get( type, DEFAULT_QUALIFIER ); } }
Contexts { public static <T> Context<T> get( @Nonnull final Class<T> type ) { return get( type, DEFAULT_QUALIFIER ); } private  Contexts(); }
Contexts { public static <T> Context<T> get( @Nonnull final Class<T> type ) { return get( type, DEFAULT_QUALIFIER ); } private  Contexts(); static void register( @Nonnull final Class<T> type ); static void register( @Nonnull final Class<T> type, @Nullable final T defaultValue ); static void register( @Nonnull final Class<T> type, @Nonnull final String qualifier ); static void register( @Nonnull final Class<T> type,
                                   @Nonnull final String qualifier,
                                   @Nullable final T defaultValue ); static Context<T> get( @Nonnull final Class<T> type ); @SuppressWarnings( "unchecked" ) static Context<T> get( @Nonnull final Class<T> type, @Nonnull final String qualifier ); }
Contexts { public static <T> Context<T> get( @Nonnull final Class<T> type ) { return get( type, DEFAULT_QUALIFIER ); } private  Contexts(); static void register( @Nonnull final Class<T> type ); static void register( @Nonnull final Class<T> type, @Nullable final T defaultValue ); static void register( @Nonnull final Class<T> type, @Nonnull final String qualifier ); static void register( @Nonnull final Class<T> type,
                                   @Nonnull final String qualifier,
                                   @Nullable final T defaultValue ); static Context<T> get( @Nonnull final Class<T> type ); @SuppressWarnings( "unchecked" ) static Context<T> get( @Nonnull final Class<T> type, @Nonnull final String qualifier );  }