@Test public void setContext() { toTest.setContext(mock(Context.class)); testProviderChain(); assertTrue(toTest.providerChain.size() >= 2); assertTrue(toTest.providerChain.get(1) instanceof ResourceValueProvider); }
public void setContext(final Context context) { initProviderChain(); providerChain.add(new ResourceValueProvider(context)); }
Config implements ValueProvider { public void setContext(final Context context) { initProviderChain(); providerChain.add(new ResourceValueProvider(context)); } }
Config implements ValueProvider { public void setContext(final Context context) { initProviderChain(); providerChain.add(new ResourceValueProvider(context)); } private  Config(); }
Config implements ValueProvider { public void setContext(final Context context) { initProviderChain(); providerChain.add(new ResourceValueProvider(context)); } private  Config(); static Config getInstance(); void setContext(final Context context); String getPropertyValue(final Property property); Integer getPropertyValueAsInt(final Property property); }
Config implements ValueProvider { public void setContext(final Context context) { initProviderChain(); providerChain.add(new ResourceValueProvider(context)); } private  Config(); static Config getInstance(); void setContext(final Context context); String getPropertyValue(final Property property); Integer getPropertyValueAsInt(final Property property);  }