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

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

The newest version!
package com.squareup.javapoet;

/**
 * Like {@link SoftAssertions} but as a junit rule that takes care of calling
 * {@link SoftAssertions#assertAll() assertAll()} at the end of each test.
 * 

* Example: *

 public class SoftlyTest {
 *
 *     @Rule
 *     public final JUnitBDDSoftAssertions softly = new JUnitBDDSoftAssertions();
 *
 *     @Test
 *     public void soft_bdd_assertions() throws Exception {
 *       softly.assertThat(1).isEqualTo(2);
 *       softly.assertThat(Lists.newArrayList(1, 2)).containsOnly(1, 2);
 *       // no need to call assertAll(), this is done automatically.
 *     }
 *  }
*/ @javax.annotation.Generated(value="assertj-assertions-generator") public class JUnitSoftAssertions extends org.assertj.core.api.JUnitSoftAssertions { /** * Creates a new "soft" instance of {@link com.squareup.javapoet.AnnotationSpecAssert}. * * @param actual the actual value. * @return the created "soft" assertion object. */ @org.assertj.core.util.CheckReturnValue public com.squareup.javapoet.AnnotationSpecAssert assertThat(com.squareup.javapoet.AnnotationSpec actual) { return proxy(com.squareup.javapoet.AnnotationSpecAssert.class, com.squareup.javapoet.AnnotationSpec.class, actual); } /** * Creates a new "soft" instance of {@link com.squareup.javapoet.ArrayTypeNameAssert}. * * @param actual the actual value. * @return the created "soft" assertion object. */ @org.assertj.core.util.CheckReturnValue public com.squareup.javapoet.ArrayTypeNameAssert assertThat(com.squareup.javapoet.ArrayTypeName actual) { return proxy(com.squareup.javapoet.ArrayTypeNameAssert.class, com.squareup.javapoet.ArrayTypeName.class, actual); } /** * Creates a new "soft" instance of {@link com.squareup.javapoet.ClassNameAssert}. * * @param actual the actual value. * @return the created "soft" assertion object. */ @org.assertj.core.util.CheckReturnValue public com.squareup.javapoet.ClassNameAssert assertThat(com.squareup.javapoet.ClassName actual) { return proxy(com.squareup.javapoet.ClassNameAssert.class, com.squareup.javapoet.ClassName.class, actual); } /** * Creates a new "soft" instance of {@link com.squareup.javapoet.CodeBlockAssert}. * * @param actual the actual value. * @return the created "soft" assertion object. */ @org.assertj.core.util.CheckReturnValue public com.squareup.javapoet.CodeBlockAssert assertThat(com.squareup.javapoet.CodeBlock actual) { return proxy(com.squareup.javapoet.CodeBlockAssert.class, com.squareup.javapoet.CodeBlock.class, actual); } /** * Creates a new "soft" instance of {@link com.squareup.javapoet.FieldSpecAssert}. * * @param actual the actual value. * @return the created "soft" assertion object. */ @org.assertj.core.util.CheckReturnValue public com.squareup.javapoet.FieldSpecAssert assertThat(com.squareup.javapoet.FieldSpec actual) { return proxy(com.squareup.javapoet.FieldSpecAssert.class, com.squareup.javapoet.FieldSpec.class, actual); } /** * Creates a new "soft" instance of {@link com.squareup.javapoet.JavaFileAssert}. * * @param actual the actual value. * @return the created "soft" assertion object. */ @org.assertj.core.util.CheckReturnValue public com.squareup.javapoet.JavaFileAssert assertThat(com.squareup.javapoet.JavaFile actual) { return proxy(com.squareup.javapoet.JavaFileAssert.class, com.squareup.javapoet.JavaFile.class, actual); } /** * Creates a new "soft" instance of {@link com.squareup.javapoet.MethodSpecAssert}. * * @param actual the actual value. * @return the created "soft" assertion object. */ @org.assertj.core.util.CheckReturnValue public com.squareup.javapoet.MethodSpecAssert assertThat(com.squareup.javapoet.MethodSpec actual) { return proxy(com.squareup.javapoet.MethodSpecAssert.class, com.squareup.javapoet.MethodSpec.class, actual); } /** * Creates a new "soft" instance of {@link com.squareup.javapoet.NameAllocatorAssert}. * * @param actual the actual value. * @return the created "soft" assertion object. */ @org.assertj.core.util.CheckReturnValue public com.squareup.javapoet.NameAllocatorAssert assertThat(com.squareup.javapoet.NameAllocator actual) { return proxy(com.squareup.javapoet.NameAllocatorAssert.class, com.squareup.javapoet.NameAllocator.class, actual); } /** * Creates a new "soft" instance of {@link com.squareup.javapoet.ParameterSpecAssert}. * * @param actual the actual value. * @return the created "soft" assertion object. */ @org.assertj.core.util.CheckReturnValue public com.squareup.javapoet.ParameterSpecAssert assertThat(com.squareup.javapoet.ParameterSpec actual) { return proxy(com.squareup.javapoet.ParameterSpecAssert.class, com.squareup.javapoet.ParameterSpec.class, actual); } /** * Creates a new "soft" instance of {@link com.squareup.javapoet.ParameterizedTypeNameAssert}. * * @param actual the actual value. * @return the created "soft" assertion object. */ @org.assertj.core.util.CheckReturnValue public com.squareup.javapoet.ParameterizedTypeNameAssert assertThat(com.squareup.javapoet.ParameterizedTypeName actual) { return proxy(com.squareup.javapoet.ParameterizedTypeNameAssert.class, com.squareup.javapoet.ParameterizedTypeName.class, actual); } /** * Creates a new "soft" instance of {@link com.squareup.javapoet.TypeNameAssert}. * * @param actual the actual value. * @return the created "soft" assertion object. */ @org.assertj.core.util.CheckReturnValue public com.squareup.javapoet.TypeNameAssert assertThat(com.squareup.javapoet.TypeName actual) { return proxy(com.squareup.javapoet.TypeNameAssert.class, com.squareup.javapoet.TypeName.class, actual); } /** * Creates a new "soft" instance of {@link com.squareup.javapoet.TypeSpecAssert}. * * @param actual the actual value. * @return the created "soft" assertion object. */ @org.assertj.core.util.CheckReturnValue public com.squareup.javapoet.TypeSpecAssert assertThat(com.squareup.javapoet.TypeSpec actual) { return proxy(com.squareup.javapoet.TypeSpecAssert.class, com.squareup.javapoet.TypeSpec.class, actual); } /** * Creates a new "soft" instance of {@link com.squareup.javapoet.TypeVariableNameAssert}. * * @param actual the actual value. * @return the created "soft" assertion object. */ @org.assertj.core.util.CheckReturnValue public com.squareup.javapoet.TypeVariableNameAssert assertThat(com.squareup.javapoet.TypeVariableName actual) { return proxy(com.squareup.javapoet.TypeVariableNameAssert.class, com.squareup.javapoet.TypeVariableName.class, actual); } /** * Creates a new "soft" instance of {@link com.squareup.javapoet.WildcardTypeNameAssert}. * * @param actual the actual value. * @return the created "soft" assertion object. */ @org.assertj.core.util.CheckReturnValue public com.squareup.javapoet.WildcardTypeNameAssert assertThat(com.squareup.javapoet.WildcardTypeName actual) { return proxy(com.squareup.javapoet.WildcardTypeNameAssert.class, com.squareup.javapoet.WildcardTypeName.class, actual); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy