Skip to content

Commit

Permalink
fixes #59 - always use annotation API
Browse files Browse the repository at this point in the history
to determine executable utPLSQL test units before executing a test
  • Loading branch information
PhilippSalvisberg committed Apr 28, 2019
1 parent 260f55a commit f019a4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ class UtplsqlController implements Controller {
connectionName = view.connectionName
}
logger.fine('''connectionName: «connectionName»''')
val preferences = PreferenceModel.getInstance(Preferences.preferences)
val parser = new UtplsqlParser(component.text, if (preferences.checkRunUtplsqlTest) {Connections.instance.getConnection(connectionName)} else {null}, owner)
// issue 59 - always use a connection to ensure the utPL/SQL annotation API is used
val parser = new UtplsqlParser(component.text, Connections.instance.getConnection(connectionName), owner)
val position = component.caretPosition
val path = parser.getPathAt(position)
val utPlsqlWorksheet = new UtplsqlWorksheet(path.pathList, connectionName)
Expand Down

0 comments on commit f019a4e

Please sign in to comment.