@Test public void testAddSecurityProvider() { SSHShellAbstract sshShellAbstract = new SSHShellAbstract() { }; boolean securityProviderAdded = sshShellAbstract.addSecurityProvider(); assertTrue(securityProviderAdded); sshShellAbstract.addSecurityProvider(); securityProviderAdded = sshShellAbstract.addSecurityProvider(); assertFalse(securityProviderAdded); sshShellAbstract.removeSecurityProvider(); }
protected boolean addSecurityProvider() { boolean providerAdded = false; Provider provider = Security.getProvider("BC"); if (provider == null) { providerAdded = true; Security.insertProviderAt(new BouncyCastleProvider(), 2); } return providerAdded; }
SSHShellAbstract { protected boolean addSecurityProvider() { boolean providerAdded = false; Provider provider = Security.getProvider("BC"); if (provider == null) { providerAdded = true; Security.insertProviderAt(new BouncyCastleProvider(), 2); } return providerAdded; } }
SSHShellAbstract { protected boolean addSecurityProvider() { boolean providerAdded = false; Provider provider = Security.getProvider("BC"); if (provider == null) { providerAdded = true; Security.insertProviderAt(new BouncyCastleProvider(), 2); } return providerAdded; }  }
SSHShellAbstract { protected boolean addSecurityProvider() { boolean providerAdded = false; Provider provider = Security.getProvider("BC"); if (provider == null) { providerAdded = true; Security.insertProviderAt(new BouncyCastleProvider(), 2); } return providerAdded; }   }
SSHShellAbstract { protected boolean addSecurityProvider() { boolean providerAdded = false; Provider provider = Security.getProvider("BC"); if (provider == null) { providerAdded = true; Security.insertProviderAt(new BouncyCastleProvider(), 2); } return providerAdded; }   static final String COMMAND_IS_NOT_SPECIFIED_MESSAGE; }