diff --git a/src/test/java/io/github/sashirestela/cleverclient/http/ITest.java b/src/test/java/io/github/sashirestela/cleverclient/http/ITest.java index 003c0d5..e37c591 100644 --- a/src/test/java/io/github/sashirestela/cleverclient/http/ITest.java +++ b/src/test/java/io/github/sashirestela/cleverclient/http/ITest.java @@ -114,6 +114,13 @@ interface SyncService { Stream getDemoStream(@Body RequestDemo request); } + interface NotSavedService { + + @GET("/demos") + CompletableFuture> goodMethod(); + + } + @NoArgsConstructor @AllArgsConstructor @Getter diff --git a/src/test/java/io/github/sashirestela/cleverclient/metadata/InterfaceMetadataStoreTest.java b/src/test/java/io/github/sashirestela/cleverclient/metadata/InterfaceMetadataStoreTest.java index c840e4c..5a03b79 100644 --- a/src/test/java/io/github/sashirestela/cleverclient/metadata/InterfaceMetadataStoreTest.java +++ b/src/test/java/io/github/sashirestela/cleverclient/metadata/InterfaceMetadataStoreTest.java @@ -134,9 +134,9 @@ void shouldSaveInterfaceMetadataWhenAccomplishValidtion() { @Test void shouldThrownExceptionWhenTryingToGetNotPreviouslySavedInterface() { Exception exception = assertThrows(CleverClientException.class, - () -> store.get(ITest.SyncService.class)); + () -> store.get(ITest.NotSavedService.class)); assertTrue(exception.getMessage().equals( - "The interaface SyncService has not been saved yet.")); + "The interaface NotSavedService has not been saved yet.")); } @Test