< 1 2   Sort: Date

Who Should Use JUnit, Developers or Testers
Who Should Use JUnit, Developers or Testers? I should say that JUnit is mostly used by developers. JUnit is designed for unit testing, which is really a coding process, not a testing process. But many testers or QA engineers, are also required to use JUnit for unit testing. For example, I found this...
2008-01-02, 5123👍, 0💬

What Happens If a JUnit Test Method Is Declared as "private"
What Happens If a JUnit Test Method Is Declared as "private"? If a JUnit test method is declared as "private", the compilation will pass ok. But the execution will fail. This is decause JUnit requires that all test methods must be declared as "public". For example: type HelloTestPrivate.java import ...
2008-01-24, 5122👍, 0💬

Do You Know the Book "JUnit Recipes: Practical Methods for Programmer Testing"
Do You Know the Book "JUnit Recipes: Practical Methods for Programmer Testing"? You should know this book. It received some good reviews. Title: JUnit Recipes: Practical Methods for Programmer Testing Publisher: Manning Publications (July 15, 2004) Author: J. B. Rainsberger, Scott Stirling Abstract:...
2008-01-03, 5116👍, 0💬

Why Not Just Use a Debugger for Unit Testing?
Why Not Just Use a Debugger for Unit Testing? This is a common question in a job interview. You should answer it with these points: A debugger is designed for manual debugging and manual unit testing, not for automated unit testing. JUnit is designed for automated unit testing. Automated unit testin...
2008-02-06, 5061👍, 0💬

Why Do You Use JUnit to Test Your Code?
Why Do You Use JUnit to Test Your Code? This is a commonly asked question in a job interview. Your answer should have these points: I believe that writing more tests will make me more productive, not less productive. I believe that tests should be done as soon as possible at the code unit level. I b...
2008-01-03, 4986👍, 0💬

Why Does Poeple Import org.junit.Assert Statically
Why Does Poeple Import org.junit.Assert Statically? Poeple use the static import statement on org.junit.Assert to save coding time on calling its assetion methods. With a normal import statement, assertion method names must qualified with the class name like this: import org.junit.Assert; ... Assert...
2008-01-29, 4943👍, 0💬

Can You Provide a List of Assertion Methods Supported by JUnit 4.4
Can You Provide a List of Assertion Methods Supported by JUnit 4.4? You should be able to answer this question by looking up the org.junit.Assert class API document. Here is a list of assertino methods supported by JUnit 4.4: assertEquals(expected, actual) assertEquals(message, expected, actual) ass...
2008-01-22, 4876👍, 0💬

< 1 2   Sort: Date