-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lmu
committed
Jul 22, 2022
1 parent
753c774
commit 1c96d30
Showing
5 changed files
with
69 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package ivy.lombok.example; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@Builder(toBuilder = true) | ||
@NoArgsConstructor(access = AccessLevel.PRIVATE) | ||
@AllArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class User { | ||
private String name; | ||
private String email; | ||
} |
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
19 changes: 0 additions & 19 deletions
19
IvyLombokExampleTest/src_test/ivy/lombok/example/test/SampleIvyTest.java
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
IvyLombokExampleTest/src_test/ivy/lombok/example/test/UserTest.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,23 @@ | ||
package ivy.lombok.example.test; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import ch.ivyteam.ivy.environment.IvyTest; | ||
import ivy.lombok.example.User; | ||
|
||
@IvyTest | ||
public class UserTest{ | ||
|
||
@Test | ||
public void user(){ | ||
var user = User.builder() | ||
.name("Trudy") | ||
.email("[email protected]") | ||
.build(); | ||
assertThat(user.getName()).isEqualTo("Trudy"); | ||
assertThat(user.getEmail()).isEqualTo("[email protected]"); | ||
} | ||
|
||
} |