Skip to content
Snippets Groups Projects
  • Andreas Gohr's avatar
    210ff133
    make testing of inaccessible methods easier · 210ff133
    Andreas Gohr authored
    While it's generally frowned upon testing privates, it can often be
    useful and the easier way to write tests. Eg you want to test something
    complicated method that is important, but you do not want to expose it
    directly to other classes...
    
    This new method uses reflection to make access to such methods possible
    from within tests without the need for intermediate classes.
    210ff133
    History
    make testing of inaccessible methods easier
    Andreas Gohr authored
    While it's generally frowned upon testing privates, it can often be
    useful and the easier way to write tests. Eg you want to test something
    complicated method that is important, but you do not want to expose it
    directly to other classes...
    
    This new method uses reflection to make access to such methods possible
    from within tests without the need for intermediate classes.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.