Index: third_party/protobuf/java/core/src/test/java/com/google/protobuf/RepeatedFieldBuilderTest.java |
diff --git a/third_party/protobuf/java/core/src/test/java/com/google/protobuf/RepeatedFieldBuilderV3Test.java b/third_party/protobuf/java/core/src/test/java/com/google/protobuf/RepeatedFieldBuilderTest.java |
similarity index 91% |
rename from third_party/protobuf/java/core/src/test/java/com/google/protobuf/RepeatedFieldBuilderV3Test.java |
rename to third_party/protobuf/java/core/src/test/java/com/google/protobuf/RepeatedFieldBuilderTest.java |
index edbd0afd75bd413219ce927462e8f9a6dbefbc6c..49d5232150080cb06ad734f0fc9f024137618ef3 100644 |
--- a/third_party/protobuf/java/core/src/test/java/com/google/protobuf/RepeatedFieldBuilderV3Test.java |
+++ b/third_party/protobuf/java/core/src/test/java/com/google/protobuf/RepeatedFieldBuilderTest.java |
@@ -32,23 +32,25 @@ package com.google.protobuf; |
import protobuf_unittest.UnittestProto.TestAllTypes; |
import protobuf_unittest.UnittestProto.TestAllTypesOrBuilder; |
+ |
+import junit.framework.TestCase; |
+ |
import java.util.Collections; |
import java.util.List; |
-import junit.framework.TestCase; |
/** |
- * Tests for {@link RepeatedFieldBuilderV3}. This tests basic functionality. |
+ * Tests for {@link RepeatedFieldBuilder}. This tests basic functionality. |
* More extensive testing is provided via other tests that exercise the |
* builder. |
* |
* @author jonp@google.com (Jon Perlow) |
*/ |
-public class RepeatedFieldBuilderV3Test extends TestCase { |
+public class RepeatedFieldBuilderTest extends TestCase { |
public void testBasicUse() { |
TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); |
- RepeatedFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, |
- TestAllTypesOrBuilder> builder = newRepeatedFieldBuilderV3(mockParent); |
+ RepeatedFieldBuilder<TestAllTypes, TestAllTypes.Builder, |
+ TestAllTypesOrBuilder> builder = newRepeatedFieldBuilder(mockParent); |
builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(0).build()); |
builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(1).build()); |
assertEquals(0, builder.getMessage(0).getOptionalInt32()); |
@@ -68,8 +70,8 @@ public class RepeatedFieldBuilderV3Test extends TestCase { |
public void testGoingBackAndForth() { |
TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); |
- RepeatedFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, |
- TestAllTypesOrBuilder> builder = newRepeatedFieldBuilderV3(mockParent); |
+ RepeatedFieldBuilder<TestAllTypes, TestAllTypes.Builder, |
+ TestAllTypesOrBuilder> builder = newRepeatedFieldBuilder(mockParent); |
builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(0).build()); |
builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(1).build()); |
assertEquals(0, builder.getMessage(0).getOptionalInt32()); |
@@ -97,8 +99,8 @@ public class RepeatedFieldBuilderV3Test extends TestCase { |
public void testVariousMethods() { |
TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); |
- RepeatedFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, |
- TestAllTypesOrBuilder> builder = newRepeatedFieldBuilderV3(mockParent); |
+ RepeatedFieldBuilder<TestAllTypes, TestAllTypes.Builder, |
+ TestAllTypesOrBuilder> builder = newRepeatedFieldBuilder(mockParent); |
builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(1).build()); |
builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(2).build()); |
builder.addBuilder(0, TestAllTypes.getDefaultInstance()) |
@@ -139,8 +141,8 @@ public class RepeatedFieldBuilderV3Test extends TestCase { |
public void testLists() { |
TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); |
- RepeatedFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, |
- TestAllTypesOrBuilder> builder = newRepeatedFieldBuilderV3(mockParent); |
+ RepeatedFieldBuilder<TestAllTypes, TestAllTypes.Builder, |
+ TestAllTypesOrBuilder> builder = newRepeatedFieldBuilder(mockParent); |
builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(1).build()); |
builder.addMessage(0, |
TestAllTypes.newBuilder().setOptionalInt32(0).build()); |
@@ -178,10 +180,10 @@ public class RepeatedFieldBuilderV3Test extends TestCase { |
} |
} |
- private RepeatedFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, |
+ private RepeatedFieldBuilder<TestAllTypes, TestAllTypes.Builder, |
TestAllTypesOrBuilder> |
- newRepeatedFieldBuilderV3(GeneratedMessage.BuilderParent parent) { |
- return new RepeatedFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, |
+ newRepeatedFieldBuilder(GeneratedMessage.BuilderParent parent) { |
+ return new RepeatedFieldBuilder<TestAllTypes, TestAllTypes.Builder, |
TestAllTypesOrBuilder>(Collections.<TestAllTypes>emptyList(), false, |
parent, false); |
} |