Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Collins <alexec@users.noreply.github.com>
  • Loading branch information
alexec committed Jul 14, 2023
1 parent 77e4d01 commit 3f3db9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public enum ContentType {
* The content type for transports sending cloudevents in the protocol buffer format.
*/
PROTO("application/cloudevents+protobuf"),
/**
* The content type for transports sending cloudevents in the compact Avro format.
*/
AVRO_COMPACT("application/cloudevents+avrocompact"),
/**
* The content type for transports sending cloudevents in XML format.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.time.ZoneOffset;
import java.util.Collections;

import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

Expand Down Expand Up @@ -67,5 +68,10 @@ void format() {

assertEquals(event, deserialized);

byte[] reserialized = format.serialize(deserialized);

assertArrayEquals(serialized, reserialized);


}
}

0 comments on commit 3f3db9d

Please sign in to comment.