-
Notifications
You must be signed in to change notification settings - Fork 0
/
LollipopConsumerCommandBuilderImplTest.java
34 lines (28 loc) · 1.27 KB
/
LollipopConsumerCommandBuilderImplTest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* (C)2023 */
package it.pagopa.tech.lollipop.consumer.command.impl;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.*;
import it.pagopa.tech.lollipop.consumer.command.LollipopConsumerCommand;
import it.pagopa.tech.lollipop.consumer.command.LollipopConsumerCommandBuilder;
import it.pagopa.tech.lollipop.consumer.helper.LollipopConsumerFactoryHelper;
import it.pagopa.tech.lollipop.consumer.model.LollipopConsumerRequest;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
class LollipopConsumerCommandBuilderImplTest {
LollipopConsumerCommandBuilder lollipopConsumerCommandBuilder;
@BeforeEach
void beforeAll() {
LollipopConsumerFactoryHelper lollipopConsumerFactoryHelper =
Mockito.mock(LollipopConsumerFactoryHelper.class);
lollipopConsumerCommandBuilder =
new LollipopConsumerCommandBuilderImpl(lollipopConsumerFactoryHelper);
}
@Test
void testThatCreatsCommand() {
assertThat(
lollipopConsumerCommandBuilder.createCommand(
Mockito.mock(LollipopConsumerRequest.class)))
.isInstanceOf(LollipopConsumerCommand.class);
}
}