@Test @DisplayName("When there are is a wrong partition count, the result is not ok") public void wrong_broker_count(){ ComparisonResult comparisonResult = new ComparisonResult.ComparisonResultBuilder().addMismatchingPartitionCount("hurz", 1, 2).build(); assertFalse(comparisonResult.ok()); }
public boolean ok(){ return missingTopics.isEmpty() && mismatchingReplicationFactor.isEmpty() && mismatchingPartitionCount.isEmpty() && mismatchingConfiguration.isEmpty(); }
ComparisonResult { public boolean ok(){ return missingTopics.isEmpty() && mismatchingReplicationFactor.isEmpty() && mismatchingPartitionCount.isEmpty() && mismatchingConfiguration.isEmpty(); } }
ComparisonResult { public boolean ok(){ return missingTopics.isEmpty() && mismatchingReplicationFactor.isEmpty() && mismatchingPartitionCount.isEmpty() && mismatchingConfiguration.isEmpty(); } ComparisonResult(Set<String> missingTopics, Map<String, Comparison<Integer>> mismatchingReplicationFactor, Map<String, Comparison<Integer>> mismatchingPartitionCount, Map<String, Collection<Comparison<String>>> mismatchingConfiguration); }
ComparisonResult { public boolean ok(){ return missingTopics.isEmpty() && mismatchingReplicationFactor.isEmpty() && mismatchingPartitionCount.isEmpty() && mismatchingConfiguration.isEmpty(); } ComparisonResult(Set<String> missingTopics, Map<String, Comparison<Integer>> mismatchingReplicationFactor, Map<String, Comparison<Integer>> mismatchingPartitionCount, Map<String, Collection<Comparison<String>>> mismatchingConfiguration); boolean ok(); Set<String> getMissingTopics(); Map<String, Comparison<Integer>> getMismatchingReplicationFactor(); Map<String, Comparison<Integer>> getMismatchingPartitionCount(); Map<String, Collection<Comparison<String>>> getMismatchingConfiguration(); @Override String toString(); }
ComparisonResult { public boolean ok(){ return missingTopics.isEmpty() && mismatchingReplicationFactor.isEmpty() && mismatchingPartitionCount.isEmpty() && mismatchingConfiguration.isEmpty(); } ComparisonResult(Set<String> missingTopics, Map<String, Comparison<Integer>> mismatchingReplicationFactor, Map<String, Comparison<Integer>> mismatchingPartitionCount, Map<String, Collection<Comparison<String>>> mismatchingConfiguration); boolean ok(); Set<String> getMissingTopics(); Map<String, Comparison<Integer>> getMismatchingReplicationFactor(); Map<String, Comparison<Integer>> getMismatchingPartitionCount(); Map<String, Collection<Comparison<String>>> getMismatchingConfiguration(); @Override String toString();  }