Reputation
316
Top tag
Next privilege 500 Rep.
Access review queues
Badges
2 14
Impact
~12k people reached

Jan
11
comment What unit test frameworks exist for Java?
TestNG itself has almost no tests. And when I was debugging TestNG the quality of the code is... hard to read and trace.
Jul
13
awarded  Popular Question
Jan
25
revised How have Guava unit tests been generated automatically?
Corrected broken link
Jan
25
suggested approved edit on How have Guava unit tests been generated automatically?
Jan
25
accepted How have Guava unit tests been generated automatically?
Nov
19
revised Defining data model in Agile methodology
added 31 characters in body
Nov
19
asked Defining data model in Agile methodology
Nov
4
awarded  Popular Question
Aug
22
awarded  Good Question
May
25
awarded  Autobiographer
Apr
28
accepted What makes Web crawling legal?
Apr
28
comment What makes Web crawling legal?
FAQ says If you have a question about... quality assurance and testing and this question relates to testing, because [some testers are looking for public Web sites to learn test automation](sqa.stackexchange.com/questions/7312/….
Apr
28
revised What makes Web crawling legal?
edited tags
Apr
28
comment What makes Web crawling legal?
That not true. In contrast to unit and integration tests, end-to-end tests may require interaction with external systems as well. Mocking external system/Web site may not reveal all integration problems. Obviously, running the test hitting external site should require some agreement with an owner of that site. Anyway, -1, because this does not answer the question.
Apr
27
revised What makes Web crawling legal?
deleted 2 characters in body
Apr
27
asked What makes Web crawling legal?
Sep
5
accepted Can AspectJ or AOP in general be used to test exception handling?
Sep
1
comment Can AspectJ or AOP in general be used to test exception handling?
Mock can be a good solution but it might be sometime hard to mock everything. Can you mock filesystem? (Well, you could wrap filesystem with your own facade during app development, and then mock this facade during testing) Can you simulate OutOfMemoryException with mock?
Sep
1
comment Can AspectJ or AOP in general be used to test exception handling?
Re: your next update. You're right about simplicity. But traditional mocking libraries can be used only in unit tests. In contrast, AOP enables attaching aspects to fully deployed systems with no dependencies mocked, correct?
Sep
1
comment Can AspectJ or AOP in general be used to test exception handling?
Regarding your edit. If you have a complex exception handling, e.g. log an event, notify external systems and shutdown running thread gracefully, triggering an exception with AOP makes sense to me. It might be hard to automate assertion (I may evaluate output manually, e.g. via log reading), but at least I can simulate faulty situation with AOP.