package com.blackduck.integration.detect.battery.util.assertions;

import org.junit.jupiter.api.Assertions;

import com.blackduck.integration.detect.workflow.report.output.FormattedDetectorOutput;
import com.blackduck.integration.detector.base.DetectorStatusCode;

public class FormattedDetectorAssert {
    private final FormattedDetectorOutput detector;

    public FormattedDetectorAssert(FormattedDetectorOutput detector) {this.detector = detector;}

    public void assertStatus(String status, String message) {
        Assertions.assertEquals(status, detector.status, message);
    }

    public void assertStatusCode(DetectorStatusCode statusCode, String message) {
        Assertions.assertEquals(statusCode, detector.statusCode, message);
    }
}
