Skip to content

Commit

Permalink
incorporate changes from main to fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
the-gigi committed Jan 29, 2024
1 parent 39193ec commit 08f0e81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ interface SyncService {
Stream<Demo> getDemoStream(@Body RequestDemo request);
}

interface NotSavedService {

@GET("/demos")
CompletableFuture<List<Demo>> goodMethod();

}

@NoArgsConstructor
@AllArgsConstructor
@Getter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ void shouldSaveInterfaceMetadataWhenAccomplishValidtion() {
@Test
void shouldThrownExceptionWhenTryingToGetNotPreviouslySavedInterface() {
Exception exception = assertThrows(CleverClientException.class,
() -> store.get(ITest.SyncService.class));
assertEquals("The interface SyncService has not been saved yet.", exception.getMessage());
() -> store.get(ITest.NotSavedService.class));
assertEquals("The interface NotSavedService has not been saved yet.", exception.getMessage());
}

@Test
Expand All @@ -149,8 +149,8 @@ void shouldThrownExceptionWhenMethodHasNotHttpAnnotation() {
@Test
void shouldThrownExceptionWhenUrlPathParamAtMethodUnmatchesAnnotatedArguments() {
Exception exception = assertThrows(CleverClientException.class,
() -> store.save(ITest.BadPathParamService.class));
assertEquals(exception.getMessage(),
"Path param demoId in the url cannot find an annotated argument in the method unmatchedPathParamMethod.");
() -> store.save(ITest.BadPathParamService.class));
assertEquals("Path param demoId in the url cannot find an annotated argument in the method unmatchedPathParamMethod.",
exception.getMessage());
}
}
}

0 comments on commit 08f0e81

Please sign in to comment.