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 7
7
import software .amazon .cloudformation .proxy .ProgressEvent ;
8
8
import software .amazon .cloudformation .proxy .ProxyClient ;
9
9
import software .amazon .cloudformation .proxy .ResourceHandlerRequest ;
10
+ import org .junit .jupiter .api .AfterEach ;
10
11
import org .junit .jupiter .api .BeforeEach ;
11
12
import org .junit .jupiter .api .Test ;
12
13
import org .junit .jupiter .api .extension .ExtendWith ;
15
16
16
17
import static org .assertj .core .api .Assertions .assertThat ;
17
18
import 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 ;
18
22
19
23
@ ExtendWith (MockitoExtension .class )
20
24
public class {{ operation }}HandlerTest extends AbstractTestBase {
@@ -35,6 +39,12 @@ public void setup() {
35
39
proxyClient = MOCK_PROXY (proxy , sdkClient );
36
40
}
37
41
42
+ @ AfterEach
43
+ public void tear_down () {
44
+ verify (sdkClient , atLeastOnce ()).serviceName ();
45
+ verifyNoMoreInteractions (sdkClient );
46
+ }
47
+
38
48
@ Test
39
49
public void handleRequest_SimpleSuccess () {
40
50
final {{ operation }}Handler handler = new {{ operation }}Handler ();
You can’t perform that action at this time.
0 commit comments