RowBuilder implements Row { @Override public RowData build(final Context context, final TableType tableType) { final Map<FieldType, FieldHolder> typeToHolderIndex = createTypeToHolderIndex(tableType); final List<FieldData> fields = mapFieldsToContainers(context, tableType, typeToHolderIndex); return new ImmutableRowData(fields); } RowBuilder(final long binding); @Override Row f(final FieldTypeReference fieldTypeReference, @Nullable final Object value); @Override RowData build(final Context context, final TableType tableType);  }
@Test public void aRowWithJustDefaults_should_buildThatRow() { assertThat( new RowBuilder((long) 23).build(context, tableType), is(sb.row( sb.field(ExampleTable.PROP_A, "23"), sb.field(ExampleTable.PROP_B, "23") )) ); }