Guidewire Interview Question

what is the 3 mains class in Junit

Interview Answers

Anonymous

Feb 14, 2012

This Question is very tricky :) Answer is: Assert , Assume , ComparisonFailure why tricky :) Read following; 1>Example some one said above Test is a class but it is not a class :) it is org.junit Annotation Type Test 2>classical coders in java have the habit of thinking the last thing that comes in the import after the periods is the class example : import org.junit.Test; 3>The java doc or API doc shows all of them as classes in the frames :) the eclipse tool brings out the differences coz u will clearly see the class with the c in the drop down and the Annotation type with @

1

Anonymous

Feb 14, 2012

This Question is very tricky :) Answer is: Assert , Assume , ComparisonFailure why tricky :) Read following; 1>Example some one said above Test is a class but it is not a class :) it is org.junit Annotation Type Test 2>classical coders in java have the habit of thinking the last thing that comes in the import after the periods is the class example : import org.junit.Test; 3>The java doc or API doc shows all of them as classes in the frames :) the eclipse tool brings out the differences coz u will clearly see the class with the c in the drop down and the Annotation type with @

Anonymous

Oct 6, 2010

Assert, Assume, Test.None -- see this link http://kentbeck.github.com/junit/javadoc/latest/