Skip to content

Commit

Permalink
rename PhLLaunchImageCommantTest to PhLLaunchImageCommantTest and PhL…
Browse files Browse the repository at this point in the history
…LaunchImageCommant2Test to PhLLaunchImageCommantTest
  • Loading branch information
demarey committed Jan 15, 2020
1 parent c39fcdb commit 8462b31
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
@@ -1,5 +1,5 @@
Class {
#name : #PhLLaunchImageCommand2Test,
#name : #PhLLaunchImageCommandTest,
#superclass : #TestCase,
#instVars : [
'presenter',
Expand All @@ -9,14 +9,14 @@ Class {
}

{ #category : #running }
PhLLaunchImageCommand2Test >> setUp [
PhLLaunchImageCommandTest >> setUp [
presenter := PhLTestImagesPresenter new.
imageDir := FileLocator temp / 'pharo-launcher-tests-launch-image-command', UUIDGenerator next asString.
imageDir ensureCreateDirectory.
]

{ #category : #tests }
PhLLaunchImageCommand2Test >> testCanLaunchImage [
PhLLaunchImageCommandTest >> testCanLaunchImage [
| command image |
command := PhLLaunchImageCommand new.
command context: presenter.
Expand Down
@@ -1,5 +1,5 @@
Class {
#name : #PhLLaunchImageCommandTest,
#name : #PhLLaunchImageTest,
#superclass : #TestCase,
#instVars : [
'launchInALoginShellBackup',
Expand All @@ -11,15 +11,15 @@ Class {
}

{ #category : #tests }
PhLLaunchImageCommandTest >> pharo80HeadlessVm [
PhLLaunchImageTest >> pharo80HeadlessVm [
^ PhLVirtualMachineManager new virtualMachines
detect: [ :each | each id = '80-x64-headless' ]
ifFound: [ :vm | vm isValidAfterUpdate. vm ]
ifNone: [ self fail: 'cannot find VM!' ]
]

{ #category : #tests }
PhLLaunchImageCommandTest >> prepare80imageIn: dir [
PhLLaunchImageTest >> prepare80imageIn: dir [
| imageFile |
ZnClient new
url: 'https://files.pharo.org/image/80/latest-minimal-64.zip';
Expand All @@ -34,7 +34,7 @@ PhLLaunchImageCommandTest >> prepare80imageIn: dir [
]

{ #category : #running }
PhLLaunchImageCommandTest >> setUp [
PhLLaunchImageTest >> setUp [
launchInALoginShellBackup := PhLLaunchConfiguration launchInALoginShell.
PhLLaunchConfiguration launchInALoginShell: false.
imageDir := FileLocator temp / 'Yann-Gaël Bérès', UUIDGenerator next asString.
Expand All @@ -47,15 +47,15 @@ PhLLaunchImageCommandTest >> setUp [
]

{ #category : #running }
PhLLaunchImageCommandTest >> tearDown [
PhLLaunchImageTest >> tearDown [
"imageDir ensureDeleteAll "
PhLLaunchConfiguration launchInALoginShell: launchInALoginShellBackup.
tempVmStoreFolder ensureDeleteAll.
PhLVirtualMachineManager vmStore: vmStoreBackup.
]

{ #category : #tests }
PhLLaunchImageCommandTest >> testCanLaunchImageWithHeadlessVM [
PhLLaunchImageTest >> testCanLaunchImageWithHeadlessVM [
| dir vm image config |
dir := (FileLocator temp / ('PL-LaunchTest-' , UUIDGenerator next asString)) ensureCreateDirectory.
image := self prepare80imageIn: dir.
Expand All @@ -80,7 +80,7 @@ PhLLaunchImageCommandTest >> testCanLaunchImageWithHeadlessVM [
]
{ #category : #tests }
PhLLaunchImageCommandTest >> testCanLaunchImageWithNonAsciiCharacters [
PhLLaunchImageTest >> testCanLaunchImageWithNonAsciiCharacters [
| image |
FileLocator image copyTo: imageDir / FileLocator image basename.
Expand All @@ -98,14 +98,14 @@ PhLLaunchImageCommandTest >> testCanLaunchImageWithNonAsciiCharacters [
]
{ #category : #tests }
PhLLaunchImageCommandTest >> testCanLaunchImageWithNonAsciiCharactersUsingLoginShell [
PhLLaunchImageTest >> testCanLaunchImageWithNonAsciiCharactersUsingLoginShell [
PhLLaunchConfiguration launchInALoginShell: true.
self testCanLaunchImageWithNonAsciiCharacters.
]
{ #category : #tests }
PhLLaunchImageCommandTest >> testLaunchImageSetShouldRunInitilizationScriptToFalse [
PhLLaunchImageTest >> testLaunchImageSetShouldRunInitilizationScriptToFalse [
| image |
FileLocator image copyTo: imageDir / FileLocator image basename.
Expand Down

0 comments on commit 8462b31

Please sign in to comment.