1 /*
2  * Copyright (c) 2007 Mockito contributors
3  * This program is made available under the terms of the MIT License.
4  */
5 package org.mockito;
6 
7 import org.junit.After;
8 import org.junit.Test;
9 import org.mockito.exceptions.misusing.InvalidUseOfMatchersException;
10 
11 import static org.assertj.core.api.Assertions.assertThat;
12 import static org.mockito.Mockito.validateMockitoUsage;
13 
14 public class ArgumentCaptorTest {
15 
16 	/**
17 	 * Clean up the internal Mockito-Stubbing state
18 	 */
19 	@After
tearDown()20 	public void tearDown() {
21 		try {
22 			validateMockitoUsage();
23 		} catch (InvalidUseOfMatchersException ignore) {
24 		}
25 
26 	}
27 
28 	@Test
tell_handy_return_values_to_return_value_for()29 	public void tell_handy_return_values_to_return_value_for() throws Exception {
30 
31 		ArgumentCaptor<Object> captor = ArgumentCaptor.forClass(Object.class);
32 		assertThat(captor.capture()).isNull();
33 
34 	}
35 
36 }
37