@@ -4,8 +4,8 @@ import java.nio.file.FileSystems
44import java.nio.file.Files
55
66import static cucumber.api.groovy.EN.And
7+ import static sdkman.support.FilesystemUtils.prepareCandidateBinFolder
78import static sdkman.support.FilesystemUtils.prepareCandidateWithVersionFolder
8- import static sdkman.support.FilesystemUtils.prepareLocalCandidateWithVersionFolder
99
1010And (~' ^the candidate "([^"]*)" version "([^"]*)" is installed$' ) { String candidate , String version ->
1111 def file = " ${ candidatesDir} /${ candidate} /${ version} " as File
@@ -47,7 +47,7 @@ And(~'^the candidate "([^"]*)" does not exist locally$') { String candidate ->
4747}
4848
4949And (~' ^I have a local candidate "([^"]*)" version "([^"]*)" at "([^"]*)"$' ) { String candidate , String version , String directory ->
50- prepareLocalCandidateWithVersionFolder directory, candidate, version
50+ prepareCandidateBinFolder directory, candidate, version
5151}
5252
5353And (~' ^the candidate "([^"]*)" version "([^"]*)" is linked to "([^"]*)"$' ) { String candidate , String version , String directory ->
@@ -69,7 +69,7 @@ And(~'^the candidate "([^"]*)" version "([^"]*)" is already linked to "([^"]*)"$
6969 candidateFolder. mkdirs()
7070
7171 def link = fileSystem. getPath(" $candidatesDir /$candidate /$version " )
72- def target = prepareLocalCandidateWithVersionFolder (folder, candidate, version)
72+ def target = prepareCandidateBinFolder (folder, candidate, version)
7373
7474 Files . createSymbolicLink(link, target)
7575}
0 commit comments