jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JBehave
  • JBEHAVE-288

Replace Ensure methods with Hamcrest direct invocations

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Task Task
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 3.0
  • Component/s: Core
  • Labels:
    None

Description

Ensure is a very thin layer over Hamcrest, with very little benefit apart from using "ensure" terminology in place of "assert". The ensureThat(boolean) method can be confusing too. Better to allow direct use of Hamcrest or other libraries to enable the assertion or verification.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brian Repko added a comment - 18/May/10 6:26 AM

Not sure that these are needed - they are part of JUnit - I just tell people to ignore them and use JUnit's Asserts

Show
Brian Repko added a comment - 18/May/10 6:26 AM Not sure that these are needed - they are part of JUnit - I just tell people to ignore them and use JUnit's Asserts
Hide
Permalink
Mauro Talevi added a comment - 18/May/10 4:44 PM

Precisely my point. One should be able to use any assertion library one prefers, Hamcrest, JUnit, etc ...

Show
Mauro Talevi added a comment - 18/May/10 4:44 PM Precisely my point. One should be able to use any assertion library one prefers, Hamcrest, JUnit, etc ...
Hide
Permalink
Brian Repko added a comment - 18/May/10 6:18 PM

Ah, got it - perfect - thanks, Mauro.

Show
Brian Repko added a comment - 18/May/10 6:18 PM Ah, got it - perfect - thanks, Mauro.

People

  • Assignee:
    Mauro Talevi
    Reporter:
    Mauro Talevi
Vote (0)
Watch (0)

Dates

  • Created:
    18/May/10 3:19 AM
    Updated:
    18/May/10 6:18 PM
    Resolved:
    18/May/10 3:20 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.