Pergunta de entrevista da empresa Guidewire

what is the 3 mains class in Junit

Respostas da entrevista

Sigiloso

14 de fev. de 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

Sigiloso

14 de fev. de 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 @

Sigiloso

6 de out. de 2010

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