Skip to content

Commit 76e8aa9

Browse files
committed
fix: correct typo in mime type check method
1 parent b73dbac commit 76e8aa9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

fj-doc-val-core/src/main/java/org/fugerit/java/doc/val/core/DocValidatorFacade.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public DocTypeValidator findByExtension( String extension ) {
7474
return this.extMapValidator.get( extension );
7575
}
7676

77-
public boolean isMimeTypeSupprted( String mimeType ) {
78-
return this.findByMimeType(mimeType) != null;
79-
}
77+
public boolean isMimeTypeSupported( String mimeType ) {
78+
return this.findByMimeType(mimeType) != null;
79+
}
8080

8181
public Collection<String> getSupportedMimeTypes() {
8282
return Collections.unmodifiableCollection( this.mimMapValidator.keySet() );

fj-doc-val-core/src/test/java/test/org/fugerit/java/doc/core/val/TestAllValidatorFacade.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ public boolean checkCompatibility() {
8686
Assertions.assertNull( facade.findByExtension( HelperDocValidator.FORMAT_TEST ) );
8787
Assertions.assertFalse( facade.getSupportedMimeTypes().isEmpty() );
8888
Assertions.assertFalse( facade.getSupportedExtensions().isEmpty() );
89-
Assertions.assertFalse( facade.isMimeTypeSupprted( HelperDocValidator.MIME_TEST ) );
89+
Assertions.assertFalse( facade.isMimeTypeSupported( HelperDocValidator.MIME_TEST ) );
9090
Assertions.assertFalse( facade.isExtensionSupported( HelperDocValidator.FORMAT_TEST ) );
91-
Assertions.assertFalse( facade.isMimeTypeSupprted( HelperDocValidator.MIME_TEST ) );
91+
Assertions.assertFalse( facade.isMimeTypeSupported( HelperDocValidator.MIME_TEST ) );
9292
Assertions.assertFalse( facade.isExtensionSupported( HelperDocValidator.FORMAT_TEST ) );
93-
Assertions.assertFalse( facade.isMimeTypeSupprted( "aaaa" ) );
93+
Assertions.assertFalse( facade.isMimeTypeSupported( "aaaa" ) );
9494
Assertions.assertFalse( facade.isExtensionSupported( "bbbb/test" ) );
95-
Assertions.assertTrue( facade.isMimeTypeSupprted( ImageValidator.JPG_VALIDATOR.getMimeType() ) );
95+
Assertions.assertTrue( facade.isMimeTypeSupported( ImageValidator.JPG_VALIDATOR.getMimeType() ) );
9696
Assertions.assertTrue( facade.isExtensionSupported( ImageValidator.FORMAT_JPG ) );
9797
// test path
9898
String testPath = "src/test/resources/sample/jpg_as_jpg.jpeg";

0 commit comments

Comments
 (0)