This is an automated email from the ASF dual-hosted git repository.
rskraba pushed a commit to branch branch-1.11
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/branch-1.11 by this push:
new 2c02a72a7 [hotfix] Build differences from JUnit versions
2c02a72a7 is described below
commit 2c02a72a79d7423b62b603a55330b1f79595a188
Author: Ryan Skraba <[email protected]>
AuthorDate: Thu Jun 15 19:00:30 2023 +0200
[hotfix] Build differences from JUnit versions
---
lang/java/avro/src/test/java/org/apache/avro/TestLogicalType.java | 2 +-
lang/java/avro/src/test/java/org/apache/avro/TestSchema.java | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lang/java/avro/src/test/java/org/apache/avro/TestLogicalType.java
b/lang/java/avro/src/test/java/org/apache/avro/TestLogicalType.java
index 40da41a06..2514a5ab0 100644
--- a/lang/java/avro/src/test/java/org/apache/avro/TestLogicalType.java
+++ b/lang/java/avro/src/test/java/org/apache/avro/TestLogicalType.java
@@ -290,7 +290,7 @@ public class TestLogicalType {
@Test
public void testRegisterLogicalTypeFactoryByServiceLoader() {
- assertThat(LogicalTypes.getCustomRegisteredTypes(),
+ MatcherAssert.assertThat(LogicalTypes.getCustomRegisteredTypes(),
IsMapContaining.hasEntry(equalTo("custom"),
instanceOf(LogicalTypes.LogicalTypeFactory.class)));
}
diff --git a/lang/java/avro/src/test/java/org/apache/avro/TestSchema.java
b/lang/java/avro/src/test/java/org/apache/avro/TestSchema.java
index f0a8d4ec0..e79faad26 100644
--- a/lang/java/avro/src/test/java/org/apache/avro/TestSchema.java
+++ b/lang/java/avro/src/test/java/org/apache/avro/TestSchema.java
@@ -400,7 +400,7 @@ public class TestSchema {
}
@Test
- void testContentAfterAvsc() throws Exception {
+ public void testContentAfterAvsc() throws Exception {
Schema.Parser parser = new Schema.Parser();
parser.setValidate(true);
parser.setValidateDefaults(true);
@@ -408,7 +408,7 @@ public class TestSchema {
}
@Test
- void testContentAfterAvscInInputStream() throws Exception {
+ public void testContentAfterAvscInInputStream() throws Exception {
Schema.Parser parser = new Schema.Parser();
parser.setValidate(true);
parser.setValidateDefaults(true);
@@ -419,7 +419,7 @@ public class TestSchema {
}
@Test
- void testContentAfterAvscInFile() throws Exception {
+ public void testContentAfterAvscInFile() throws Exception {
File avscFile = Files.createTempFile("testContentAfterAvscInFile",
null).toFile();
try (FileWriter writer = new FileWriter(avscFile)) {
writer.write("{\"type\": \"string\"}; DROP TABLE STUDENTS");