public final String key;
public final String value;
+ public boolean isEmpty() {
+ return value.isEmpty() && key.isEmpty();
+ }
+
public FilteredData(String key, String value) {
this.key = key;
this.value = value;
}
private Flux<Filter.FilteredData> filterAndBuffer(Flux<TopicListener.DataFromTopic> inputFlux, Job job) {
- Flux<Filter.FilteredData> filtered = inputFlux.map(job::filter); //
+ Flux<Filter.FilteredData> filtered = inputFlux.map(job::filter) //
+ .filter(f -> !f.isEmpty());
if (job.isBuffered()) {
filtered = filtered.map(input -> quoteNonJson(input.value, job)) //
@Test
void testTrustValidation() throws IOException {
+
String url = "https://localhost:" + applicationConfig.getLocalServerHttpPort() + "/v3/api-docs";
ResponseEntity<String> resp = restClient(true).getForEntity(url).block();
assertThat(resp.getStatusCode()).isEqualTo(HttpStatus.OK);
// filtered PM message
String path = "./src/test/resources/pm_report.json";
String pmReportJson = Files.readString(Path.of(path), Charset.defaultCharset());
+ DmaapSimulatorController.addPmResponse("{}"); // This should just be discarded
+
DmaapSimulatorController.addPmResponse(pmReportJson);
ConsumerController.TestResults consumer = this.consumerController.testResults;