Skip to content

Commit

Permalink
fix: return StsClient from create() (#4479)
Browse files Browse the repository at this point in the history
* fix: return StsClient from create()

* DEPENDENCIES
  • Loading branch information
paullatzelsperger authored Sep 18, 2024
1 parent d8552b2 commit 5774b8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DEPENDENCIES
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ maven/mavencentral/net.javacrumbs.json-unit/json-unit-core/2.36.0, Apache-2.0, a
maven/mavencentral/net.minidev/accessors-smart/2.4.7, Apache-2.0, approved, #7515
maven/mavencentral/net.minidev/json-smart/2.4.7, Apache-2.0, approved, #3288
maven/mavencentral/net.sf.jopt-simple/jopt-simple/5.0.4, MIT, approved, CQ13174
maven/mavencentral/net.sf.saxon/Saxon-HE/12.5, MPL-2.0-no-copyleft-exception AND (LicenseRef-scancode-proprietary-license AND MPL-2.0-no-copyleft-exception) AND (MPL-2.0-no-copyleft-exception AND X11) AND (MIT AND MPL-2.0-no-copyleft-exception) AND (MPL-1.0 AND MPL-2.0-no-copyleft-exception) AND (Apache-2.0 AND MPL-2.0-no-copyleft-exception) AND MPL-1.0, restricted, #16061
maven/mavencentral/net.sf.saxon/Saxon-HE/12.5, W3C-19980720 AND MPL-2.0 AND MPL-1.0, approved, #16061
maven/mavencentral/org.antlr/antlr4-runtime/4.13.2, BSD-3-Clause, approved, #10767
maven/mavencentral/org.apache.commons/commons-compress/1.24.0, Apache-2.0 AND BSD-3-Clause AND bzip2-1.0.6 AND LicenseRef-Public-Domain, approved, #10368
maven/mavencentral/org.apache.commons/commons-digester3/3.2, Apache-2.0, approved, clearlydefined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public StoreResult<StsClient> create(StsClient client) {
client.getCreatedAt()
);

return StoreResult.success();
return StoreResult.success(client);
} catch (Exception e) {
throw new EdcPersistenceException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Create {
@DisplayName("Save a single client that not exists")
void create() {
var client = createClient(getRandomId());
assertThat(getStsClientStore().create(client)).isSucceeded();
assertThat(getStsClientStore().create(client)).isSucceeded().usingRecursiveComparison().isEqualTo(client);

var clientFromDb = getStsClientStore().findByClientId(client.getId()).getContent();
assertThat(client).usingRecursiveComparison().isEqualTo(clientFromDb);
Expand Down

0 comments on commit 5774b8c

Please sign in to comment.