@Test void testValidateWithValidEngDestination() { BaseDiagnosticsCollectionRequest request = new BaseDiagnosticsCollectionRequest(); request.setDestination(DiagnosticsDestination.ENG); Telemetry telemetry = new Telemetry(); Features features = new Features(); FeatureSetting clusterLogsCollection = new FeatureSetting(); clusterLogsCollection.setEnabled(true); features.setClusterLogsCollection(clusterLogsCollection); telemetry.setFeatures(features); underTest.validate(request, telemetry, "stackCrn"); }
public void validate(BaseDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn) { validate(request.getDestination(), telemetry, stackCrn, false); }
DiagnosticsCollectionValidator { public void validate(BaseDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn) { validate(request.getDestination(), telemetry, stackCrn, false); } }
DiagnosticsCollectionValidator { public void validate(BaseDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn) { validate(request.getDestination(), telemetry, stackCrn, false); }  }
DiagnosticsCollectionValidator { public void validate(BaseDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn) { validate(request.getDestination(), telemetry, stackCrn, false); }  void validate(BaseDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn); void validate(BaseCmDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn); void validate(DiagnosticsDestination destination, Telemetry telemetry, String stackCrn, Boolean cmBundle); }
DiagnosticsCollectionValidator { public void validate(BaseDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn) { validate(request.getDestination(), telemetry, stackCrn, false); }  void validate(BaseDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn); void validate(BaseCmDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn); void validate(DiagnosticsDestination destination, Telemetry telemetry, String stackCrn, Boolean cmBundle);  }