You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2023/05/22 07:36:39 UTC
[camel] branch main updated: correct typo and polish test
This is an automated email from the ASF dual-hosted git repository.
bvahdat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 79d6bd20cb8 correct typo and polish test
79d6bd20cb8 is described below
commit 79d6bd20cb8d125f6f3bf76bb25f7338894ad7d1
Author: Babak Vahdat <bv...@apache.org>
AuthorDate: Mon May 22 09:36:28 2023 +0200
correct typo and polish test
---
.../org/apache/camel/component/jsonvalidator/JsonSchemaLoader.java | 2 +-
.../camel/component/jsonvalidator/JsonValidationExceptionTest.java | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/components/camel-json-validator/src/main/java/org/apache/camel/component/jsonvalidator/JsonSchemaLoader.java b/components/camel-json-validator/src/main/java/org/apache/camel/component/jsonvalidator/JsonSchemaLoader.java
index 8ba89244bc3..e36247d0244 100644
--- a/components/camel-json-validator/src/main/java/org/apache/camel/component/jsonvalidator/JsonSchemaLoader.java
+++ b/components/camel-json-validator/src/main/java/org/apache/camel/component/jsonvalidator/JsonSchemaLoader.java
@@ -24,7 +24,7 @@ import org.apache.camel.CamelContext;
/**
* Can be used to create custom schema for the JSON validator endpoint.
*
- * @deprecated Use UriJsonSchemaLoader instead
+ * @deprecated Use JsonUriSchemaLoader instead
*/
@Deprecated
public interface JsonSchemaLoader {
diff --git a/components/camel-json-validator/src/test/java/org/apache/camel/component/jsonvalidator/JsonValidationExceptionTest.java b/components/camel-json-validator/src/test/java/org/apache/camel/component/jsonvalidator/JsonValidationExceptionTest.java
index 06d511e0ca8..7d4110db462 100644
--- a/components/camel-json-validator/src/test/java/org/apache/camel/component/jsonvalidator/JsonValidationExceptionTest.java
+++ b/components/camel-json-validator/src/test/java/org/apache/camel/component/jsonvalidator/JsonValidationExceptionTest.java
@@ -17,7 +17,6 @@
package org.apache.camel.component.jsonvalidator;
import java.text.MessageFormat;
-import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.Set;
@@ -25,7 +24,6 @@ import com.networknt.schema.ValidationMessage;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertSame;
public class JsonValidationExceptionTest {
@@ -41,7 +39,7 @@ public class JsonValidationExceptionTest {
@Test
void testErrorsEmpty() {
- assertSame(Collections.EMPTY_SET, new JsonValidationException(null, null, new Exception()).getErrors());
+ assertEquals(0, new JsonValidationException(null, null, new Exception()).getNumberOfErrors());
}
private ValidationMessage createError(String msg) {