Fixed the test for NonExistentDriver

This commit is contained in:
workdone0 2024-04-29 16:44:25 +05:30
parent 9a17655ea7
commit 34dc3264ec

View File

@ -25,9 +25,10 @@ public class NBCLITest {
@Test
public void testNonExistentDriverThrowsError() {
final NBCLI cli = new NBCLI("nb5");
assertThatExceptionOfType(BasicError.class)
.isThrownBy(() -> new NBCLI("run driver=nonexistent --show-stacktraces"))
.withMessageContaining("Unable to load default driver adapter 'nonexistent'");
.isThrownBy(() -> cli.applyDirect(new String[] {"run", "driver=nonexistent"}))
.withMessageContaining("Unable to load default driver adapter 'nonexistent'");;
}
}