Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4868

Setting a deathdate does not call setDead()

    Details

    • Complexity:
      Low

      Description

      In the current code (Person.java), setting a deathdate does not update setDead() to true. We believe that once a deathdate is set, the setDead() method should be called automatically without the user having to manually update the boolean value. The following test fails due to this bug:

      @Test
      @Verifies(value = "should set dead to true if set deathdate", method = "setDeathDate(date)")
      public void shouldSetDeadToTrueIfSetDeathdate() throws Exception {
      
      	Person p = new Person();
      	Date deathdate = new Date(2014, 10, 26);
      	p.setDeathDate(deathDate);
      	Assert.assertTrue(p.getDead());
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ryan97 Tendonge Awo-Nasako Ryan
                Reporter:
                dkayiwa Daniel Kayiwa
                Designated Committer:
                Daniel Kayiwa
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours
                  5h