@Test public void testIsErrored() { assertFalse(BackingUtils.isErrored(BackingFactory.backing(Backing.STATUS_CANCELED))); assertFalse(BackingUtils.isErrored(BackingFactory.backing(Backing.STATUS_COLLECTED))); assertFalse(BackingUtils.isErrored(BackingFactory.backing(Backing.STATUS_DROPPED))); assertTrue(BackingUtils.isErrored(BackingFactory.backing(Backing.STATUS_ERRORED))); assertFalse(BackingUtils.isErrored(BackingFactory.backing(Backing.STATUS_PLEDGED))); assertFalse(BackingUtils.isErrored(BackingFactory.backing(Backing.STATUS_PREAUTH))); }
public static boolean isErrored(final @Nullable Backing backing) { if (backing == null) { return false; } return backing.status().equals(Backing.STATUS_ERRORED); }
BackingUtils { public static boolean isErrored(final @Nullable Backing backing) { if (backing == null) { return false; } return backing.status().equals(Backing.STATUS_ERRORED); } }
BackingUtils { public static boolean isErrored(final @Nullable Backing backing) { if (backing == null) { return false; } return backing.status().equals(Backing.STATUS_ERRORED); } private  BackingUtils(); }
BackingUtils { public static boolean isErrored(final @Nullable Backing backing) { if (backing == null) { return false; } return backing.status().equals(Backing.STATUS_ERRORED); } private  BackingUtils(); static boolean isBacked(final @NonNull Project project, final @NonNull Reward reward); static boolean isErrored(final @Nullable Backing backing); static boolean isShippable(final @NonNull Backing backing); static @Nullable Reward backedReward(final @NonNull Project project); }
BackingUtils { public static boolean isErrored(final @Nullable Backing backing) { if (backing == null) { return false; } return backing.status().equals(Backing.STATUS_ERRORED); } private  BackingUtils(); static boolean isBacked(final @NonNull Project project, final @NonNull Reward reward); static boolean isErrored(final @Nullable Backing backing); static boolean isShippable(final @NonNull Backing backing); static @Nullable Reward backedReward(final @NonNull Project project);  }