| | |
| | | * |
| | | * @throws ConfigException |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCreateDefaultDS() throws ConfigException { |
| | | final Model ds = new DataStoreModel(); |
| | | |
| | |
| | | * @throws IOException |
| | | * If an error occurred when the temporary file is created. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsValidDSAllowsPasswordFile() throws ConfigException, IOException { |
| | | final Model ds = new DataStoreModel(); |
| | | File passwordFile = null; |
| | |
| | | ds.validate(); |
| | | } |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testCreateDSAllowsNullCertificate() throws ConfigException { |
| | | final Model ds = new DataStoreModel(); |
| | | ds.getListenerSettings().setCertificate(null); |
| | | assertFalse(ds.isSecure()); |
| | | } |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testCreateSecureDS() throws ConfigException { |
| | | final Model ds = new DataStoreModel(); |
| | | final Certificate cert = new Certificate(); |
| | |
| | | * @throws ConfigException |
| | | * If a configuration exception occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCreateDSFirstInTopology() throws ConfigException { |
| | | final Model ds = new DataStoreModel(); |
| | | ds.getListenerSettings().setPassword("password"); |
| | |
| | | * @throws ConfigException |
| | | * If a configuration exception occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCreateDefaultDSWithLicense() throws ConfigException { |
| | | final Model ds = new DataStoreModel(); |
| | | final String license = "This is a CDDL License"; |