|
10 | 10 |
|
11 | 11 |
|
12 | 12 | public class AccessAutoConfigurationTests {
|
13 |
| - private AccessAutoConfiguration aac; |
| 13 | + private AccessAutoConfiguration sut; |
14 | 14 |
|
15 | 15 | @Test
|
16 | 16 | public void constructor_with_valid_property_should_create_object() throws Exception{
|
17 | 17 | AccessProperties properties = new AccessProperties();
|
18 | 18 | properties.setInput(new AccessProperties.PluginConfig());
|
19 | 19 | properties.setOutput(new AccessProperties.PluginConfig());
|
20 |
| - aac = new AccessAutoConfiguration(properties); |
21 |
| - assertNotNull(aac ); |
| 20 | + sut = new AccessAutoConfiguration(properties); |
| 21 | + assertNotNull(sut ); |
22 | 22 | }
|
23 | 23 |
|
24 | 24 | @Test(expected = InputConfigMissingException.class)
|
25 | 25 | public void constructor_with_null_input_property_should_throw_InputConfigMissingException() throws InvalidConfigException{
|
26 | 26 | AccessProperties properties = new AccessProperties();
|
27 | 27 | properties.setOutput(new AccessProperties.PluginConfig());
|
28 | 28 | properties.setInput(null);
|
29 |
| - aac = new AccessAutoConfiguration(properties); |
| 29 | + sut = new AccessAutoConfiguration(properties); |
30 | 30 | }
|
31 | 31 |
|
32 | 32 | @Test(expected = OutputConfigMissingException.class)
|
33 | 33 | public void constructor_with_null_output_property_should_throw_OutputConfigMissingException() throws InvalidConfigException{
|
34 | 34 | AccessProperties properties = new AccessProperties();
|
35 | 35 | properties.setInput(new AccessProperties.PluginConfig());
|
36 | 36 | properties.setOutput(null);
|
37 |
| - aac = new AccessAutoConfiguration(properties); |
| 37 | + sut = new AccessAutoConfiguration(properties); |
38 | 38 | }
|
39 | 39 |
|
40 | 40 | @Test
|
41 | 41 | public void input_config_returns_valid_input_plugin_config() throws InvalidConfigException {
|
42 | 42 | AccessProperties properties = new AccessProperties();
|
43 | 43 | properties.setInput(new AccessProperties.PluginConfig());
|
44 | 44 | properties.setOutput(new AccessProperties.PluginConfig());
|
45 |
| - aac = new AccessAutoConfiguration(properties); |
46 |
| - assertEquals(aac.inputConfig(), properties.getInput()); |
| 45 | + sut = new AccessAutoConfiguration(properties); |
| 46 | + assertEquals(sut.inputConfig(), properties.getInput()); |
47 | 47 | }
|
48 | 48 | }
|
0 commit comments