Skip to content

Commit

Permalink
Added error handling and default logic for Flink version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
gjacoby126 committed Jan 9, 2024
1 parent c153f38 commit 7428ec2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public void testVersion() {

@Test
public void testDefaultVersion() {
// It's difficult to reproduce a reflection error in a unit test, so we just inject a mocked fault to test
// It's difficult to reproduce a reflection error in a unit test, so we just inject a mocked
// fault to test
// the default logic
FlinkVersionDetector detectorWithReflectionError = Mockito.spy(FlinkVersionDetector.class);
Mockito.when(detectorWithReflectionError.getVersionFromJar()).thenThrow(RuntimeException.class);
Expand Down

0 comments on commit 7428ec2

Please sign in to comment.