@Test public void testGetStaticConfig() { final Properties config = CommonConfig.getStatic(); Assertions.assertThat(config).containsKeys(CommonConfig.KEY_SERIALIZER_KEY, CommonConfig.VALUE_SERIALIZER_KEY, CommonConfig.KEY_DESERIALIZER_KEY, CommonConfig.VALUE_DESERIALIZER_KEY, CommonConfig.GROUP_ID_CONFIG); }
public static synchronized Properties getStatic() { if (config == null) { config = new Properties(); config.put(KEY_SERIALIZER_KEY, "org.apache.kafka.common.serialization.StringSerializer"); config.put(VALUE_SERIALIZER_KEY, "org.apache.kafka.common.serialization.ByteArraySerializer"); config.put(KEY_DESERIALIZER_KEY, "org.apache.kafka.common.serialization.StringDeserializer"); config.put(VALUE_DESERIALIZER_KEY, "org.apache.kafka.common.serialization.ByteArrayDeserializer"); config.put(GROUP_ID_CONFIG, "drools"); } return config; }
CommonConfig { public static synchronized Properties getStatic() { if (config == null) { config = new Properties(); config.put(KEY_SERIALIZER_KEY, "org.apache.kafka.common.serialization.StringSerializer"); config.put(VALUE_SERIALIZER_KEY, "org.apache.kafka.common.serialization.ByteArraySerializer"); config.put(KEY_DESERIALIZER_KEY, "org.apache.kafka.common.serialization.StringDeserializer"); config.put(VALUE_DESERIALIZER_KEY, "org.apache.kafka.common.serialization.ByteArrayDeserializer"); config.put(GROUP_ID_CONFIG, "drools"); } return config; } }
CommonConfig { public static synchronized Properties getStatic() { if (config == null) { config = new Properties(); config.put(KEY_SERIALIZER_KEY, "org.apache.kafka.common.serialization.StringSerializer"); config.put(VALUE_SERIALIZER_KEY, "org.apache.kafka.common.serialization.ByteArraySerializer"); config.put(KEY_DESERIALIZER_KEY, "org.apache.kafka.common.serialization.StringDeserializer"); config.put(VALUE_DESERIALIZER_KEY, "org.apache.kafka.common.serialization.ByteArrayDeserializer"); config.put(GROUP_ID_CONFIG, "drools"); } return config; } private  CommonConfig(); }
CommonConfig { public static synchronized Properties getStatic() { if (config == null) { config = new Properties(); config.put(KEY_SERIALIZER_KEY, "org.apache.kafka.common.serialization.StringSerializer"); config.put(VALUE_SERIALIZER_KEY, "org.apache.kafka.common.serialization.ByteArraySerializer"); config.put(KEY_DESERIALIZER_KEY, "org.apache.kafka.common.serialization.StringDeserializer"); config.put(VALUE_DESERIALIZER_KEY, "org.apache.kafka.common.serialization.ByteArrayDeserializer"); config.put(GROUP_ID_CONFIG, "drools"); } return config; } private  CommonConfig(); static synchronized Properties getStatic(); static Properties getTestProperties(); static Properties getProducerConfig(); static Properties getDefaultConfigFromProps(String fileName); }
CommonConfig { public static synchronized Properties getStatic() { if (config == null) { config = new Properties(); config.put(KEY_SERIALIZER_KEY, "org.apache.kafka.common.serialization.StringSerializer"); config.put(VALUE_SERIALIZER_KEY, "org.apache.kafka.common.serialization.ByteArraySerializer"); config.put(KEY_DESERIALIZER_KEY, "org.apache.kafka.common.serialization.StringDeserializer"); config.put(VALUE_DESERIALIZER_KEY, "org.apache.kafka.common.serialization.ByteArrayDeserializer"); config.put(GROUP_ID_CONFIG, "drools"); } return config; } private  CommonConfig(); static synchronized Properties getStatic(); static Properties getTestProperties(); static Properties getProducerConfig(); static Properties getDefaultConfigFromProps(String fileName); static final String DEFAULT_NAMESPACE; static final String DEFAULT_EVENTS_TOPIC; static final String DEFAULT_KIE_SESSION_INFOS_TOPIC; static final int DEFAULT_POLL_TIMEOUT_MS; static final String KEY_SERIALIZER_KEY; static final String VALUE_SERIALIZER_KEY; static final String KEY_DESERIALIZER_KEY; static final String VALUE_DESERIALIZER_KEY; static final String GROUP_ID_CONFIG; static final String LOCAL_MESSAGE_SYSTEM_CONF; static final String SKIP_LISTENER_AUTOSTART; }