@@ -30,7 +30,7 @@ import * as myExplorer from '../../../views/projects';
3030import { CodeAction , commands , extensions , Selection , Uri , window , workspace , TreeItem } from 'vscode' ;
3131import { assertWorkspace , awaitClient , dumpJava , findClusters , getFilePaths , openFile , prepareProject , replaceCode } from '../../testutils' ;
3232import { FORMATTED_POM_XML , SAMPLE_CODE_FORMAT_DOCUMENT , SAMPLE_CODE_SORT_IMPORTS , SAMPLE_CODE_UNUSED_IMPORTS } from '../../constants' ;
33- import { extConstants } from '../../../constants ' ;
33+ import { extCommands } from '../../../commands/commands ' ;
3434
3535suite ( 'Extension Test Suite' , function ( ) {
3636 window . showInformationMessage ( 'Start all tests.' ) ;
@@ -166,7 +166,7 @@ suite('Extension Test Suite', function () {
166166 if ( refactorActions && refactorActions . length > 0 ) {
167167 for await ( const action of refactorActions ) {
168168 if ( action . command && action . command . arguments ) {
169- if ( action . command . command === extConstants . COMMAND_PREFIX + ".surround.with" ) {
169+ if ( action . command . command === extCommands . surroundWith ) {
170170 //this action has a popup where the user needs to
171171 //select a template that should be used for the surround:
172172 continue ;
@@ -197,7 +197,7 @@ suite('Extension Test Suite', function () {
197197 assert . strictEqual ( tests [ 1 ] . tests [ 0 ] . name , 'testTrue' , `Invalid test name returned` ) ;
198198
199199 console . log ( "Test: run all workspace tests" ) ;
200- await vscode . commands . executeCommand ( extConstants . COMMAND_PREFIX + '.run.test' , workspaceFolder . uri . toString ( ) ) ;
200+ await vscode . commands . executeCommand ( extCommands . runTest , workspaceFolder . uri . toString ( ) ) ;
201201 console . log ( `Test: run all workspace tests finished` ) ;
202202 } catch ( error ) {
203203 dumpJava ( ) ;
0 commit comments