GVim
How to use Vim’s textwidth like a pro
http://blog.ezyang.com/2010/03/vim-textwidth/When programming, automatic line wrapping can be a little obnoxious because even if a piece of code is hanging past the recommended 72/80 column width line, you probably don't want to immediately break it;
http://blog.ezyang.com/2010/03/vim-textwidth/
Learn Vimscript the Hard Way; Variables
:set textwidth=80 :echo &textwidthhttp://learnvimscriptthehardway.stevelosh.com/chapters/19.html
Here is how I actually used this info:
function! TurnLineWrapToggle(...) let cur_tw = &textwidth if(cur_tw == 0) let @z = ' :call TurnLineWrapOn() ' | normal @z echo "line wrap turned on" else let @z = ' :call TurnLineWrapOff() ' | normal @z echo "line wrap turned off" endif endfunction
Mockito
hasCode.com; Mocking, Stubbing and Test Spying using the Mockito Framework and PowerMock; Troubleshooting / Common Mistakes
http://www.hascode.com/2011/03/mocking-stubbing-and-test-spying-using-the-mockito-framework/#Argument_MatchersPlease be aware that if you’re using argument matchers, all arguments in verify or stub must be provided by matchers. You can’t mix matchers with other non-matcher arguments in verification or stub methods
http://www.hascode.com/2011/03/mocking-stubbing-and-test-spying-using-the-mockito-framework/#Argument_Matchers
This looks quite valuable. I'll definitely be looking more through this. I spent the last 3 hours toiling over my static method mock; I failed to realize the requirements for Mockito matchers.
No comments:
Post a Comment