-
Notifications
You must be signed in to change notification settings - Fork 24
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
47f7b23
commit 4c47f1f
Showing
2 changed files
with
35 additions
and
0 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
29 changes: 29 additions & 0 deletions
29
cli/src/test/java/com/devonfw/tools/ide/commandlet/StatusCommandletTest.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.commandlet; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import com.devonfw.tools.ide.cli.CliArguments; | ||
import com.devonfw.tools.ide.context.AbstractIdeContextTest; | ||
import com.devonfw.tools.ide.context.IdeTestContext; | ||
|
||
/** | ||
* Test of {@link StatusCommandlet}. | ||
*/ | ||
public class StatusCommandletTest extends AbstractIdeContextTest { | ||
|
||
private static final String PROJECT_BASIC = "basic"; | ||
|
||
@Test | ||
public void testStatusOutsideOfHome() { | ||
//arrange | ||
IdeTestContext context = new IdeTestContext(); | ||
CliArguments args = new CliArguments("status"); | ||
args.next(); | ||
|
||
//act | ||
context.run(args); | ||
|
||
//assert | ||
assertThat(context).logAtWarning().hasMessageContaining("You are not inside an IDE installation: "); | ||
} | ||
} |