Back to Library

The Basics

  • Unlike Junit 3 you don't have to extend from anything
  • Import the junit 4 Assert classes statically
import static org.junit.Assert.* 
  • Annotations are used to indicate what methods perform what actions
	@Test 
	public void getOrderCompleteWithDefaultValues(){
		assertEquals(true,true);
	}
 
junit_4.txt · Last modified: 2011/05/23 08:04 by root
 
RSS - 200 © CrosswireDigitialMedia Ltd