Changeset 411


Ignore:
Timestamp:
05/05/2010 11:14:00 AM (10 years ago)
Author:
pedro.cuba
Message:

Fixed ambiguous use of assert methods. (Probably originated to updating to new version of junit)

Location:
libs/ion/Core/test/ion/Core/Tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libs/ion/Core/test/ion/Core/Tests/ActionTest.java

    r45 r411  
    2323  09/04/2009      Pedro Cuba <pedro.cuba@tagus.ist.utl.pt> 
    2424  First version. 
     25  --- 
     26  05/05/2010      Pedro Cuba <pedro.cuba@tagus.ist.utl.pt> 
     27  Fixed some problems with ambiguous use of assert methods. 
    2528  ---   
    2629*/ 
     
    133136        Simulation simulation = Simulation.instance; 
    134137        Action<Integer> action = new Action<Integer>(); 
    135         final int expected = 3 + 1; 
     138        final Integer expected = 3 + 1; 
    136139 
    137140        simulation.getElements().add(action); 
     
    479482        Simulation simulation = Simulation.instance; 
    480483        Action<Integer> action = new Action<Integer>(); 
    481         final int expectedStartArguments = 3 + 5; 
     484        final Integer expectedStartArguments = 3 + 5; 
    482485        simulation.getElements().add(action); 
    483486        simulation.update(); 
  • libs/ion/Core/test/ion/Core/Tests/PropertyTest.java

    r182 r411  
    2626  22/05/2009      Pedro Cuba <pedro.cuba@tagus.ist.utl.pt> 
    2727  Added new test to verify if the ChangedValue Event is not raised when the value of a property is set to the value that the property has.  
     28  --- 
     29  05/05/2010      Pedro Cuba <pedro.cuba@tagus.ist.utl.pt> 
     30  Fixed some problems with ambiguous use of assert methods. 
    2831  --- 
    2932*/ 
     
    97100        simulation.update(); 
    98101 
    99         int expected = property.getValue(); 
     102        Integer expected = property.getValue(); 
    100103        property.setValue(expected + 1); 
    101104        assertEquals(property.getValue(), expected); //Value is not supposed to change before update 
     
    131134                Simulation simulation = Simulation.instance; 
    132135 
    133                 final int initialValue = 1; 
     136                final Integer initialValue = 1; 
    134137 
    135138                Property<Integer> property = new Property<Integer>(initialValue); 
     
    137140                simulation.update(); 
    138141 
    139                 final int expectedValue = initialValue + 1; 
     142                final Integer expectedValue = initialValue + 1; 
    140143 
    141144                property.setValue(expectedValue); 
     
    206209    public void propertyConstructorTest() { 
    207210        Property<Integer> property = new Property<Integer>(3); 
    208         assertEquals(property.getValue(), 3); 
     211        assertEquals(property.getValue(), new Integer(3)); 
    209212    } 
    210213     
Note: See TracChangeset for help on using the changeset viewer.