DataURIDecoder { public boolean isValid() { return valid; } DataURIDecoder(String header); boolean isValid(); String getMediatype(); String getCharset(); String getEncoding(); boolean isBase64Encoded(); String getNormalizedMediatype(); final static String DEFAULT_MEDIA_TYPE; final static String DEFAULT_CHARSET; }
@Test public void testInvalid() { DataURIDecoder dud = new DataURIDecoder("this is no data"); assertFalse(dud.isValid()); }