diff options
author | Tom Chao <chaot@google.com> | 2013-07-18 11:34:04 -0700 |
---|---|---|
committer | Tom Chao <chaot@google.com> | 2013-07-19 09:30:56 -0700 |
commit | d4bb971d18087273d5c56183c3b9acb3d4ae82d6 (patch) | |
tree | d1d93b5a8a77d3e8fd5e592766f089210d28153d /java/src/test | |
parent | b8f5dad1c76e596e774e16e98cb7ef0728774c73 (diff) | |
download | protobuf-d4bb971d18087273d5c56183c3b9acb3d4ae82d6.tar.gz protobuf-d4bb971d18087273d5c56183c3b9acb3d4ae82d6.tar.bz2 protobuf-d4bb971d18087273d5c56183c3b9acb3d4ae82d6.zip |
Update nano to serialize java keywords properly.
Change-Id: I7407d0fab609c336ecd73499e725aed0dd50f555
Diffstat (limited to 'java/src/test')
-rw-r--r-- | java/src/test/java/com/google/protobuf/NanoTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/src/test/java/com/google/protobuf/NanoTest.java b/java/src/test/java/com/google/protobuf/NanoTest.java index 19f39575..5a04b6f1 100644 --- a/java/src/test/java/com/google/protobuf/NanoTest.java +++ b/java/src/test/java/com/google/protobuf/NanoTest.java @@ -2250,6 +2250,12 @@ public class NanoTest extends TestCase { assertEquals(message.d, newMessage.d); } + public void testJavaKeyword() throws Exception { + TestAllTypesNano msg = new TestAllTypesNano(); + msg.synchronized_ = 123; + assertEquals(123, msg.synchronized_); + } + private <T> List<T> list(T first, T... remaining) { List<T> list = new ArrayList<T>(); list.add(first); |