Skip to content

Commit

Permalink
ARC-1700: Rename Mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrichner-oviva committed May 23, 2024
1 parent c0ffee6 commit c0ffee0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
import io.grpc.StatusRuntimeException;

public class SpiceDbPermissionServiceImpl implements PermissionService {
private final CreateRelationshipUpdateToSpiceDBUpdateRelationshipMapper updateRelationshipMapper =
new CreateRelationshipUpdateToSpiceDBUpdateRelationshipMapper();
private final UpdateRelationshipMapper updateRelationshipMapper = new UpdateRelationshipMapper();
private final PreconditionMapper preconditionMapper = new PreconditionMapper();

private final PermissionsServiceGrpc.PermissionsServiceBlockingStub permissionsService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.authzed.api.v1.Core;
import com.oviva.spicegen.api.UpdateRelationship;

public class CreateRelationshipUpdateToSpiceDBUpdateRelationshipMapper {
public class UpdateRelationshipMapper {

private final ObjectReferenceMapper objectReferenceMapper = new ObjectReferenceMapper();
private final SubjectReferenceMapper subjectReferenceMapper = new SubjectReferenceMapper();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@
import com.oviva.spicegen.api.UpdateRelationship;
import org.junit.jupiter.api.Test;

public class CreateRelationshipUpdateToSpiceDBUpdateRelationshipMapperTest {
public class UpdateRelationshipMapperTest {

private static final String TENANT = "tenant";
private static final String USER = "user";
private static final String ADMINISTRATOR = "administrator";
private static final String ID = "9392";

private final CreateRelationshipUpdateToSpiceDBUpdateRelationshipMapper mapper =
new CreateRelationshipUpdateToSpiceDBUpdateRelationshipMapper();
private final UpdateRelationshipMapper mapper = new UpdateRelationshipMapper();

@Test
public void test_mapper_withUpdateOperation() {
Expand Down

0 comments on commit c0ffee0

Please sign in to comment.