-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37d2987
commit e27c526
Showing
13 changed files
with
127 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.skraba.avro.enchiridion</groupId> | ||
<artifactId>avro-enchiridion</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>avro-enchiridion-core111x</artifactId> | ||
<packaging>jar</packaging> | ||
|
||
<name>Avro Enchiridion :: Core 1.11.x</name> | ||
<description>Avro core examples with the latest 1.11.x version.</description> | ||
|
||
<properties> | ||
<maven.deploy.skip>false</maven.deploy.skip> | ||
<avro.major.version>1.11</avro.major.version> | ||
<avro.version>1.11.4</avro.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.avro</groupId> | ||
<artifactId>avro</artifactId> | ||
</dependency> | ||
|
||
<!-- Tests --> | ||
<dependency> | ||
<groupId>com.skraba.avro.enchiridion</groupId> | ||
<artifactId>avro-enchiridion-core</artifactId> | ||
<version>${project.version}</version> | ||
<type>test-jar</type> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.skraba.avro.enchiridion</groupId> | ||
<artifactId>avro-enchiridion-testkit</artifactId> | ||
<version>${project.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Core 1.11.x Tests | ||
============================================================================== | ||
|
||
Runs some or all of the [Avro core](../core/readme.md) tests using Avro 1.11.x libraries. |
20 changes: 20 additions & 0 deletions
20
core111x/src/test/java/com/skraba/avro/enchiridion/core111x/Aggregated111Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.skraba.avro.enchiridion.core111x; | ||
|
||
import static org.hamcrest.MatcherAssert.assertThat; | ||
import static org.hamcrest.Matchers.is; | ||
|
||
import com.skraba.avro.enchiridion.core.Aggregated; | ||
import com.skraba.avro.enchiridion.testkit.AvroVersion; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class Aggregated111Test extends Aggregated { | ||
|
||
@Test | ||
public void testAvroVersion() { | ||
assertThat(AvroVersion.avro_1_11.before("This major version"), is(false)); | ||
assertThat(AvroVersion.avro_1_11.orAfter("This major version"), is(true)); | ||
assertThat(AvroVersion.avro_1_12.before("Next major version"), is(true)); | ||
assertThat(AvroVersion.avro_1_12.orAfter("Next major version"), is(false)); | ||
assertThat(AvroVersion.getInstalledAvro(), is(AvroVersion.avro_1_11)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 3 additions & 10 deletions
13
plugin/src/test/avro/com/skraba/avro/enchiridion/simple/SimpleEnum.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,6 @@ | ||
{ | ||
"type" : "record", | ||
"name" : "SimpleRecord", | ||
"type" : "enum", | ||
"name" : "SimpleEnum", | ||
"namespace" : "com.skraba.avro.enchiridion.simple", | ||
"doc" : "Simple two column record", | ||
"fields" : [ { | ||
"name" : "id", | ||
"type" : "long" | ||
}, { | ||
"name" : "name", | ||
"type" : "string" | ||
} ] | ||
"symbols" : [ "e1", "e2", "e3" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters