Skip to content

Commit

Permalink
devonfw#608: fixed tests
Browse files Browse the repository at this point in the history
added missing javadocs
fixed dotnet windows test script
  • Loading branch information
jan-vcapgemini committed Oct 7, 2024
1 parent 11dfda2 commit 88b1475
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
import com.devonfw.tools.ide.context.IdeContext;
import com.devonfw.tools.ide.tool.LocalToolCommandlet;

/**
* {@link LocalToolCommandlet} for <a href="https://docs.microsoft.com/en-us/dotnet/core/tools/">dotnet</a>. The .NET CLI (Command Line Interface)
* cross-platform tool for building, running, and managing .NET applications.
*/
public class DotNet extends LocalToolCommandlet {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ public void processWarningAndErrorShouldBeLogged(ProcessErrorHandling processErr
}

@Test
public void enablingCaptureShouldRedirectAndCaptureStreamsWithErrorsCorrectly() throws Exception {
public void enablingCaptureShouldRedirectAndCaptureStreamsWithErrorsCorrectly() {
// arrange
IdeTestContext context = newContext("processcontext");
SystemInfo systemInfo = SystemInfoMock.of("windows");
SystemInfo systemInfo = SystemInfoMock.of("linux");
context.setSystemInfo(systemInfo);

// act
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
import com.devonfw.tools.ide.os.SystemInfo;
import com.devonfw.tools.ide.os.SystemInfoMock;

/**
* Integration test of {@link DotNet}.
*/
public class DotNetTest extends AbstractIdeContextTest {

private static final Path PROJECTS_TARGET_PATH = Path.of("target/test-projects");
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
echo Dummy dotnet 6.0.419 on windows %*
#!/bin/bash

echo "Dummy dotnet 6.0.419 on windows $*"
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ echo "content to stdout"
echo "more content to stdout"
echo >&2 "error message to stderr"
echo >&2 "another error message to stderr"
return 1
exit 2

0 comments on commit 88b1475

Please sign in to comment.