Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jvermillard committed Dec 23, 2022
1 parent a851b81 commit 4527744
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void test_application_data_from_authorizer() {
authorizer.willReturn(Authorization.approved(appData));

// handle REGISTER request
registrationHandler.register(givenIdenity(), givenRegisterRequestWithEndpoint("myEndpoint"));
registrationHandler.register(givenIdentity(), givenRegisterRequestWithEndpoint("myEndpoint"));

// check result
Registration registration = registrationStore.getRegistrationByEndpoint("myEndpoint");
Expand All @@ -77,7 +77,7 @@ public void test_application_data_from_authorizer() {
authorizer.willReturn(Authorization.approved(updatedAppData));

// handle UPDATE request
registrationHandler.update(givenIdenity(), givenUpdateRequestWithID(registration.getId()));
registrationHandler.update(givenIdentity(), givenUpdateRequestWithID(registration.getId()));

// check result
registration = registrationStore.getRegistrationByEndpoint("myEndpoint");
Expand All @@ -95,7 +95,7 @@ public void test_update_without_application_data_from_authorizer() {
authorizer.willReturn(Authorization.approved(appData));

// handle REGISTER request
registrationHandler.register(givenIdenity(), givenRegisterRequestWithEndpoint("myEndpoint"));
registrationHandler.register(givenIdentity(), givenRegisterRequestWithEndpoint("myEndpoint"));

// check result
Registration registration = registrationStore.getRegistrationByEndpoint("myEndpoint");
Expand All @@ -105,14 +105,14 @@ public void test_update_without_application_data_from_authorizer() {
authorizer.willReturn(Authorization.approved());

// handle UPDATE request
registrationHandler.update(givenIdenity(), givenUpdateRequestWithID(registration.getId()));
registrationHandler.update(givenIdentity(), givenUpdateRequestWithID(registration.getId()));

// check result
registration = registrationStore.getRegistrationByEndpoint("myEndpoint");
assertEquals(appData, registration.getApplicationData());
}

private Identity givenIdenity() {
private Identity givenIdentity() {
return Identity.unsecure(new InetSocketAddress(0));
}

Expand Down

0 comments on commit 4527744

Please sign in to comment.