@Test public void testIsEnabled() throws Exception { doReturn(true).when(context).isEnabled("property"); assertTrue(pirasoEntryPointContext.isEnabled("property")); assertFalse(pirasoEntryPointContext.isEnabled("other property")); verify(context, times(2)).isEnabled(anyString()); }
public boolean isEnabled(String property) { return getDelegate() != null && getDelegate().isEnabled(property); }
PirasoEntryPointContext implements ContextPreference { public boolean isEnabled(String property) { return getDelegate() != null && getDelegate().isEnabled(property); } }
PirasoEntryPointContext implements ContextPreference { public boolean isEnabled(String property) { return getDelegate() != null && getDelegate().isEnabled(property); }  }
PirasoEntryPointContext implements ContextPreference { public boolean isEnabled(String property) { return getDelegate() != null && getDelegate().isEnabled(property); }  PirasoEntryPoint getEntryPoint(); void addProperty(Class<?> clazz, String name, Object value); Object getProperty(Class<?> clazz, String name); Long getRequestId(); ReferenceRequestEntry getRef(); boolean isMonitored(); boolean isEnabled(String property); boolean isRegexEnabled(String property); Integer getIntValue(String property); }
PirasoEntryPointContext implements ContextPreference { public boolean isEnabled(String property) { return getDelegate() != null && getDelegate().isEnabled(property); }  PirasoEntryPoint getEntryPoint(); void addProperty(Class<?> clazz, String name, Object value); Object getProperty(Class<?> clazz, String name); Long getRequestId(); ReferenceRequestEntry getRef(); boolean isMonitored(); boolean isEnabled(String property); boolean isRegexEnabled(String property); Integer getIntValue(String property);  }