@Test public void testProvideMapping() throws Exception { JSONAssert.assertEquals("{\"javaVendor\":{\"type\":\"string\",\"index\":\"not_analyzed\"}," + "\"javaVersion\":{\"type\":\"string\",\"index\":\"not_analyzed\"}," + "\"javaSpecificationVersion\":{\"type\":\"string\",\"index\":\"not_analyzed\"}}", new JSONObject(this.mocker.getComponentUnderTest().provideMapping()), false); }
@Override public Map<String, Object> provideMapping() { Map<String, Object> map = new HashMap<>(); map.put("type", "string"); map.put("index", "not_analyzed"); Map<String, Object> propertiesMap = new HashMap<>(); propertiesMap.put(PROPERTY_JAVA_VENDOR, map); propertiesMap.put(PROPERTY_JAVA_VERSION, map); propertiesMap.put(PROPERTY_JAVA_SPECIFICATION_VERSION, map); return propertiesMap; }
JavaPingDataProvider implements PingDataProvider { @Override public Map<String, Object> provideMapping() { Map<String, Object> map = new HashMap<>(); map.put("type", "string"); map.put("index", "not_analyzed"); Map<String, Object> propertiesMap = new HashMap<>(); propertiesMap.put(PROPERTY_JAVA_VENDOR, map); propertiesMap.put(PROPERTY_JAVA_VERSION, map); propertiesMap.put(PROPERTY_JAVA_SPECIFICATION_VERSION, map); return propertiesMap; } }
JavaPingDataProvider implements PingDataProvider { @Override public Map<String, Object> provideMapping() { Map<String, Object> map = new HashMap<>(); map.put("type", "string"); map.put("index", "not_analyzed"); Map<String, Object> propertiesMap = new HashMap<>(); propertiesMap.put(PROPERTY_JAVA_VENDOR, map); propertiesMap.put(PROPERTY_JAVA_VERSION, map); propertiesMap.put(PROPERTY_JAVA_SPECIFICATION_VERSION, map); return propertiesMap; }  }
JavaPingDataProvider implements PingDataProvider { @Override public Map<String, Object> provideMapping() { Map<String, Object> map = new HashMap<>(); map.put("type", "string"); map.put("index", "not_analyzed"); Map<String, Object> propertiesMap = new HashMap<>(); propertiesMap.put(PROPERTY_JAVA_VENDOR, map); propertiesMap.put(PROPERTY_JAVA_VERSION, map); propertiesMap.put(PROPERTY_JAVA_SPECIFICATION_VERSION, map); return propertiesMap; }  @Override Map<String, Object> provideMapping(); @Override Map<String, Object> provideData(); }
JavaPingDataProvider implements PingDataProvider { @Override public Map<String, Object> provideMapping() { Map<String, Object> map = new HashMap<>(); map.put("type", "string"); map.put("index", "not_analyzed"); Map<String, Object> propertiesMap = new HashMap<>(); propertiesMap.put(PROPERTY_JAVA_VENDOR, map); propertiesMap.put(PROPERTY_JAVA_VERSION, map); propertiesMap.put(PROPERTY_JAVA_SPECIFICATION_VERSION, map); return propertiesMap; }  @Override Map<String, Object> provideMapping(); @Override Map<String, Object> provideData();  }