use of protos.TypicalDataSet in project j2objc by google.
the class CompatibilityTest method testSetAndGetRepeatedTypicalData.
public void testSetAndGetRepeatedTypicalData() throws Exception {
TypicalData data = TypicalData.newBuilder().setMyInt(42).build();
TypicalDataSet dataset = TypicalDataSet.newBuilder().addRepeatedTypicalData(data).build();
assertEquals(1, dataset.getRepeatedTypicalDataCount());
assertEquals(42, dataset.getRepeatedTypicalData(0).getMyInt());
}
Aggregations