Skip to content

Commit

Permalink
Replace deprecated asList method with asInstanceOf
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Renfro <[email protected]>
  • Loading branch information
cppwfs authored Nov 13, 2024
1 parent 5a5c017 commit 694f0ef
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import com.fasterxml.jackson.databind.MappingIterator;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLMapper;
import org.assertj.core.api.InstanceOfAssertFactories;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -251,7 +252,7 @@ void saveAndDeploy(Map<String, String> deploymentProps, Map<String, String> expe
assertThat(sd.getName()).isEqualTo(streamName);
assertThat(sd.getDslText()).isEqualTo(definition);
})
.map(this.streamDefinitionService::getAppDefinitions).get().asList()
.map(this.streamDefinitionService::getAppDefinitions).get().asInstanceOf(InstanceOfAssertFactories.LIST)
.extracting("name").containsExactly("time", "log");

ArgumentCaptor<UploadRequest> uploadRequestCaptor = ArgumentCaptor.forClass(UploadRequest.class);
Expand Down

0 comments on commit 694f0ef

Please sign in to comment.