Skip to content

Commit

Permalink
replace mock object by lombok in BuildConfigurationTest class
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Krutko <alexander.krutko@gmail.com>
  • Loading branch information
arsenalzp committed Mar 12, 2024
1 parent 69e7841 commit 1df7f1c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,10 @@ void cacheFrom() {

@Test
void testBuilder() {
AssemblyConfiguration mockAssemblyConfiguration = mock(AssemblyConfiguration.class);
// Given
when(mockAssemblyConfiguration.getName()).thenReturn("1337");
// When
final BuildConfiguration result = BuildConfiguration.builder()
.assembly(mockAssemblyConfiguration)
.assembly(AssemblyConfiguration.builder().name("1337").build())
.user("super-user")
.build();
// Then
Expand Down

0 comments on commit 1df7f1c

Please sign in to comment.