commandbox.system.modules_app.system-commands.commands

Class assertEqual

lucee.Component
    extended by commandbox.system.modules_app.system-commands.commands.assertEqual

Returns a passing (0) or failing (1) exit code whether both parameters match. Command outputs nothing. Comparison is case insensitive. . {code:bash} assertEqual `package show name` "My Package" || package set name="My Package" assertEqual ${ENVIRONMENT} production && install --production {code} Values are not trimmed, but you can trim them if you want . {code:bash} assertEqual "brad" `ECHO " BRAD " | #trim` && ECHO HI {code}

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    any run(string value1, string value2)
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    run

    public any run(string value1, string value2)

    Parameters:
    value1 - A value to be compared to value2
    value2 - A value to be compared to value1