Skip to content

Commit

Permalink
Optimize QuickStartAppTest
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielLiu1123 committed Feb 25, 2024
1 parent 486f0d8 commit e0a3bf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/quick-start/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ http-exchange:
channels:
- base-url: http://localhost:${server.port}
clients:
- com.example.api.*Api
- com.example.api.*
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ class QuickStartAppTest {
@Autowired
UserApi userApi;

@Autowired
UserApiBase userBaseApi;

@Test
void testGetUser_whenArgIsValid() {
assertThat(userApi).isNotInstanceOf(UserApiBase.class);
assertThat(userBaseApi).isNotInstanceOf(QuickStartApp.class);

assertThat(userApi.getById("1")).isEqualTo(userBaseApi.getById("1"));

UserApi.UserDTO user = userApi.getById("1");
assertThat(user.id()).isEqualTo("1");
Expand Down

0 comments on commit e0a3bf5

Please sign in to comment.