-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
6cb3765
commit 1e5e98d
Showing
10 changed files
with
55 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
cli/src/test/java/com/devonfw/tools/ide/tool/ide/IdeToolCommandletTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.devonfw.tools.ide.tool.ide; | ||
|
||
import java.nio.file.Path; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import com.devonfw.tools.ide.context.AbstractIdeContextTest; | ||
import com.devonfw.tools.ide.context.IdeContext; | ||
import com.devonfw.tools.ide.tool.intellij.Intellij; | ||
|
||
/** | ||
* Test of {@link IdeToolCommandlet}. | ||
*/ | ||
public class IdeToolCommandletTest extends AbstractIdeContextTest { | ||
|
||
/** | ||
* Tests if .editorconfig was copied to workspace-folder after running an ide-tool. | ||
*/ | ||
@Test | ||
public void testConfigureWorkspace() { | ||
// arrange | ||
IdeContext context = newContext("intellij"); | ||
Path workspace = context.getWorkspacePath(); | ||
// act | ||
context.getCommandletManager().getCommandlet(Intellij.class).run(); | ||
// assert | ||
assertThat(workspace.resolve(".editorconfig")).exists(); | ||
} | ||
} |
Empty file.
Empty file.
Empty file.
17 changes: 17 additions & 0 deletions
17
cli/src/test/resources/ide-projects/intellij/project/settings/workspace/update/.editorconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 7 | ||
indent_style = space | ||
insert_final_newline = true | ||
max_line_length = 160 | ||
tab_width = 2 | ||
ij_continuation_indent_size = 4 | ||
ij_formatter_off_tag = @formatter:off | ||
ij_formatter_on_tag = @formatter:on | ||
ij_formatter_tags_enabled = true | ||
ij_smart_tabs = false | ||
ij_visual_guides = | ||
ij_wrap_on_typing = false |