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

com.squareup.javapoet.MethodSpecAssert Maven / Gradle / Ivy

The newest version!
package com.squareup.javapoet;

/**
 * {@link MethodSpec} specific assertions - Generated by CustomAssertionGenerator.
 *
 * Although this class is not final to allow Soft assertions proxy, if you wish to extend it, 
 * extend {@link AbstractMethodSpecAssert} instead.
 */
@javax.annotation.Generated(value="assertj-assertions-generator")
public class MethodSpecAssert extends AbstractMethodSpecAssert {

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

  /**
   * An entry point for MethodSpecAssert to follow AssertJ standard assertThat() statements.
* With a static import, one can write directly: assertThat(myMethodSpec) and get specific assertion with code completion. * @param actual the MethodSpec we want to make assertions on. * @return a new {@link MethodSpecAssert} */ @org.assertj.core.util.CheckReturnValue public static MethodSpecAssert assertThat(MethodSpec actual) { return new MethodSpecAssert(actual); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy