Lines Matching defs:mimeTypeMatches
455 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html"));
461 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html"));
469 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html"));
476 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html"));
486 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html"));
492 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html"));
503 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html"));
511 assertTrue(MimeUtility.mimeTypeMatches(p.getMimeType(), "text/html"));
516 /** Tests for various aspects of mimeTypeMatches(String mimeType, String matchAgainst) */
519 assertFalse(MimeUtility.mimeTypeMatches("foo/bar", "TEXT/PLAIN"));
522 assertTrue(MimeUtility.mimeTypeMatches("text/plain", "text/plain"));
525 assertTrue(MimeUtility.mimeTypeMatches("text/plain", "TEXT/PLAIN"));
526 assertTrue(MimeUtility.mimeTypeMatches("TEXT/PLAIN", "text/plain"));
529 assertTrue(MimeUtility.mimeTypeMatches("text/plain", "*/plain"));
530 assertTrue(MimeUtility.mimeTypeMatches("text/plain", "text/*"));
531 assertTrue(MimeUtility.mimeTypeMatches("text/plain", "*/*"));
534 assertFalse(MimeUtility.mimeTypeMatches("foo/bar", "*/plain"));
535 assertFalse(MimeUtility.mimeTypeMatches("foo/bar", "text/*"));
538 /** Tests for various aspects of mimeTypeMatches(String mimeType, String[] matchAgainst) */
542 assertFalse(MimeUtility.mimeTypeMatches("text/plain", arrayZero));
546 assertFalse(MimeUtility.mimeTypeMatches("foo/bar", arrayOne));
549 assertTrue(MimeUtility.mimeTypeMatches("text/plain", arrayOne));
553 assertFalse(MimeUtility.mimeTypeMatches("foo/bar", arrayTwo));
556 assertTrue(MimeUtility.mimeTypeMatches("text/plain", arrayTwo));
559 assertTrue(MimeUtility.mimeTypeMatches("match/this", arrayTwo));