コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        //-------------------------------------------------------------------------
        public virtual void test_EMPTY()
        {
            FailureItems test = FailureItems.EMPTY;

            assertEquals(test.Empty, true);
            assertEquals(test.Failures, ImmutableList.of());
        }
コード例 #4
0
        //-------------------------------------------------------------------------
        public virtual void coverage()
        {
            FailureItems test = FailureItems.of(FAILURE1, FAILURE2);

            coverImmutableBean(test);
            FailureItems test2 = FailureItems.EMPTY;

            coverBeanEquals(test, test2);
        }
コード例 #5
0
 //-----------------------------------------------------------------------
 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);
 }
コード例 #6
0
 //-------------------------------------------------------------------------
 /// <summary>
 /// Builds the resulting instance.
 /// </summary>
 /// <returns> the result </returns>
 public FailureItems build()
 {
     return(FailureItems.of(listBuilder.build()));
 }
コード例 #7
0
        public virtual void test_serialization()
        {
            FailureItems test = FailureItems.of(FAILURE1, FAILURE2);

            assertSerialization(test);
        }