@Test public void getFieldAccessorTest() { String fieldKey = "Key1"; ConfigurationFieldModel testConfigurationFieldModel = Mockito.mock(ConfigurationFieldModel.class); Map<String, ConfigurationFieldModel> keyToFieldMapTest = new HashMap<>(); keyToFieldMapTest.put(fieldKey, testConfigurationFieldModel); Configuration testConfig = new Configuration(keyToFieldMapTest); FieldUtility testFieldUtility = testConfig.getFieldUtility(); Optional<ConfigurationFieldModel> newConfigurationFieldModel = testFieldUtility.getField(fieldKey); assertTrue(newConfigurationFieldModel.isPresent()); assertEquals(testConfigurationFieldModel, newConfigurationFieldModel.get()); }
public FieldUtility getFieldUtility() { return fieldUtility; }
Configuration extends AlertSerializableModel { public FieldUtility getFieldUtility() { return fieldUtility; } }
Configuration extends AlertSerializableModel { public FieldUtility getFieldUtility() { return fieldUtility; } Configuration(@NotNull Map<String, ConfigurationFieldModel> keyToFieldMap); }
Configuration extends AlertSerializableModel { public FieldUtility getFieldUtility() { return fieldUtility; } Configuration(@NotNull Map<String, ConfigurationFieldModel> keyToFieldMap); FieldUtility getFieldUtility(); }
Configuration extends AlertSerializableModel { public FieldUtility getFieldUtility() { return fieldUtility; } Configuration(@NotNull Map<String, ConfigurationFieldModel> keyToFieldMap); FieldUtility getFieldUtility();  }