src/test/java/com/dharmab/sheets/shared/character/CharacterTest.java
/**
     * Test for UI bug where current hit points could not exceed 10.
     */
Test for UI bug where current hit points could not exceed 10.
Test for UI bug where current hit points could not exceed 10 .
@Test
    public void testCurrentHitPointsGreaterThanTen() {
        character.setMaximumHitPoints(10);
        character.setCurrentHitPoints(10);
        character.setMaximumHitPoints(11);
        character.setCurrentHitPoints(11);
        assertFalse(hasConstraintViolations(character));
        assertEquals(character.getMaximumHitPoints(), (Integer) 11);
        assertEquals(character.getCurrentHitPoints(), (Integer) 11);
    }
@ Test public void testCurrentHitPointsGreaterThanTen ( ) { character . setMaximumHitPoints ( 10 ) ; character . setCurrentHitPoints ( 10 ) ; character . setMaximumHitPoints ( 11 ) ; character . setCurrentHitPoints ( 11 ) ; assertFalse ( hasConstraintViolations ( character ) ) ; assertEquals ( character . getMaximumHitPoints ( ) , ( Integer ) 11 ) ; assertEquals ( character . getCurrentHitPoints ( ) , ( Integer ) 11 ) ; }
Test for UI bug where current hit points could not exceed 10.
Test for UI bug where current hit points could not exceed 10 .