All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.devonfw.cobigen.test.assertj.CobiGenAsserts Maven / Gradle / Ivy

There is a newer version: 2021.12.006
Show newest version
package com.devonfw.cobigen.test.assertj;

import org.assertj.core.api.Assert;
import org.assertj.core.api.Assertions;

import com.devonfw.cobigen.api.to.GenerationReportTo;
import com.devonfw.cobigen.api.to.HealthCheckReport;

/**
 * AssertJ factory for any CobiGen custom assertions.
 */
public class CobiGenAsserts extends Assertions {

    /**
     * Creates a new {@link Assert} object for {@link GenerationReportTo} objects
     * @param target
     *            {@link GenerationReportTo} to be asserted
     * @return the {@link GenerationReportToAssert} instance
     */
    public static GenerationReportToAssert assertThat(GenerationReportTo target) {
        return new GenerationReportToAssert(target);
    }

    /**
     * Creates a new {@link Assert} object for {@link HealthCheckReport} objects
     * @param target
     *            {@link HealthCheckReport} to be asserted
     * @return the {@link HealthCheckReportAssert} instance
     */
    public static HealthCheckReportAssert assertThat(HealthCheckReport target) {
        return new HealthCheckReportAssert(target);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy