@Test public void whenFontSizeSpecified_shouldReturnSelectedValue() { GeneralSharedPreferences.getInstance().save(KEY_FONT_SIZE, "30"); assertThat(QuestionFontSizeUtils.getQuestionFontSize(), is(30)); }
public static int getQuestionFontSize() { try { return Integer.parseInt(String.valueOf(GeneralSharedPreferences.getInstance().get(KEY_FONT_SIZE))); } catch (Exception | Error e) { return DEFAULT_FONT_SIZE; } }
QuestionFontSizeUtils { public static int getQuestionFontSize() { try { return Integer.parseInt(String.valueOf(GeneralSharedPreferences.getInstance().get(KEY_FONT_SIZE))); } catch (Exception | Error e) { return DEFAULT_FONT_SIZE; } } }
QuestionFontSizeUtils { public static int getQuestionFontSize() { try { return Integer.parseInt(String.valueOf(GeneralSharedPreferences.getInstance().get(KEY_FONT_SIZE))); } catch (Exception | Error e) { return DEFAULT_FONT_SIZE; } } private  QuestionFontSizeUtils(); }
QuestionFontSizeUtils { public static int getQuestionFontSize() { try { return Integer.parseInt(String.valueOf(GeneralSharedPreferences.getInstance().get(KEY_FONT_SIZE))); } catch (Exception | Error e) { return DEFAULT_FONT_SIZE; } } private  QuestionFontSizeUtils(); static int getQuestionFontSize(); }
QuestionFontSizeUtils { public static int getQuestionFontSize() { try { return Integer.parseInt(String.valueOf(GeneralSharedPreferences.getInstance().get(KEY_FONT_SIZE))); } catch (Exception | Error e) { return DEFAULT_FONT_SIZE; } } private  QuestionFontSizeUtils(); static int getQuestionFontSize(); static final int DEFAULT_FONT_SIZE; }