Curious about the future of data-driven systems? Join our Data Engineering roundtable and learn how to build scalable data platforms.
Data Engineering: The industry has come a long way from organizing unstructured data to adopting today's modern data pipelines. See how.
Senior Software Engineer at SoftwareMill
Płock, PL
Joined Nov 2008
Tom is a passionate Java/JEE developer working remotely from home located in Poland. He is a big fan of Apache Wicket, clean code, testing and methods with names that actually say something. In his free time he blogs, tweets and organizes Confitura, the biggest Java conference in Poland. Privately husband, father and dog owner, he likes to watch and play football (soccer if you're from USA).
Stats
| Reputation: | 394 |
| Pageviews: | 271.0K |
| Articles: | 3 |
| Comments: | 9 |
Comments
Dec 01, 2015 · Duncan Brown
Hello
It's interesting that adding -server option significantly increased startup time. Could you elaboreate more on "I know it would be longer" as it's kind of suprising to me.
Microservices: Spring Boot, ZooKeeper, Spring Cloud and open-sourced https://github.com/4finance/micro-infra-spring library to glue all of this stuff with Consumer Driven Contracts, CorrelationId, ServiceDiscovery within fluent rest API. You can check its wiki page to learn more, but this library is very useful.
Feb 02, 2013 · Mirko Stocker
I tried to repeat steps you mentioned and surprisingly, you are right. List of executed tests depends on order of Maven commands. Nice feature :)
Feb 02, 2013 · Mirko Stocker
I tried to repeat steps you mentioned and surprisingly, you are right. List of executed tests depends on order of Maven commands. Nice feature :)
Feb 02, 2013 · Mirko Stocker
I tried to repeat steps you mentioned and surprisingly, you are right. List of executed tests depends on order of Maven commands. Nice feature :)
Sep 20, 2012 · Tomasz Dziurko
Aug 02, 2012 · Matt Moore
Rogerio, thank you for you comments but some of your points are not valid.
Re 1) Code you are claiming to be an error is completely valid. Developer might instantiate object annotated by @InjectMocks or might leave it to Mockito. It depends on situation and mainly on number and types of constructors this class has and we want to use in a given test method or class
Re 2) You are writing "may not work" which is a bit vague. Using spy and doReturn is in line with Mockito documentation and, what is more important, it just works, see example at http://docs.mockito.googlecode.com/hg/org/mockito/Mockito.html#13. Methods that were not stubbed will call real object and real implementation will be executed, but those which we stubbed will return specified (mocked) result.
Re 3) In this case you are correct. Verify and argument.capture should be called AFTER executing code under test. Thanks for pointing that out :)
Those two tools you have mentioned look interesting, I will try to use them in one of my sandbox projects, thanks for sharing :)
Aug 02, 2012 · Matt Moore
Rogerio, thank you for you comments but some of your points are not valid.
Re 1) Code you are claiming to be an error is completely valid. Developer might instantiate object annotated by @InjectMocks or might leave it to Mockito. It depends on situation and mainly on number and types of constructors this class has and we want to use in a given test method or class
Re 2) You are writing "may not work" which is a bit vague. Using spy and doReturn is in line with Mockito documentation and, what is more important, it just works, see example at http://docs.mockito.googlecode.com/hg/org/mockito/Mockito.html#13. Methods that were not stubbed will call real object and real implementation will be executed, but those which we stubbed will return specified (mocked) result.
Re 3) In this case you are correct. Verify and argument.capture should be called AFTER executing code under test. Thanks for pointing that out :)
Those two tools you have mentioned look interesting, I will try to use them in one of my sandbox projects, thanks for sharing :)
Aug 02, 2012 · Matt Moore
Rogerio, thank you for you comments but some of your points are not valid.
Re 1) Code you are claiming to be an error is completely valid. Developer might instantiate object annotated by @InjectMocks or might leave it to Mockito. It depends on situation and mainly on number and types of constructors this class has and we want to use in a given test method or class
Re 2) You are writing "may not work" which is a bit vague. Using spy and doReturn is in line with Mockito documentation and, what is more important, it just works, see example at http://docs.mockito.googlecode.com/hg/org/mockito/Mockito.html#13. Methods that were not stubbed will call real object and real implementation will be executed, but those which we stubbed will return specified (mocked) result.
Re 3) In this case you are correct. Verify and argument.capture should be called AFTER executing code under test. Thanks for pointing that out :)
Those two tools you have mentioned look interesting, I will try to use them in one of my sandbox projects, thanks for sharing :)
Feb 13, 2011 · Tomasz Dziurko