Search in sources :

Example 1 with TypicalDataSet

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());
}
Also used : TypicalDataSet(protos.TypicalDataSet) TypicalData(protos.TypicalData)

Aggregations

TypicalData (protos.TypicalData)1 TypicalDataSet (protos.TypicalDataSet)1