blob: d7626890493dccef9da03b3c65c900d97aaac9a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package org.openecomp.sdc.validation.impl.validators;
import org.openecomp.core.validation.errors.ErrorMessagesFormatBuilder;
import org.openecomp.core.validation.errors.Messages;
import org.junit.Test;
import org.testng.Assert;
public class ErrorMessagesTest {
@Test
public void testErrorFormatWithOneParam() {
String error1 = ErrorMessagesFormatBuilder
.getErrorWithParameters(Messages.MISSING_FILE_NAME_IN_MANIFEST.getErrorMessage(),
"file.yaml");
Assert.assertNotNull(error1);
}
@Test
public void testErrorFormatWithTwoParams() {
String error1 = ErrorMessagesFormatBuilder
.getErrorWithParameters(Messages.REFERENCED_PARAMETER_NOT_FOUND.getErrorMessage(), "param",
"res");
Assert.assertNotNull(error1);
}
}
|