@Test public void testGetRenderStrategyPropertyReturnsNullWithUnknownProperty() { Properties properties = createMock(Properties.class); expect(properties.getProperty("imageMode")).andReturn("blah:1,2,3"); expect(properties.getProperty("renderStrategy")).andReturn(null); replay(properties); assertNull(ImageModeHelper.getRenderStrategyProperty(properties)); verify(properties); }
@Nullable public static String getRenderStrategyProperty(final Properties properties) { return getRenderStrategyProperty(new StringPropertyAdapter(properties)); }
ImageModeHelper { @Nullable public static String getRenderStrategyProperty(final Properties properties) { return getRenderStrategyProperty(new StringPropertyAdapter(properties)); } }
ImageModeHelper { @Nullable public static String getRenderStrategyProperty(final Properties properties) { return getRenderStrategyProperty(new StringPropertyAdapter(properties)); } private  ImageModeHelper(); }
ImageModeHelper { @Nullable public static String getRenderStrategyProperty(final Properties properties) { return getRenderStrategyProperty(new StringPropertyAdapter(properties)); } private  ImageModeHelper(); @Nullable static String getAreaProviderProperty(final Properties properties); @Nullable static String getAreaProviderProperty(@Nonnull final Map<String, String> properties); @Nullable static String getAreaProviderProperty(@Nullable final String imageModeProperty); @Nullable static String getRenderStrategyProperty(final Properties properties); @Nullable static String getRenderStrategyProperty(@Nonnull final Map<String, String> properties); @Nullable static String getRenderStrategyProperty(@Nullable final String imageModeProperty); }
ImageModeHelper { @Nullable public static String getRenderStrategyProperty(final Properties properties) { return getRenderStrategyProperty(new StringPropertyAdapter(properties)); } private  ImageModeHelper(); @Nullable static String getAreaProviderProperty(final Properties properties); @Nullable static String getAreaProviderProperty(@Nonnull final Map<String, String> properties); @Nullable static String getAreaProviderProperty(@Nullable final String imageModeProperty); @Nullable static String getRenderStrategyProperty(final Properties properties); @Nullable static String getRenderStrategyProperty(@Nonnull final Map<String, String> properties); @Nullable static String getRenderStrategyProperty(@Nullable final String imageModeProperty);  }