|
1 | 1 | package biz.netcentric.filevault.validator.aem.cloud; |
2 | 2 |
|
3 | | -/*- |
4 | | - * #%L |
5 | | - * AEM Cloud Validator |
6 | | - * %% |
7 | | - * Copyright (C) 2021 Netcentric - A Cognizant Digital Business |
8 | | - * %% |
9 | | - * All rights reserved. This program and the accompanying materials |
10 | | - * are made available under the terms of the Eclipse Public License v1.0 |
11 | | - * which accompanies this distribution, and is available at |
12 | | - * http://www.eclipse.org/legal/epl-v10.html |
13 | | - * #L% |
14 | | - */ |
15 | | - |
16 | | -import static biz.netcentric.filevault.validator.aem.cloud.AemCloudValidator.VIOLATION_MESSAGE_READONLY_MUTABLE_PATH; |
17 | | - |
18 | 3 | import java.nio.file.Paths; |
19 | 4 | import java.util.Collection; |
20 | 5 |
|
@@ -53,21 +38,18 @@ void testIsPathWritableByDistributionJournalImporter() { |
53 | 38 | Assertions.assertFalse(AemCloudValidator.isPathWritableByDistributionJournalImporter("/var/subnode/myfile")); |
54 | 39 | } |
55 | 40 |
|
56 | | - |
57 | 41 | @Test |
58 | 42 | void testMutablePaths(){ |
59 | | - AemCloudValidator validator= new AemCloudValidator(false,false, PackageType.CONTENT,null, ValidationMessageSeverity.ERROR); |
| 43 | + AemCloudValidator validator = new AemCloudValidator(false, false, PackageType.CONTENT, null, ValidationMessageSeverity.ERROR); |
60 | 44 | Collection<ValidationMessage> messages = validator.validate("/var/subnode"); |
61 | 45 | Assertions.assertFalse(messages.isEmpty()); |
62 | 46 | } |
63 | 47 |
|
64 | 48 | @Test |
65 | 49 | void testAllowReadOnlyMutablePaths(){ |
66 | | - |
67 | | - AemCloudValidator validator= new AemCloudValidator(true,false, PackageType.CONTENT,null, ValidationMessageSeverity.ERROR); |
| 50 | + AemCloudValidator validator = new AemCloudValidator(true, false, PackageType.CONTENT, null, ValidationMessageSeverity.ERROR); |
68 | 51 | Collection<ValidationMessage> messages = validator.validate("/var/subnode"); |
69 | 52 | Assertions.assertTrue(messages.isEmpty()); |
70 | | - |
71 | 53 | } |
72 | 54 |
|
73 | 55 | } |
0 commit comments