test_class.file: api/src/test/java/net/adamcin/oakpal/api/SimpleProgressCheckTest.java
test_class.identifier: SimpleProgressCheckTest
test_case.body: @Test
      public void testMinorViolation() {
          SimpleProgressCheck check = new SimpleProgressCheck();
          PackageId id0 = PackageId.fromString("my_packages:test_0:1.0");
          PackageId id1 = PackageId.fromString("my_packages:test_1:1.0");
          check.minorViolation("description", id0, id1);
          assertTrue("violation reported", check.getReportedViolations().stream()
                  .anyMatch(violation -> violation.getSeverity() == Severity.MINOR
                          && "description".equals(violation.getDescription())
                          && violation.getPackages().contains(id0)
                          && violation.getPackages().contains(id1)
                  ));
      }
test_case.class_method_signature: SimpleProgressCheckTest.testMinorViolation()
test_case.full_signature: @Test public void testMinorViolation()
test_case.identifier: testMinorViolation
test_case.invocations: fromString fromString minorViolation assertTrue anyMatch stream getReportedViolations getSeverity equals getDescription contains getPackages contains getPackages
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMinorViolation()
focal_class.declarator: collector = new ReportCollector()
focal_class.modifier: protected final
focal_class.original_string: protected final ReportCollector collector = new ReportCollector();
focal_class.type: ReportCollector
focal_class.var_name: collector
focal_class.declarator: resourceBundle
focal_class.modifier: private
focal_class.original_string: private ResourceBundle resourceBundle;
focal_class.type: ResourceBundle
focal_class.var_name: resourceBundle
focal_class.file: api/src/main/java/net/adamcin/oakpal/api/SimpleProgressCheck.java
focal_class.identifier: SimpleProgressCheck
focal_class.interfaces: implements ProgressCheck
focal_class.class_method_signature: SimpleProgressCheck.setResourceBundle(final ResourceBundle resourceBundle)
focal_class.full_signature: @Override public void setResourceBundle(final ResourceBundle resourceBundle)
focal_class.identifier: setResourceBundle
focal_class.modifiers: @Override public
focal_class.parameters: (final ResourceBundle resourceBundle)
focal_class.return: void
focal_class.signature: void setResourceBundle(final ResourceBundle resourceBundle)
focal_class.class_method_signature: SimpleProgressCheck.getResourceBundle()
focal_class.full_signature: @Nullable protected ResourceBundle getResourceBundle()
focal_class.identifier: getResourceBundle
focal_class.modifiers: @Nullable protected
focal_class.parameters: ()
focal_class.return: ResourceBundle
focal_class.signature: ResourceBundle getResourceBundle()
focal_class.class_method_signature: SimpleProgressCheck.getString(@NotNull final String key)
focal_class.full_signature: @NotNull protected String getString(@NotNull final String key)
focal_class.identifier: getString
focal_class.modifiers: @NotNull protected
focal_class.parameters: (@NotNull final String key)
focal_class.return: String
focal_class.signature: String getString(@NotNull final String key)
focal_class.class_method_signature: SimpleProgressCheck.reportViolation(final Violation violation)
focal_class.full_signature: protected void reportViolation(final Violation violation)
focal_class.identifier: reportViolation
focal_class.modifiers: protected
focal_class.parameters: (final Violation violation)
focal_class.return: void
focal_class.signature: void reportViolation(final Violation violation)
focal_class.class_method_signature: SimpleProgressCheck.reporting(@NotNull final Consumer<SimpleViolation.Builder> customizer)
focal_class.full_signature: protected final void reporting(@NotNull final Consumer<SimpleViolation.Builder> customizer)
focal_class.identifier: reporting
focal_class.modifiers: protected final
focal_class.parameters: (@NotNull final Consumer<SimpleViolation.Builder> customizer)
focal_class.return: void
focal_class.signature: void reporting(@NotNull final Consumer<SimpleViolation.Builder> customizer)
focal_class.class_method_signature: SimpleProgressCheck.reportViolation(final Severity severity,
                                           final String description,
                                           final PackageId... packages)
focal_class.full_signature: protected final void reportViolation(final Severity severity,
                                           final String description,
                                           final PackageId... packages)
focal_class.identifier: reportViolation
focal_class.modifiers: protected final
focal_class.parameters: (final Severity severity,
                                           final String description,
                                           final PackageId... packages)
focal_class.return: void
focal_class.signature: void reportViolation(final Severity severity,
                                           final String description,
                                           final PackageId... packages)
focal_class.class_method_signature: SimpleProgressCheck.minorViolation(final String description, final PackageId... packages)
focal_class.full_signature: protected final void minorViolation(final String description, final PackageId... packages)
focal_class.identifier: minorViolation
focal_class.modifiers: protected final
focal_class.parameters: (final String description, final PackageId... packages)
focal_class.return: void
focal_class.signature: void minorViolation(final String description, final PackageId... packages)
focal_class.class_method_signature: SimpleProgressCheck.majorViolation(final String description, final PackageId... packages)
focal_class.full_signature: protected final void majorViolation(final String description, final PackageId... packages)
focal_class.identifier: majorViolation
focal_class.modifiers: protected final
focal_class.parameters: (final String description, final PackageId... packages)
focal_class.return: void
focal_class.signature: void majorViolation(final String description, final PackageId... packages)
focal_class.class_method_signature: SimpleProgressCheck.severeViolation(final String description, final PackageId... packages)
focal_class.full_signature: protected final void severeViolation(final String description, final PackageId... packages)
focal_class.identifier: severeViolation
focal_class.modifiers: protected final
focal_class.parameters: (final String description, final PackageId... packages)
focal_class.return: void
focal_class.signature: void severeViolation(final String description, final PackageId... packages)
focal_class.class_method_signature: SimpleProgressCheck.startedScan()
focal_class.full_signature: @Override public void startedScan()
focal_class.identifier: startedScan
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void startedScan()
focal_class.class_method_signature: SimpleProgressCheck.getReportedViolations()
focal_class.full_signature: @Override public Collection<Violation> getReportedViolations()
focal_class.identifier: getReportedViolations
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Collection<Violation>
focal_class.signature: Collection<Violation> getReportedViolations()
focal_method.body: protected final void minorViolation(final String description, final PackageId... packages) {
          this.reporting(builder -> builder
                  .withSeverity(Severity.MINOR)
                  .withDescription(description)
                  .withPackage(packages));
      }
focal_method.class_method_signature: SimpleProgressCheck.minorViolation(final String description, final PackageId... packages)
focal_method.full_signature: protected final void minorViolation(final String description, final PackageId... packages)
focal_method.identifier: minorViolation
focal_method.invocations: reporting withPackage withDescription withSeverity
focal_method.modifiers: protected final
focal_method.parameters: (final String description, final PackageId... packages)
focal_method.return: void
focal_method.signature: void minorViolation(final String description, final PackageId... packages)