Skip to content

Commit 5f81140

Browse files
More refatcoring
1 parent 98dab20 commit 5f81140

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cli/src/test/java/com/devonfw/tools/ide/tool/dotnet/DotNetTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ public void dotnetShouldInstallSuccessful() {
4242
toolRepositoryMock.setContext(context);
4343
CommandLetExtractorMock commandLetExtractorMock = new CommandLetExtractorMock(context);
4444

45-
DotNet comandlet = new DotNet(context);
46-
comandlet.setCommandletFileExtractor(commandLetExtractorMock);
47-
assignFakeUserHome(context, "dummyUserHome");
45+
DotNet commandlet = new DotNet(context);
46+
commandlet.setCommandletFileExtractor(commandLetExtractorMock);
47+
assignDummyUserHome(context, "dummyUserHome");
4848

4949
// act
50-
comandlet.install();
50+
commandlet.install();
5151

5252
// assert
5353

@@ -86,7 +86,7 @@ public void dotnetShouldInstallSuccessfulAndTryInstallTemplate() {
8686
DotNet comandlet = new DotNet(context);
8787
comandlet.setCommandletFileExtractor(commandLetExtractorMock);
8888

89-
assignFakeUserHome(context, "dummyEmptyUserHome");
89+
assignDummyUserHome(context, "dummyEmptyUserHome");
9090

9191
// installation may install template, so we set up a mocked processContext
9292

@@ -129,7 +129,7 @@ public void dotnetShouldRunExecutableSuccessful() {
129129
toolRepositoryMock.setContext(context);
130130
CommandLetExtractorMock commandLetExtractorMock = new CommandLetExtractorMock(context);
131131

132-
assignFakeUserHome(context, "dummyUserHome");
132+
assignDummyUserHome(context, "dummyUserHome");
133133

134134
DotNet comandlet = new DotNet(context);
135135
comandlet.setCommandletFileExtractor(commandLetExtractorMock);
@@ -160,7 +160,7 @@ public void argumentsShouldBeModifiedInCreateCase() throws IllegalAccessExceptio
160160
toolRepositoryMock.setContext(context);
161161
CommandLetExtractorMock commandLetExtractorMock = new CommandLetExtractorMock(context);
162162

163-
assignFakeUserHome(context, "dummyUserHome");
163+
assignDummyUserHome(context, "dummyUserHome");
164164

165165
DotNet comandlet = new DotNet(context);
166166
comandlet.setCommandletFileExtractor(commandLetExtractorMock);
@@ -202,7 +202,7 @@ private static void modifyArgumentsOfCommandlet(DotNet commandlet) throws Illega
202202
field.setAccessible(false);
203203
}
204204

205-
private static void assignFakeUserHome(IdeTestContext context, String pathString) {
205+
private static void assignDummyUserHome(IdeTestContext context, String pathString) {
206206

207207
Path dummyUserHomePath = PROJECTS_TARGET_PATH.resolve(PROJECT_TEST_CASE_NAME).resolve(pathString);
208208
context.setDummyUserHome(dummyUserHomePath);

0 commit comments

Comments
 (0)