@Test(expected = NullPointerException.class) public void buildObject_null_oafRel() throws Exception { converter.convert(null); }
@Override public ProjectToOrganization convert(Relation relation) { Preconditions.checkNotNull(relation); ProjectToOrganization.Builder builder = ProjectToOrganization.newBuilder(); builder.setProjectId(relation.getSource()); builder.setOrganizationId(relation.getTarget()); return builder.build(); }
ProjectToOrganizationRelationConverter implements OafRelToAvroConverter<ProjectToOrganization> { @Override public ProjectToOrganization convert(Relation relation) { Preconditions.checkNotNull(relation); ProjectToOrganization.Builder builder = ProjectToOrganization.newBuilder(); builder.setProjectId(relation.getSource()); builder.setOrganizationId(relation.getTarget()); return builder.build(); } }
ProjectToOrganizationRelationConverter implements OafRelToAvroConverter<ProjectToOrganization> { @Override public ProjectToOrganization convert(Relation relation) { Preconditions.checkNotNull(relation); ProjectToOrganization.Builder builder = ProjectToOrganization.newBuilder(); builder.setProjectId(relation.getSource()); builder.setOrganizationId(relation.getTarget()); return builder.build(); }  }
ProjectToOrganizationRelationConverter implements OafRelToAvroConverter<ProjectToOrganization> { @Override public ProjectToOrganization convert(Relation relation) { Preconditions.checkNotNull(relation); ProjectToOrganization.Builder builder = ProjectToOrganization.newBuilder(); builder.setProjectId(relation.getSource()); builder.setOrganizationId(relation.getTarget()); return builder.build(); }  @Override ProjectToOrganization convert(Relation relation); }
ProjectToOrganizationRelationConverter implements OafRelToAvroConverter<ProjectToOrganization> { @Override public ProjectToOrganization convert(Relation relation) { Preconditions.checkNotNull(relation); ProjectToOrganization.Builder builder = ProjectToOrganization.newBuilder(); builder.setProjectId(relation.getSource()); builder.setOrganizationId(relation.getTarget()); return builder.build(); }  @Override ProjectToOrganization convert(Relation relation);  }