Skip to content

Commit

Permalink
Delombok test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Jun 20, 2023
1 parent 386f0b7 commit e950084
Show file tree
Hide file tree
Showing 58 changed files with 3,373 additions and 740 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@

import static org.assertj.core.api.Assertions.*;

import lombok.Data;
import lombok.experimental.Wither;

import java.util.concurrent.Future;

import org.junit.jupiter.api.BeforeEach;
Expand Down Expand Up @@ -141,8 +138,6 @@ private static <T> T getUninterruptibly(Future<T> future) {
}
}

@Data
@Wither
static class VersionedEntity {

@Id final long id;
Expand All @@ -161,5 +156,29 @@ private VersionedEntity(long id, long version, String name) {
this.version = version;
this.name = name;
}

public long getId() {
return this.id;
}

public long getVersion() {
return this.version;
}

public String getName() {
return this.name;
}

public VersionedEntity withId(long id) {
return new VersionedEntity(id, this.version, this.name);
}

public VersionedEntity withVersion(long version) {
return new VersionedEntity(this.id, version, this.name);
}

public VersionedEntity withName(String name) {
return new VersionedEntity(this.id, this.version, name);
}
}
}
Loading

0 comments on commit e950084

Please sign in to comment.