Skip to content

Commit

Permalink
fix: fix failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
befc committed Nov 29, 2024
1 parent a37ddc4 commit b1d7557
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
import org.pentaho.platform.api.engine.ObjectFactoryException;
import org.pentaho.platform.engine.core.system.PentahoSystem;
import static org.junit.Assert.assertTrue;
import static org.mockito.ArgumentMatchers.nullable;
import static org.mockito.ArgumentMatchers.argThat;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
Expand Down Expand Up @@ -99,7 +98,7 @@ public void testConnect() {
doNothing().when( sqlc ).init( nullable( String.class ), nullable( String.class ), nullable( String.class ), nullable( String.class ) );
assertTrue( "NonPool Test", sqlc.connect( props ) );

doNothing().when( sqlc ).initDataSource( nullable( IDatabaseConnection.class ), true );
doNothing().when( sqlc ).initDataSource( nullable( IDatabaseConnection.class ), eq( false ) );

props.put( IPentahoConnection.CONNECTION_NAME, "test" );
assertTrue( "Pool Test", sqlc.connect( props ) );
Expand Down

0 comments on commit b1d7557

Please sign in to comment.