File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
python/rpdk/java/templates/init/guided_aws Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 77import software .amazon .cloudformation .proxy .ProgressEvent ;
88import software .amazon .cloudformation .proxy .ProxyClient ;
99import software .amazon .cloudformation .proxy .ResourceHandlerRequest ;
10+ import org .junit .jupiter .api .AfterEach ;
1011import org .junit .jupiter .api .BeforeEach ;
1112import org .junit .jupiter .api .Test ;
1213import org .junit .jupiter .api .extension .ExtendWith ;
1516
1617import static org .assertj .core .api .Assertions .assertThat ;
1718import static org .mockito .Mockito .mock ;
19+ import static org .mockito .Mockito .atLeastOnce ;
20+ import static org .mockito .Mockito .verify ;
21+ import static org .mockito .Mockito .verifyNoMoreInteractions ;
1822
1923@ ExtendWith (MockitoExtension .class )
2024public class {{ operation }}HandlerTest extends AbstractTestBase {
@@ -35,6 +39,12 @@ public void setup() {
3539 proxyClient = MOCK_PROXY (proxy , sdkClient );
3640 }
3741
42+ @ AfterEach
43+ public void tear_down () {
44+ verify (sdkClient , atLeastOnce ()).serviceName ();
45+ verifyNoMoreInteractions (sdkClient );
46+ }
47+
3848 @ Test
3949 public void handleRequest_SimpleSuccess () {
4050 final {{ operation }}Handler handler = new {{ operation }}Handler ();
You can’t perform that action at this time.
0 commit comments