Class DeepCopyTest


  • @UnitTest
    public class DeepCopyTest
    extends java.lang.Object
    • Constructor Detail

      • DeepCopyTest

        public DeepCopyTest()
    • Method Detail

      • shouldCreateNewObjectsInsteadOfReusingReferencesOnCopy

        public void shouldCreateNewObjectsInsteadOfReusingReferencesOnCopy()
                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertDeepCopy

        protected void assertDeepCopy​(CardInfo sourceCardInfo,
                                      CardInfo targetCardInfo)
      • assertPropertiesCopied

        protected void assertPropertiesCopied​(CardInfo sourceCardInfo,
                                              CardInfo targetCardInfo)
      • createCardInfo

        protected CardInfo createCardInfo​(java.lang.String city,
                                          java.lang.String country,
                                          java.lang.String cardholderName)