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

templates.custom_assertion_class_template.txt Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
package ${package};

import static java.lang.String.format;

import org.fest.assertions.api.AbstractAssert;
import org.fest.assertions.api.Assertions;
${imports}

/**
 * {@link ${class_to_assert}} specific assertions - Generated by CustomAssertionGenerator.
 */
public class ${class_to_assert}Assert extends AbstractAssert<${class_to_assert}Assert, ${class_to_assert}> {

  /**
   * Creates a new {@link ${class_to_assert}Assert} to make assertions on actual ${class_to_assert}.
   * @param actual the ${class_to_assert} we want to make assertions on.
   */
  public ${class_to_assert}Assert(${class_to_assert} actual) {
    super(actual, ${class_to_assert}Assert.class);
  }

  /**
   * An entry point for ${class_to_assert}Assert to follow Fest standard assertThat() statements.
* With a static import, one's can write directly : assertThat(my${class_to_assert}) and get specific assertion with code completion. * @param actual the ${class_to_assert} we want to make assertions on. * @return a new {@link ${class_to_assert}Assert} */ public static ${class_to_assert}Assert assertThat(${class_to_assert} actual) { return new ${class_to_assert}Assert(actual); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy