python/rpdk/java/templates/init/default/StubHandlerTest.java [17:40]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ExtendWith(MockitoExtension.class)
public class {{ operation }}HandlerTest {

    @Mock
    private AmazonWebServicesClientProxy proxy;

    @Mock
    private Logger logger;

    @BeforeEach
    public void setup() {
        proxy = mock(AmazonWebServicesClientProxy.class);
        logger = mock(Logger.class);
    }

    @Test
    public void handleRequest_SimpleSuccess() {
        final {{ operation }}Handler handler = new {{ operation }}Handler();

        final {{ pojo_name }} model = {{ pojo_name }}.builder().build();

        final ResourceHandlerRequest<{{ pojo_name }}> request = ResourceHandlerRequest.<{{ pojo_name }}>builder()
            .desiredResourceState(model)
            .build();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



python/rpdk/java/templates/init/guided_aws/StubListHandlerTest.java [17:40]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ExtendWith(MockitoExtension.class)
public class {{ operation }}HandlerTest {

    @Mock
    private AmazonWebServicesClientProxy proxy;

    @Mock
    private Logger logger;

    @BeforeEach
    public void setup() {
        proxy = mock(AmazonWebServicesClientProxy.class);
        logger = mock(Logger.class);
    }

    @Test
    public void handleRequest_SimpleSuccess() {
        final {{ operation }}Handler handler = new {{ operation }}Handler();

        final {{ pojo_name }} model = {{ pojo_name }}.builder().build();

        final ResourceHandlerRequest<{{ pojo_name }}> request = ResourceHandlerRequest.<{{ pojo_name }}>builder()
            .desiredResourceState(model)
            .build();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



