Skip to content

Commit 6b07f17

Browse files
committed
Update ConfigurationPropertyTest.java
1 parent bc2ab71 commit 6b07f17

1 file changed

Lines changed: 28 additions & 28 deletions

File tree

microsphere-java-core/src/test/java/io/microsphere/beans/ConfigurationPropertyTest.java

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -136,32 +136,32 @@ void testMetadata() {
136136

137137
@Test
138138
void testHashCode() {
139-
ConfigurationProperty property = new ConfigurationProperty(TEST_NAME);
140-
assertEquals(this.configurationProperty.hashCode(), property.hashCode());
139+
ConfigurationProperty configurationProperty = new ConfigurationProperty(TEST_NAME);
140+
assertEquals(this.configurationProperty.hashCode(), configurationProperty.hashCode());
141141

142142
this.configurationProperty.setType(TEST_TYPE);
143-
property.setType(TEST_TYPE);
144-
assertEquals(this.configurationProperty.hashCode(), property.hashCode());
143+
configurationProperty.setType(TEST_TYPE);
144+
assertEquals(this.configurationProperty.hashCode(), configurationProperty.hashCode());
145145

146146
this.configurationProperty.setValue(TEST_VALUE);
147-
property.setValue(TEST_VALUE);
148-
assertEquals(this.configurationProperty.hashCode(), property.hashCode());
147+
configurationProperty.setValue(TEST_VALUE);
148+
assertEquals(this.configurationProperty.hashCode(), configurationProperty.hashCode());
149149

150150
this.configurationProperty.setDefaultValue(TEST_DEFAULT_VALUE);
151-
property.setDefaultValue(TEST_DEFAULT_VALUE);
152-
assertEquals(this.configurationProperty.hashCode(), property.hashCode());
151+
configurationProperty.setDefaultValue(TEST_DEFAULT_VALUE);
152+
assertEquals(this.configurationProperty.hashCode(), configurationProperty.hashCode());
153153

154154
this.configurationProperty.setRequired(true);
155-
property.setRequired(true);
156-
assertEquals(this.configurationProperty.hashCode(), property.hashCode());
155+
configurationProperty.setRequired(true);
156+
assertEquals(this.configurationProperty.hashCode(), configurationProperty.hashCode());
157157

158158
this.configurationProperty.setDescription(TEST_DESCRIPTION);
159-
property.setDescription(TEST_DESCRIPTION);
160-
assertEquals(this.configurationProperty.hashCode(), property.hashCode());
159+
configurationProperty.setDescription(TEST_DESCRIPTION);
160+
assertEquals(this.configurationProperty.hashCode(), configurationProperty.hashCode());
161161

162162
this.configurationProperty.getMetadata().getTargets().add("target");
163-
property.getMetadata().getTargets().add("target");
164-
assertEquals(this.configurationProperty.hashCode(), property.hashCode());
163+
configurationProperty.getMetadata().getTargets().add("target");
164+
assertEquals(this.configurationProperty.hashCode(), configurationProperty.hashCode());
165165
}
166166

167167
@Test
@@ -204,31 +204,31 @@ void testEquals() {
204204

205205
@Test
206206
void testToString() {
207-
ConfigurationProperty property = new ConfigurationProperty(TEST_NAME);
208-
assertEquals(this.configurationProperty.toString(), property.toString());
207+
ConfigurationProperty configurationProperty = new ConfigurationProperty(TEST_NAME);
208+
assertEquals(this.configurationProperty.toString(), configurationProperty.toString());
209209

210210
this.configurationProperty.setType(TEST_TYPE);
211-
property.setType(TEST_TYPE);
212-
assertEquals(this.configurationProperty.toString(), property.toString());
211+
configurationProperty.setType(TEST_TYPE);
212+
assertEquals(this.configurationProperty.toString(), configurationProperty.toString());
213213

214214
this.configurationProperty.setValue(TEST_VALUE);
215-
property.setValue(TEST_VALUE);
216-
assertEquals(this.configurationProperty.toString(), property.toString());
215+
configurationProperty.setValue(TEST_VALUE);
216+
assertEquals(this.configurationProperty.toString(), configurationProperty.toString());
217217

218218
this.configurationProperty.setDefaultValue(TEST_DEFAULT_VALUE);
219-
property.setDefaultValue(TEST_DEFAULT_VALUE);
220-
assertEquals(this.configurationProperty.toString(), property.toString());
219+
configurationProperty.setDefaultValue(TEST_DEFAULT_VALUE);
220+
assertEquals(this.configurationProperty.toString(), configurationProperty.toString());
221221

222222
this.configurationProperty.setRequired(true);
223-
property.setRequired(true);
224-
assertEquals(this.configurationProperty.toString(), property.toString());
223+
configurationProperty.setRequired(true);
224+
assertEquals(this.configurationProperty.toString(), configurationProperty.toString());
225225

226226
this.configurationProperty.setDescription(TEST_DESCRIPTION);
227-
property.setDescription(TEST_DESCRIPTION);
228-
assertEquals(this.configurationProperty.toString(), property.toString());
227+
configurationProperty.setDescription(TEST_DESCRIPTION);
228+
assertEquals(this.configurationProperty.toString(), configurationProperty.toString());
229229

230230
this.configurationProperty.getMetadata().getTargets().add(TEST_TARGET);
231-
property.getMetadata().getTargets().add(TEST_TARGET);
232-
assertEquals(this.configurationProperty.toString(), property.toString());
231+
configurationProperty.getMetadata().getTargets().add(TEST_TARGET);
232+
assertEquals(this.configurationProperty.toString(), configurationProperty.toString());
233233
}
234234
}

0 commit comments

Comments
 (0)