public virtual void test_builder_addAll() { FailureItems test = FailureItems.builder().addAllFailures(ImmutableList.of(FAILURE1, FAILURE2)).build(); assertEquals(test.Empty, false); assertEquals(test.Failures, ImmutableList.of(FAILURE1, FAILURE2)); }
public virtual void test_of_list() { FailureItems test = FailureItems.of(ImmutableList.of(FAILURE1, FAILURE2)); assertEquals(test.Empty, false); assertEquals(test.Failures, ImmutableList.of(FAILURE1, FAILURE2)); }
//------------------------------------------------------------------------- public virtual void test_EMPTY() { FailureItems test = FailureItems.EMPTY; assertEquals(test.Empty, true); assertEquals(test.Failures, ImmutableList.of()); }
//------------------------------------------------------------------------- public virtual void coverage() { FailureItems test = FailureItems.of(FAILURE1, FAILURE2); coverImmutableBean(test); FailureItems test2 = FailureItems.EMPTY; coverBeanEquals(test, test2); }
//----------------------------------------------------------------------- public override bool Equals(object obj) { if (obj == this) { return(true); } if (obj != null && obj.GetType() == this.GetType()) { FailureItems other = (FailureItems)obj; return(JodaBeanUtils.equal(failures, other.failures)); } return(false); }
//------------------------------------------------------------------------- /// <summary> /// Builds the resulting instance. /// </summary> /// <returns> the result </returns> public FailureItems build() { return(FailureItems.of(listBuilder.build())); }
public virtual void test_serialization() { FailureItems test = FailureItems.of(FAILURE1, FAILURE2); assertSerialization(test); }