Uploaded image for project: 'JTalks Common'
  1. JTalks Common
  2. JTALKSCOMMON-102

Fix testEqualsInheritance() in EntityTest.

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: common 0.11
    • Fix Version/s: common 0.11
    • Labels:

      Description

      EntityTest.java
          @Test
          public void testEqualsInheritance(){
              first = new EntityObject("1");
              second = new Entity() {
              };
              second.setId(2);
      
              assertFalse(first.equals(second));
          }
      

      We should set 'second.setUuid("1")' instead 'second.setId(2)'.
      Also instead "1" we can generate real UUID and set it.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                ancient_mariner Alex Lysak
                Reporter:
                savgur Guram Savinov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.2h
                  0.2h

                    Structure Helper Panel