-
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work on tackling #68, not yet fully fixed
- Loading branch information
1 parent
643981d
commit cf7d5ea
Showing
6 changed files
with
79 additions
and
31 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
42 changes: 42 additions & 0 deletions
42
...src/test/java/com/fasterxml/jackson/dataformat/protobuf/failing/GenerateSchema68Test.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,42 @@ | ||
package com.fasterxml.jackson.dataformat.protobuf.failing; | ||
|
||
import java.util.UUID; | ||
|
||
import com.fasterxml.jackson.dataformat.protobuf.ProtobufMapper; | ||
import com.fasterxml.jackson.dataformat.protobuf.ProtobufTestBase; | ||
import com.fasterxml.jackson.dataformat.protobuf.schema.ProtobufSchema; | ||
|
||
public class GenerateSchema68Test extends ProtobufTestBase | ||
{ | ||
static class UUIDBean | ||
{ | ||
public UUID messageId; | ||
} | ||
|
||
static class ShortBean | ||
{ | ||
public short version; | ||
} | ||
|
||
/* | ||
/********************************************************** | ||
/* Test methods | ||
/********************************************************** | ||
*/ | ||
|
||
final ProtobufMapper MAPPER = new ProtobufMapper(); | ||
|
||
// [dataformats-binary#68] | ||
public void testWithUUID() throws Exception | ||
{ | ||
ProtobufSchema schema = MAPPER.generateSchemaFor(UUIDBean.class); | ||
assertNotNull(schema); | ||
} | ||
|
||
// [dataformats-binary#68] | ||
public void testWithShort() throws Exception | ||
{ | ||
ProtobufSchema schema = MAPPER.generateSchemaFor(ShortBean.class); | ||
assertNotNull(schema); | ||
} | ||
} |
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