@UseDataProvider("forTestAcceptLanguageToString") @Test public void testAcceptLanguageToString(AcceptLanguage acceptLanguage, String expectedResult) { AcceptLanguageHeaderDelegate headerDelegate = new AcceptLanguageHeaderDelegate(); assertEquals(expectedResult, headerDelegate.toString(acceptLanguage)); }
@Override public String toString(AcceptLanguage language) { if (language == null) { throw new IllegalArgumentException(); } return language.getLanguage().toString(); }
AcceptLanguageHeaderDelegate implements RuntimeDelegate.HeaderDelegate<AcceptLanguage> { @Override public String toString(AcceptLanguage language) { if (language == null) { throw new IllegalArgumentException(); } return language.getLanguage().toString(); } }
AcceptLanguageHeaderDelegate implements RuntimeDelegate.HeaderDelegate<AcceptLanguage> { @Override public String toString(AcceptLanguage language) { if (language == null) { throw new IllegalArgumentException(); } return language.getLanguage().toString(); }  }
AcceptLanguageHeaderDelegate implements RuntimeDelegate.HeaderDelegate<AcceptLanguage> { @Override public String toString(AcceptLanguage language) { if (language == null) { throw new IllegalArgumentException(); } return language.getLanguage().toString(); }  @Override AcceptLanguage fromString(String header); @Override String toString(AcceptLanguage language); }
AcceptLanguageHeaderDelegate implements RuntimeDelegate.HeaderDelegate<AcceptLanguage> { @Override public String toString(AcceptLanguage language) { if (language == null) { throw new IllegalArgumentException(); } return language.getLanguage().toString(); }  @Override AcceptLanguage fromString(String header); @Override String toString(AcceptLanguage language);  }