@Test public void verifyDelegationOfIsTransactionOpenMethod() throws CommandException { CypherShell shell = new CypherShell(logger, mockedBoltStateHandler, mockedPrettyPrinter, new ShellParameterMap()); shell.isTransactionOpen(); verify(mockedBoltStateHandler).isTransactionOpen(); }
@Override public boolean isTransactionOpen() { return boltStateHandler.isTransactionOpen(); }
CypherShell implements StatementExecuter, Connector, TransactionHandler, DatabaseManager { @Override public boolean isTransactionOpen() { return boltStateHandler.isTransactionOpen(); } }
CypherShell implements StatementExecuter, Connector, TransactionHandler, DatabaseManager { @Override public boolean isTransactionOpen() { return boltStateHandler.isTransactionOpen(); } CypherShell(@Nonnull LinePrinter linePrinter,
                       @Nonnull PrettyConfig prettyConfig,
                       boolean isInteractive,
                       ParameterMap parameterMap); protected  CypherShell(@Nonnull LinePrinter linePrinter,
                          @Nonnull BoltStateHandler boltStateHandler,
                          @Nonnull PrettyPrinter prettyPrinter,
                          ParameterMap parameterMap); }
CypherShell implements StatementExecuter, Connector, TransactionHandler, DatabaseManager { @Override public boolean isTransactionOpen() { return boltStateHandler.isTransactionOpen(); } CypherShell(@Nonnull LinePrinter linePrinter,
                       @Nonnull PrettyConfig prettyConfig,
                       boolean isInteractive,
                       ParameterMap parameterMap); protected  CypherShell(@Nonnull LinePrinter linePrinter,
                          @Nonnull BoltStateHandler boltStateHandler,
                          @Nonnull PrettyPrinter prettyPrinter,
                          ParameterMap parameterMap); @Override void execute(@Nonnull final String cmdString); @Override String lastNeo4jErrorCode(); @Override boolean isConnected(); @Override void connect( @Nonnull ConnectionConfig connectionConfig,
            ThrowingAction<CommandException> command); @Nonnull @Override String getServerVersion(); @Override void beginTransaction(); @Override void commitTransaction(); @Override void rollbackTransaction(); @Override boolean isTransactionOpen(); void setCommandHelper(@Nonnull CommandHelper commandHelper); @Override void reset(); @Override void setActiveDatabase(String databaseName); @Override String getActiveDatabaseAsSetByUser(); @Override String getActualDatabaseAsReportedByServer(); ParameterMap getParameterMap(); void changePassword(@Nonnull ConnectionConfig connectionConfig); void disconnect(); }
CypherShell implements StatementExecuter, Connector, TransactionHandler, DatabaseManager { @Override public boolean isTransactionOpen() { return boltStateHandler.isTransactionOpen(); } CypherShell(@Nonnull LinePrinter linePrinter,
                       @Nonnull PrettyConfig prettyConfig,
                       boolean isInteractive,
                       ParameterMap parameterMap); protected  CypherShell(@Nonnull LinePrinter linePrinter,
                          @Nonnull BoltStateHandler boltStateHandler,
                          @Nonnull PrettyPrinter prettyPrinter,
                          ParameterMap parameterMap); @Override void execute(@Nonnull final String cmdString); @Override String lastNeo4jErrorCode(); @Override boolean isConnected(); @Override void connect( @Nonnull ConnectionConfig connectionConfig,
            ThrowingAction<CommandException> command); @Nonnull @Override String getServerVersion(); @Override void beginTransaction(); @Override void commitTransaction(); @Override void rollbackTransaction(); @Override boolean isTransactionOpen(); void setCommandHelper(@Nonnull CommandHelper commandHelper); @Override void reset(); @Override void setActiveDatabase(String databaseName); @Override String getActiveDatabaseAsSetByUser(); @Override String getActualDatabaseAsReportedByServer(); ParameterMap getParameterMap(); void changePassword(@Nonnull ConnectionConfig connectionConfig); void disconnect();  }