@Test public void constructor_params() { HashMap<String, String> params = new HashMap<>(); params.put("TestKey", "TestValue"); NetworkConfig networkConfig = new TestNetworkConfig(params); Map<String, String> networkParams = networkConfig.getNetworkConfigParams() .obtainNetworkParams(); assertNotNull(networkParams); assertEquals("TestValue", networkParams.get("TestKey")); }
@NonNull NetworkConfigParams getNetworkConfigParams() { return networkConfigParams; }
NetworkConfig { @NonNull NetworkConfigParams getNetworkConfigParams() { return networkConfigParams; } }
NetworkConfig { @NonNull NetworkConfigParams getNetworkConfigParams() { return networkConfigParams; } protected  NetworkConfig(@Nullable Map<String, String> networkParams); }
NetworkConfig { @NonNull NetworkConfigParams getNetworkConfigParams() { return networkConfigParams; } protected  NetworkConfig(@Nullable Map<String, String> networkParams); @NonNull String getKey(); @Nullable String getVersion(); @NonNull NetworkAdapter obtainNetworkAdapter(); @SuppressWarnings({"unchecked", "WeakerAccess"}) T withNetworkParams(@Nullable Map<String, String> config); @SuppressWarnings({"unchecked", "unused"}) T setNetworkParam(@NonNull String key, @NonNull String value); @SuppressWarnings({"unchecked", "WeakerAccess", "unused"}) T withBaseMediationConfig(@Nullable Map<String, String> config); @SuppressWarnings({"unchecked", "WeakerAccess", "unused"}) T setBaseMediationParam(@NonNull String key,
                                                             @NonNull String value); @SuppressWarnings({"WeakerAccess"}) T withMediationConfig(@NonNull AdsFormat adsFormat,
                                                           @Nullable Map<String, String> config); T withMediationConfig(@NonNull AdsFormat adsFormat,
                                                           @Nullable Map<String, String> config,
                                                           @NonNull Orientation orientation); NetworkConfig forAdTypes(@NonNull AdsType... adsType); @Nullable Map<String, String> peekMediationConfig(@NonNull AdsType adsType,
                                                                                      @NonNull T adRequestParams,
                                                                                      @NonNull AdContentType adContentType); @Override boolean equals(Object o); @Override int hashCode(); }
NetworkConfig { @NonNull NetworkConfigParams getNetworkConfigParams() { return networkConfigParams; } protected  NetworkConfig(@Nullable Map<String, String> networkParams); @NonNull String getKey(); @Nullable String getVersion(); @NonNull NetworkAdapter obtainNetworkAdapter(); @SuppressWarnings({"unchecked", "WeakerAccess"}) T withNetworkParams(@Nullable Map<String, String> config); @SuppressWarnings({"unchecked", "unused"}) T setNetworkParam(@NonNull String key, @NonNull String value); @SuppressWarnings({"unchecked", "WeakerAccess", "unused"}) T withBaseMediationConfig(@Nullable Map<String, String> config); @SuppressWarnings({"unchecked", "WeakerAccess", "unused"}) T setBaseMediationParam(@NonNull String key,
                                                             @NonNull String value); @SuppressWarnings({"WeakerAccess"}) T withMediationConfig(@NonNull AdsFormat adsFormat,
                                                           @Nullable Map<String, String> config); T withMediationConfig(@NonNull AdsFormat adsFormat,
                                                           @Nullable Map<String, String> config,
                                                           @NonNull Orientation orientation); NetworkConfig forAdTypes(@NonNull AdsType... adsType); @Nullable Map<String, String> peekMediationConfig(@NonNull AdsType adsType,
                                                                                      @NonNull T adRequestParams,
                                                                                      @NonNull AdContentType adContentType); @Override boolean equals(Object o); @Override int hashCode();  }