@Test public void nothingIncludesNull(@Mocked final CharacterEncoding encoding) throws Exception { assertThat(CharacterEncodings.includes(encoding,null),equalTo(false)); }
public static boolean includes(CharacterEncoding ce1, CharacterEncoding ce2) { if(ce1==null || ce2==null) { return false; } if(ce1.isWildcard()) { return true; } if(ce2.isWildcard()) { return false; } return ce1.charset().equals(ce2.charset()); }
CharacterEncodings { public static boolean includes(CharacterEncoding ce1, CharacterEncoding ce2) { if(ce1==null || ce2==null) { return false; } if(ce1.isWildcard()) { return true; } if(ce2.isWildcard()) { return false; } return ce1.charset().equals(ce2.charset()); } }
CharacterEncodings { public static boolean includes(CharacterEncoding ce1, CharacterEncoding ce2) { if(ce1==null || ce2==null) { return false; } if(ce1.isWildcard()) { return true; } if(ce2.isWildcard()) { return false; } return ce1.charset().equals(ce2.charset()); } private  CharacterEncodings(); }
CharacterEncodings { public static boolean includes(CharacterEncoding ce1, CharacterEncoding ce2) { if(ce1==null || ce2==null) { return false; } if(ce1.isWildcard()) { return true; } if(ce2.isWildcard()) { return false; } return ce1.charset().equals(ce2.charset()); } private  CharacterEncodings(); static CharacterEncoding wildcard(); static CharacterEncoding of(Charset charset); static CharacterEncoding fromString(final String name); static boolean includes(CharacterEncoding ce1, CharacterEncoding ce2); }
CharacterEncodings { public static boolean includes(CharacterEncoding ce1, CharacterEncoding ce2) { if(ce1==null || ce2==null) { return false; } if(ce1.isWildcard()) { return true; } if(ce2.isWildcard()) { return false; } return ce1.charset().equals(ce2.charset()); } private  CharacterEncodings(); static CharacterEncoding wildcard(); static CharacterEncoding of(Charset charset); static CharacterEncoding fromString(final String name); static boolean includes(CharacterEncoding ce1, CharacterEncoding ce2);  }