Skip to content

Commit

Permalink
Removed debugging information
Browse files Browse the repository at this point in the history
  • Loading branch information
ricall committed May 22, 2021
1 parent 5351789 commit c2c6dd0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This JUnit 5 libary provides a way to create a sftp server that can be used for
Add the dependency to gradle

```groovy
testImplementation 'io.github.ricall.junit5-sftp:junit5-sftp:2.0.0'
testImplementation 'io.github.ricall.junit5-sftp:junit5-sftp:2.0.1'
```

### Maven
Expand All @@ -23,7 +23,7 @@ Add the dependency to mvn pom.xml
<dependency>
<groupId>io.github.ricall.junit5-sftp</groupId>
<artifactId>junit5-sftp</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
<scope>test</scope>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group 'io.github.ricall.junit5-sftp'
version '2.0.0'
version '2.0.1'

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,18 @@ public class LifecycleAwareEmbeddedSftpServer
public static final String SERVER_KEY = DefaultEmbeddedSftpServer.class.getName();

private final SftpConfiguration configuration;
private transient boolean serverPerMethod;

@Delegate
private transient EmbeddedSftpServer server;
private transient boolean serverPerMethod;

@Override
public void beforeAll(final ExtensionContext context) {
System.out.format("*** before all ***%n");
initialiseServer(context);
}

@Override
public void beforeEach(final ExtensionContext context) {
System.out.format("*** before each ***%n");
if (this.server == null) {
serverPerMethod = true;
initialiseServer(context);
Expand All @@ -65,15 +63,13 @@ public void beforeEach(final ExtensionContext context) {

@Override
public void afterEach(final ExtensionContext context) {
System.out.format("*** after each ***%n");
if (serverPerMethod) {
cleanupServer(context);
}
}

@Override
public void afterAll(final ExtensionContext context) {
System.out.format("*** after all ***%n");
if (server != null) {
cleanupServer(context);
}
Expand Down

0 comments on commit c2c6dd0

Please sign in to comment.