@Test public void testGetBuilderForJKSFileType() { FileKeyStoreLoader.Builder<?> builder = FileKeyStoreLoaderBuilderProvider.getBuilderForKeyStoreFileType( KeyStoreFileType.JKS); Assert.assertTrue(builder instanceof JKSFileLoader.Builder); }
static FileKeyStoreLoader.Builder<? extends FileKeyStoreLoader> getBuilderForKeyStoreFileType(KeyStoreFileType type) { switch (Objects.requireNonNull(type)) { case JKS: return new JKSFileLoader.Builder(); case PEM: return new PEMFileLoader.Builder(); case PKCS12: return new PKCS12FileLoader.Builder(); default: throw new AssertionError( "Unexpected StoreFileType: " + type.name()); } }
FileKeyStoreLoaderBuilderProvider { static FileKeyStoreLoader.Builder<? extends FileKeyStoreLoader> getBuilderForKeyStoreFileType(KeyStoreFileType type) { switch (Objects.requireNonNull(type)) { case JKS: return new JKSFileLoader.Builder(); case PEM: return new PEMFileLoader.Builder(); case PKCS12: return new PKCS12FileLoader.Builder(); default: throw new AssertionError( "Unexpected StoreFileType: " + type.name()); } } }
FileKeyStoreLoaderBuilderProvider { static FileKeyStoreLoader.Builder<? extends FileKeyStoreLoader> getBuilderForKeyStoreFileType(KeyStoreFileType type) { switch (Objects.requireNonNull(type)) { case JKS: return new JKSFileLoader.Builder(); case PEM: return new PEMFileLoader.Builder(); case PKCS12: return new PKCS12FileLoader.Builder(); default: throw new AssertionError( "Unexpected StoreFileType: " + type.name()); } }  }
FileKeyStoreLoaderBuilderProvider { static FileKeyStoreLoader.Builder<? extends FileKeyStoreLoader> getBuilderForKeyStoreFileType(KeyStoreFileType type) { switch (Objects.requireNonNull(type)) { case JKS: return new JKSFileLoader.Builder(); case PEM: return new PEMFileLoader.Builder(); case PKCS12: return new PKCS12FileLoader.Builder(); default: throw new AssertionError( "Unexpected StoreFileType: " + type.name()); } }   }
FileKeyStoreLoaderBuilderProvider { static FileKeyStoreLoader.Builder<? extends FileKeyStoreLoader> getBuilderForKeyStoreFileType(KeyStoreFileType type) { switch (Objects.requireNonNull(type)) { case JKS: return new JKSFileLoader.Builder(); case PEM: return new PEMFileLoader.Builder(); case PKCS12: return new PKCS12FileLoader.Builder(); default: throw new AssertionError( "Unexpected StoreFileType: " + type.name()); } }    }