com.amazonaws.services.simpleworkflow.flow.junit

## クラス AsyncAssert

- java.lang.Object
- - com.amazonaws.services.simpleworkflow.flow.junit.AsyncAssert

-     public class AsyncAssert
      extends java.lang.Object

  Similar to `Assert` which waits on `Promise` argument before calling correspondent Assert... function.

  To avoid overload conflicts "WaitFor" postfix is used for methods that define varargs "waitFor" argument.

  For example when AsyncAssert.assertEquals("expected", "expected", waitForMe) is called Java resolves it to `void assertEquals(final String message, final Object expected, final Promise actual)` when `void assertEquals(final Object expected, final Object actual, Promise... waitFor)` was assumed.

  関連項目:
    `Assert`

- - ### コンストラクタの概要

    コンストラクタ
    修飾子 | コンストラクタと説明
    --- | ---
    `protected` | `AsyncAssert()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `static void` | `assertArrayEquals(java.lang.Object[] expected, Promise<java.lang.Object[]> actual)`
    `static void` | `assertArrayEquals(java.lang.String message, java.lang.Object[] expected, java.lang.Object[] actual, Promise<?>... waitFor)`
    `static void` | `assertArrayEquals(java.lang.String message, java.lang.Object[] expected, Promise<java.lang.Object[]> actual)`
    `static void` | `assertArrayEqualsWaitFor(java.lang.Object[] expected, java.lang.Object[] actual, Promise<?>... waitFor)`
    `static void` | `assertEquals(double expected, Promise<java.lang.Double> actual, double delta)`
    `static void` | `assertEquals(java.lang.Object expected, Promise<?> actual)`
    `static void` | `assertEquals(java.lang.String message, double expected, Promise<java.lang.Double> actual, double delta)`
    `static void` | `assertEquals(java.lang.String message, java.lang.Object expected, Promise<?> actual)`
    `static void` | `assertEqualsWaitFor(double expected, double actual, double delta, Promise<?>... waitFor)`
    `static void` | `assertEqualsWaitFor(java.lang.Object expected, java.lang.Object actual, Promise<?>... waitFor)`
    `static void` | `assertEqualsWaitFor(java.lang.String message, double expected, double actual, double delta, Promise<?>... waitFor)`
    `static void` | `assertEqualsWaitFor(java.lang.String message, java.lang.Object expected, java.lang.Object actual, Promise<?>... waitFor)`
    `static void` | `assertFalse(Promise<java.lang.Boolean> condition)`
    `static void` | `assertFalse(java.lang.String message, Promise<java.lang.Boolean> condition)`
    `static void` | `assertFalseWaitFor(boolean condition, Promise<?>... waitFor)`
    `static void` | `assertFalseWaitFor(java.lang.String message, boolean condition, Promise<?>... waitFor)`
    `static void` | `assertNotNull(Promise<java.lang.Object> object)` Asserts that an object its content isn't null.
    `static void` | `assertNotNull(java.lang.String message, Promise<java.lang.Object> object)` Asserts that an object Promise and its content isn't null.
    `static void` | `assertNotNullWaitFor(java.lang.Object object, Promise<?>... waitFor)`
    `static void` | `assertNotNullWaitFor(java.lang.String message, java.lang.Object object, Promise<?>... waitFor)`
    `static void` | `assertNotReady(Promise<?> condition)`
    `static void` | `assertNotReady(java.lang.String message, Promise<?> condition)`
    `static void` | `assertNotSame(java.lang.Object expected, Promise<java.lang.Object> actual)` Asserts that two Promises content do not refer to the same object.
    `static void` | `assertNotSame(java.lang.String message, java.lang.Object expected, Promise<java.lang.Object> actual)` Asserts that two Promises content do not refer to the same object.
    `static void` | `assertNotSameWaitFor(java.lang.Object expected, java.lang.Object actual, Promise<?>... waitFor)`
    `static void` | `assertNotSameWaitFor(java.lang.String message, java.lang.Object expected, java.lang.Object actual, Promise<?>... waitFor)`
    `static void` | `assertNull(Promise<java.lang.Object> object)` Asserts that an object is not `null` while `object.get()` is `null`.
    `static void` | `assertNull(java.lang.String message, Promise<java.lang.Object> object)` Asserts that an object is not `null` while `object.get()` is `null`.
    `static void` | `assertNullWaitFor(java.lang.Object object, Promise<?>... waitFor)`
    `static void` | `assertNullWaitFor(java.lang.String message, java.lang.Object object, Promise<?>... waitFor)`
    `static void` | `assertReady(Promise<?> condition)`
    `static void` | `assertReady(java.lang.String message, Promise<?> condition)`
    `static void` | `assertSame(java.lang.Object expected, Promise<java.lang.Object> actual)` Asserts that two Promises content refer to the same object.
    `static void` | `assertSame(java.lang.String message, java.lang.Object expected, Promise<java.lang.Object> actual)` Asserts that two Promises content refer to the same object.
    `static void` | `assertSameWaitFor(java.lang.Object expected, java.lang.Object actual, Promise<?>... waitFor)`
    `static void` | `assertSameWaitFor(java.lang.String message, java.lang.Object expected, java.lang.Object actual, Promise<?>... waitFor)`
    `static void` | `assertTrue(Promise<java.lang.Boolean> condition)`
    `static void` | `assertTrue(java.lang.String message, Promise<java.lang.Boolean> condition)`
    `static void` | `assertTrueWaitFor(boolean condition, Promise<?>... waitFor)`
    `static void` | `assertTrueWaitFor(java.lang.String message, boolean condition, Promise<?>... waitFor)`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### AsyncAssert

          protected AsyncAssert()

  - ### メソッドの詳細

    - #### assertReady

          public static void assertReady(java.lang.String message,
                         Promise<?> condition)

    - #### assertReady

          public static void assertReady(Promise<?> condition)

    - #### assertNotReady

          public static void assertNotReady(java.lang.String message,
                            Promise<?> condition)

    - #### assertNotReady

          public static void assertNotReady(Promise<?> condition)

    - #### assertTrueWaitFor

          public static void assertTrueWaitFor(java.lang.String message,
                               boolean condition,
                               Promise<?>... waitFor)

    - #### assertTrue

          public static void assertTrue(java.lang.String message,
                        Promise<java.lang.Boolean> condition)

    - #### assertTrueWaitFor

          public static void assertTrueWaitFor(boolean condition,
                               Promise<?>... waitFor)

    - #### assertTrue

          public static void assertTrue(Promise<java.lang.Boolean> condition)

    - #### assertFalseWaitFor

          public static void assertFalseWaitFor(java.lang.String message,
                                boolean condition,
                                Promise<?>... waitFor)

    - #### assertFalse

          public static void assertFalse(java.lang.String message,
                         Promise<java.lang.Boolean> condition)

    - #### assertFalseWaitFor

          public static void assertFalseWaitFor(boolean condition,
                                Promise<?>... waitFor)

    - #### assertFalse

          public static void assertFalse(Promise<java.lang.Boolean> condition)

    - #### assertEquals

          public static void assertEquals(java.lang.String message,
                          java.lang.Object expected,
                          Promise<?> actual)

    - #### assertEqualsWaitFor

          public static void assertEqualsWaitFor(java.lang.String message,
                                 java.lang.Object expected,
                                 java.lang.Object actual,
                                 Promise<?>... waitFor)

    - #### assertEquals

          public static void assertEquals(java.lang.Object expected,
                          Promise<?> actual)

    - #### assertEqualsWaitFor

          public static void assertEqualsWaitFor(java.lang.Object expected,
                                 java.lang.Object actual,
                                 Promise<?>... waitFor)

    - #### assertArrayEquals

          public static void assertArrayEquals(java.lang.String message,
                               java.lang.Object[] expected,
                               java.lang.Object[] actual,
                               Promise<?>... waitFor)

    - #### assertArrayEquals

          public static void assertArrayEquals(java.lang.String message,
                               java.lang.Object[] expected,
                               Promise<java.lang.Object[]> actual)

    - #### assertArrayEqualsWaitFor

          public static void assertArrayEqualsWaitFor(java.lang.Object[] expected,
                                      java.lang.Object[] actual,
                                      Promise<?>... waitFor)

    - #### assertArrayEquals

          public static void assertArrayEquals(java.lang.Object[] expected,
                               Promise<java.lang.Object[]> actual)

    - #### assertEqualsWaitFor

          public static void assertEqualsWaitFor(java.lang.String message,
                                 double expected,
                                 double actual,
                                 double delta,
                                 Promise<?>... waitFor)

    - #### assertEquals

          public static void assertEquals(java.lang.String message,
                          double expected,
                          Promise<java.lang.Double> actual,
                          double delta)

    - #### assertEqualsWaitFor

          public static void assertEqualsWaitFor(double expected,
                                 double actual,
                                 double delta,
                                 Promise<?>... waitFor)

    - #### assertEquals

          public static void assertEquals(double expected,
                          Promise<java.lang.Double> actual,
                          double delta)

    - #### assertNotNullWaitFor

          public static void assertNotNullWaitFor(java.lang.String message,
                                  java.lang.Object object,
                                  Promise<?>... waitFor)

    - #### assertNotNull

          public static void assertNotNull(java.lang.String message,
                           Promise<java.lang.Object> object)

      Asserts that an object Promise and its content isn't null. If it is an `AssertionError` is thrown with the given message.
      パラメータ:
        `message` - the identifying message for the `AssertionError` ( `null` okay)
        `object` - Object to check or `null`

    - #### assertNotNullWaitFor

          public static void assertNotNullWaitFor(java.lang.Object object,
                                  Promise<?>... waitFor)

    - #### assertNotNull

          public static void assertNotNull(Promise<java.lang.Object> object)

      Asserts that an object its content isn't null.

    - #### assertNullWaitFor

          public static void assertNullWaitFor(java.lang.String message,
                               java.lang.Object object,
                               Promise<?>... waitFor)

    - #### assertNull

          public static void assertNull(java.lang.String message,
                        Promise<java.lang.Object> object)

      Asserts that an object is not `null` while `object.get()` is `null`.

    - #### assertNullWaitFor

          public static void assertNullWaitFor(java.lang.Object object,
                               Promise<?>... waitFor)

    - #### assertNull

          public static void assertNull(Promise<java.lang.Object> object)

      Asserts that an object is not `null` while `object.get()` is `null`.

    - #### assertSameWaitFor

          public static void assertSameWaitFor(java.lang.String message,
                               java.lang.Object expected,
                               java.lang.Object actual,
                               Promise<?>... waitFor)

    - #### assertSame

          public static void assertSame(java.lang.String message,
                        java.lang.Object expected,
                        Promise<java.lang.Object> actual)

      Asserts that two Promises content refer to the same object. If they are not, an `AssertionError` is thrown with the given message.

    - #### assertSameWaitFor

          public static void assertSameWaitFor(java.lang.Object expected,
                               java.lang.Object actual,
                               Promise<?>... waitFor)

    - #### assertSame

          public static void assertSame(java.lang.Object expected,
                        Promise<java.lang.Object> actual)

      Asserts that two Promises content refer to the same object. If they are not, an `AssertionError` is thrown with the given message.

    - #### assertNotSameWaitFor

          public static void assertNotSameWaitFor(java.lang.String message,
                                  java.lang.Object expected,
                                  java.lang.Object actual,
                                  Promise<?>... waitFor)

    - #### assertNotSame

          public static void assertNotSame(java.lang.String message,
                           java.lang.Object expected,
                           Promise<java.lang.Object> actual)

      Asserts that two Promises content do not refer to the same object. If they are an `AssertionError` is thrown with the given message.

    - #### assertNotSameWaitFor

          public static void assertNotSameWaitFor(java.lang.Object expected,
                                  java.lang.Object actual,
                                  Promise<?>... waitFor)

    - #### assertNotSame

          public static void assertNotSame(java.lang.Object expected,
                           Promise<java.lang.Object> actual)

      Asserts that two Promises content do not refer to the same object. If they are an `AssertionError` is thrown with the given message.