Skip to content
Snippets Groups Projects
Commit 1c780515 authored by Zhibin Mai's avatar Zhibin Mai
Browse files

Rename the class names and variable names

parent a3ed9ee4
No related branches found
No related tags found
1 merge request!625Rename some classes and variables to improve readable
Pipeline #214529 failed
......@@ -36,11 +36,11 @@ public class PropertyPathDeserializerTest {
public void deserialize_configurations_test() throws JsonProcessingException {
String jsonText = getJsonFromFile("well_configuration_record.json");
ObjectMapper objectMapper = new ObjectMapper();
AugmenterConfiguration configurations = objectMapper.readValue(jsonText, AugmenterConfiguration.class);
Assert.assertNotNull(configurations);
Assert.assertEquals(2, configurations.getConfigurations().size());
PropertyConfiguration countryNameConfiguration = configurations.getConfigurations().get(0);
PropertyConfiguration wellUWIConfiguration = configurations.getConfigurations().get(1);
AugmenterConfiguration augmenterConfiguration = objectMapper.readValue(jsonText, AugmenterConfiguration.class);
Assert.assertNotNull(augmenterConfiguration);
Assert.assertEquals(2, augmenterConfiguration.getConfigurations().size());
PropertyConfiguration countryNameConfiguration = augmenterConfiguration.getConfigurations().get(0);
PropertyConfiguration wellUWIConfiguration = augmenterConfiguration.getConfigurations().get(1);
Assert.assertEquals("CountryNames", countryNameConfiguration.getName());
Assert.assertEquals(1, countryNameConfiguration.getPaths().size());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment