Created
May 27, 2016 03:26
-
-
Save imasahiro/2c02f1b27c4a2068dd06597fd77bb101 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
diff --git a/src/test/java/com/linecorp/armeria/common/thrift/text/TTextProtocolTest.java b/src/test/java/com/linecorp/armeria/common/thrift/text/TTextProtocolTest.java | |
index 63d88dd..ecab43d 100644 | |
--- a/src/test/java/com/linecorp/armeria/common/thrift/text/TTextProtocolTest.java | |
+++ b/src/test/java/com/linecorp/armeria/common/thrift/text/TTextProtocolTest.java | |
@@ -145,6 +145,7 @@ public class TTextProtocolTest { | |
.setV(Letter.BETA) | |
.setW(TestUnion.f2(4)) | |
.setX(ImmutableList.of(TestUnion.f2(5), TestUnion.f1(base64Encoder.decode("SGVsbG8gV29ybGQ=")))) | |
+ .setY(Letter.ALPHA) | |
; | |
} | |
diff --git a/src/test/resources/com/linecorp/armeria/common/thrift/text/TTextProtocol_TestData.txt b/src/test/resources/com/linecorp/armeria/common/thrift/text/TTextProtocol_TestData.txt | |
index 3a8c454..981e7c6 100644 | |
--- a/src/test/resources/com/linecorp/armeria/common/thrift/text/TTextProtocol_TestData.txt | |
+++ b/src/test/resources/com/linecorp/armeria/common/thrift/text/TTextProtocol_TestData.txt | |
@@ -62,5 +62,7 @@ | |
"w": { "f2": 4 }, | |
- "x": [ { "f2": 5 }, {"f1": "SGVsbG8gV29ybGQ="} ] | |
+ "x": [ { "f2": 5 }, {"f1": "SGVsbG8gV29ybGQ="} ], | |
+ | |
+ "y": "BETA" | |
} | |
diff --git a/src/test/thrift/TTextProtocolTest.thrift b/src/test/thrift/TTextProtocolTest.thrift | |
index 2fb8bd3..75d71f3 100644 | |
--- a/src/test/thrift/TTextProtocolTest.thrift | |
+++ b/src/test/thrift/TTextProtocolTest.thrift | |
@@ -30,6 +30,8 @@ enum Letter { | |
ECHO = 5, | |
} | |
+typedef Letter AliasedLetter | |
+ | |
union TestUnion { | |
1: binary f1 | |
2: i32 f2 | |
@@ -91,6 +93,8 @@ struct TTextProtocolTestMsg { | |
21: required TestUnion w; | |
22: required list<TestUnion> x; | |
+ | |
+ 23: required AliasedLetter y; | |
} | |
struct TTextProtocolTestMsgUnion { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment