Unit test naming conventions

There are a certain number of naming conventions used for unit tests. At beginning, with JUnit 3, to define a test it was mandatory that the class name was named like MyClassTest, be extending from TestCase and all the test method names were starting with ‘test’ as in ‘testMyMethod()’. I think that this is a […]

Workaround to multi threaded testing

Since it has been introduced in JDK 1.5, I have loved the Executor abstraction over multi threaded execution. Basically you define tasks, implementing Runnable or Callable interfaces, and you submit those tasks to an Executor implementation, knowing that before or later the task will be processed. It's the Executor who knows how the tasks must […]




About

You are currently browsing the NewInstance weblog archives for junit.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.

Calendar

August 2017
M T W T F S S
« Nov    
 123456
78910111213
14151617181920
21222324252627
28293031  

Follow me

twitter flickr LinkedIn feed

Subscribe by email

Enter your email address:

Archives


Categories

Tag Cloud


Listening