@@ -49,11 +49,11 @@ class ConfigurationPropertyTest {
4949
5050 private static final String TEST_TARGET = "target" ;
5151
52- private ConfigurationProperty property ;
52+ private ConfigurationProperty configurationProperty ;
5353
5454 @ BeforeEach
5555 void setUp () {
56- this .property = new ConfigurationProperty (TEST_NAME );
56+ this .configurationProperty = new ConfigurationProperty (TEST_NAME );
5757 }
5858
5959 @ Test
@@ -64,40 +64,40 @@ void testNull() {
6464
6565 @ Test
6666 void testName () {
67- assertEquals (TEST_NAME , this .property .getName ());
67+ assertEquals (TEST_NAME , this .configurationProperty .getName ());
6868 }
6969
7070 @ Test
7171 void testType () {
72- assertEquals (String .class .getName (), this .property .getType ());
73- this .property .setType (TEST_TYPE );
74- assertEquals (TEST_TYPE .getName (), this .property .getType ());
72+ assertEquals (String .class .getName (), this .configurationProperty .getType ());
73+ this .configurationProperty .setType (TEST_TYPE );
74+ assertEquals (TEST_TYPE .getName (), this .configurationProperty .getType ());
7575 }
7676
7777 @ Test
7878 void testValue () {
79- assertNull (this .property .getValue ());
80- this .property .setValue (TEST_VALUE );
81- assertEquals (TEST_VALUE , this .property .getValue ());
79+ assertNull (this .configurationProperty .getValue ());
80+ this .configurationProperty .setValue (TEST_VALUE );
81+ assertEquals (TEST_VALUE , this .configurationProperty .getValue ());
8282 }
8383
8484 @ Test
8585 void testDefaultValue () {
86- assertNull (this .property .getDefaultValue ());
87- this .property .setDefaultValue (TEST_DEFAULT_VALUE );
88- assertEquals (TEST_DEFAULT_VALUE , this .property .getDefaultValue ());
86+ assertNull (this .configurationProperty .getDefaultValue ());
87+ this .configurationProperty .setDefaultValue (TEST_DEFAULT_VALUE );
88+ assertEquals (TEST_DEFAULT_VALUE , this .configurationProperty .getDefaultValue ());
8989 }
9090
9191 @ Test
9292 void testRequired () {
93- assertFalse (this .property .isRequired ());
94- this .property .setRequired (true );
95- assertTrue (this .property .isRequired ());
93+ assertFalse (this .configurationProperty .isRequired ());
94+ this .configurationProperty .setRequired (true );
95+ assertTrue (this .configurationProperty .isRequired ());
9696 }
9797
9898 @ Test
9999 void testMetadata () {
100- Metadata metadata = this .property .getMetadata ();
100+ Metadata metadata = this .configurationProperty .getMetadata ();
101101 assertNotNull (metadata );
102102 assertNotNull (metadata .getSources ());
103103 assertNotNull (metadata .getTargets ());
@@ -137,98 +137,98 @@ void testMetadata() {
137137 @ Test
138138 void testHashCode () {
139139 ConfigurationProperty property = new ConfigurationProperty (TEST_NAME );
140- assertEquals (this .property .hashCode (), property .hashCode ());
140+ assertEquals (this .configurationProperty .hashCode (), property .hashCode ());
141141
142- this .property .setType (TEST_TYPE );
142+ this .configurationProperty .setType (TEST_TYPE );
143143 property .setType (TEST_TYPE );
144- assertEquals (this .property .hashCode (), property .hashCode ());
144+ assertEquals (this .configurationProperty .hashCode (), property .hashCode ());
145145
146- this .property .setValue (TEST_VALUE );
146+ this .configurationProperty .setValue (TEST_VALUE );
147147 property .setValue (TEST_VALUE );
148- assertEquals (this .property .hashCode (), property .hashCode ());
148+ assertEquals (this .configurationProperty .hashCode (), property .hashCode ());
149149
150- this .property .setDefaultValue (TEST_DEFAULT_VALUE );
150+ this .configurationProperty .setDefaultValue (TEST_DEFAULT_VALUE );
151151 property .setDefaultValue (TEST_DEFAULT_VALUE );
152- assertEquals (this .property .hashCode (), property .hashCode ());
152+ assertEquals (this .configurationProperty .hashCode (), property .hashCode ());
153153
154- this .property .setRequired (true );
154+ this .configurationProperty .setRequired (true );
155155 property .setRequired (true );
156- assertEquals (this .property .hashCode (), property .hashCode ());
156+ assertEquals (this .configurationProperty .hashCode (), property .hashCode ());
157157
158- this .property .setDescription (TEST_DESCRIPTION );
158+ this .configurationProperty .setDescription (TEST_DESCRIPTION );
159159 property .setDescription (TEST_DESCRIPTION );
160- assertEquals (this .property .hashCode (), property .hashCode ());
160+ assertEquals (this .configurationProperty .hashCode (), property .hashCode ());
161161
162- this .property .getMetadata ().getTargets ().add ("target" );
162+ this .configurationProperty .getMetadata ().getTargets ().add ("target" );
163163 property .getMetadata ().getTargets ().add ("target" );
164- assertEquals (this .property .hashCode (), property .hashCode ());
164+ assertEquals (this .configurationProperty .hashCode (), property .hashCode ());
165165 }
166166
167167 @ Test
168168 void testEquals () {
169- ConfigurationProperty property = new ConfigurationProperty (TEST_NAME );
170- assertEquals (this .property , property );
171- assertNotEquals (this .property , new ConfigurationProperty ("_" + TEST_NAME ));
172- assertNotEquals (this .property , new Object ());
173-
174- this .property .setType (TEST_TYPE );
175- assertNotEquals (this .property , property );
176- property .setType (TEST_TYPE );
177- assertEquals (this .property , property );
178-
179- this .property .setValue (TEST_VALUE );
180- assertNotEquals (this .property , property );
181- property .setValue (TEST_VALUE );
182- assertEquals (this .property , property );
183-
184- this .property .setDefaultValue (TEST_DEFAULT_VALUE );
185- assertNotEquals (this .property , property );
186- property .setDefaultValue (TEST_DEFAULT_VALUE );
187- assertEquals (this .property , property );
188-
189- this .property .setRequired (true );
190- assertNotEquals (this .property , property );
191- property .setRequired (true );
192- assertEquals (this .property , property );
193-
194- this .property .setDescription (TEST_DESCRIPTION );
195- assertNotEquals (this .property , property );
196- property .setDescription (TEST_DESCRIPTION );
197- assertEquals (this .property , property );
198-
199- this .property .getMetadata ().getTargets ().add ("target" );
200- assertNotEquals (this .property , property );
201- property .getMetadata ().getTargets ().add ("target" );
202- assertEquals (this .property , property );
169+ ConfigurationProperty configurationProperty = new ConfigurationProperty (TEST_NAME );
170+ assertEquals (this .configurationProperty , configurationProperty );
171+ assertNotEquals (this .configurationProperty , new ConfigurationProperty ("_" + TEST_NAME ));
172+ assertNotEquals (this .configurationProperty , new Object ());
173+
174+ this .configurationProperty .setType (TEST_TYPE );
175+ assertNotEquals (this .configurationProperty , configurationProperty );
176+ configurationProperty .setType (TEST_TYPE );
177+ assertEquals (this .configurationProperty , configurationProperty );
178+
179+ this .configurationProperty .setValue (TEST_VALUE );
180+ assertNotEquals (this .configurationProperty , configurationProperty );
181+ configurationProperty .setValue (TEST_VALUE );
182+ assertEquals (this .configurationProperty , configurationProperty );
183+
184+ this .configurationProperty .setDefaultValue (TEST_DEFAULT_VALUE );
185+ assertNotEquals (this .configurationProperty , configurationProperty );
186+ configurationProperty .setDefaultValue (TEST_DEFAULT_VALUE );
187+ assertEquals (this .configurationProperty , configurationProperty );
188+
189+ this .configurationProperty .setRequired (true );
190+ assertNotEquals (this .configurationProperty , configurationProperty );
191+ configurationProperty .setRequired (true );
192+ assertEquals (this .configurationProperty , configurationProperty );
193+
194+ this .configurationProperty .setDescription (TEST_DESCRIPTION );
195+ assertNotEquals (this .configurationProperty , configurationProperty );
196+ configurationProperty .setDescription (TEST_DESCRIPTION );
197+ assertEquals (this .configurationProperty , configurationProperty );
198+
199+ this .configurationProperty .getMetadata ().getTargets ().add ("target" );
200+ assertNotEquals (this .configurationProperty , configurationProperty );
201+ configurationProperty .getMetadata ().getTargets ().add ("target" );
202+ assertEquals (this .configurationProperty , configurationProperty );
203203 }
204204
205205 @ Test
206206 void testToString () {
207207 ConfigurationProperty property = new ConfigurationProperty (TEST_NAME );
208- assertEquals (this .property .toString (), property .toString ());
208+ assertEquals (this .configurationProperty .toString (), property .toString ());
209209
210- this .property .setType (TEST_TYPE );
210+ this .configurationProperty .setType (TEST_TYPE );
211211 property .setType (TEST_TYPE );
212- assertEquals (this .property .toString (), property .toString ());
212+ assertEquals (this .configurationProperty .toString (), property .toString ());
213213
214- this .property .setValue (TEST_VALUE );
214+ this .configurationProperty .setValue (TEST_VALUE );
215215 property .setValue (TEST_VALUE );
216- assertEquals (this .property .toString (), property .toString ());
216+ assertEquals (this .configurationProperty .toString (), property .toString ());
217217
218- this .property .setDefaultValue (TEST_DEFAULT_VALUE );
218+ this .configurationProperty .setDefaultValue (TEST_DEFAULT_VALUE );
219219 property .setDefaultValue (TEST_DEFAULT_VALUE );
220- assertEquals (this .property .toString (), property .toString ());
220+ assertEquals (this .configurationProperty .toString (), property .toString ());
221221
222- this .property .setRequired (true );
222+ this .configurationProperty .setRequired (true );
223223 property .setRequired (true );
224- assertEquals (this .property .toString (), property .toString ());
224+ assertEquals (this .configurationProperty .toString (), property .toString ());
225225
226- this .property .setDescription (TEST_DESCRIPTION );
226+ this .configurationProperty .setDescription (TEST_DESCRIPTION );
227227 property .setDescription (TEST_DESCRIPTION );
228- assertEquals (this .property .toString (), property .toString ());
228+ assertEquals (this .configurationProperty .toString (), property .toString ());
229229
230- this .property .getMetadata ().getTargets ().add (TEST_TARGET );
230+ this .configurationProperty .getMetadata ().getTargets ().add (TEST_TARGET );
231231 property .getMetadata ().getTargets ().add (TEST_TARGET );
232- assertEquals (this .property .toString (), property .toString ());
232+ assertEquals (this .configurationProperty .toString (), property .toString ());
233233 }
234234}
0 commit comments