<< < 7 8 9 10 11 12 13 14 15 16 17 > >>   Sort: Rank

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, 5568👍, 0💬

What Happens If a JUnit Test Method Is Declared to Return "String"
What Happens If a JUnit Test Method Is Declared to Return "String"? If a JUnit test method is declared to return "String", the compilation will pass ok. But the execution will fail. This is decause JUnit requires that all test methods must be declared to return "void". For example: type HelloTestNon...
2008-01-24, 5787👍, 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, 5801👍, 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, 5385👍, 0💬

How To Write a JUnit Test Method
How To Write a JUnit Test Method? This interview question is to check if you know the basic rules about writing a JUnit test method: You need to mark the method as a JUnit test method with the JUnit annotation: @org.junit.Test. A JUnit test method must be a "public" method. This allows the runner cl...
2008-01-22, 6402👍, 0💬

How Do You Uninstall JUnit?
How Do You Uninstall JUnit Uninstalling JUnit is easy. Just remember these: Delete the directory that contains the JUnit JAR file and other JUnit files. Remove the JUnit JAR file from the CLASSPATH environment variable. No need to stop any background processes, because JUnit does not use background ...
2008-01-17, 7822👍, 0💬

How Do I Run JUnit Tests from Command Window
How Do I Run JUnit Tests from Command Window? To run JUnit tests from a command window, you need to check the following list: 1. Make sure that JDK is installed and the "java" command program is accessible through the PATH setting. Type "java -version" at the command prompt, you should see the JVM r...
2008-01-17, 7386👍, 0💬

What CLASSPATH Settings Are Needed to Run JUnit
What CLASSPATH Settings Are Needed to Run JUnit? It doesn't matter if you run your JUnit tests from a command line, from an IDE, or from "ant", you must define your CLASSPATH settings correctly. Here is what recommended by the JUnit FAQ with some minor changes: To run your JUnit tests, you'll need t...
2008-01-15, 7613👍, 0💬

How To Run a JUnit Test Class
How To Run a JUnit Test Class? A JUnit test class usually contains a number of test methods. You can run all test methods in a JUnit test class with the JUnitCore runner class. For example, to run the test class HelloTest.java described previously, you should do this: java -cp .;junit-4.4.jar org.ju...
2008-01-15, 7271👍, 0💬

How To Compile a JUnit Test Class
How To Compile a JUnit Test Class? Compiling a JUnit test class is like compiling any other Java classes. The only thing you need watch out is that the JUnit JAR file must be included in the classpath. For example, to compile the test class HelloTest.java described previously, you should do this: ja...
2008-01-11, 7611👍, 0💬

How To Wirte a Simple JUnit Test Class
How To Wirte a Simple JUnit Test Class? This is a common test in a job interview. You should be able to write this simple test class with one test method: import org.junit.*; // by FYICenter.com public class HelloTest { @Test public void testHello() { String message = "Hello World!"; Assert.assertEq...
2008-01-11, 9353👍, 0💬

What Articles Have You Read about JUnit
What Articles Have You Read about JUnit? There are a number of JUnit articles that you should read: "JUnit Primer" by Clarkware Consulting, Inc.. This article demonstrates a quick and easy way to write and run JUnit test cases and test suites. "JUnit FAQ" by Mike Clark. A collection of requently ask...
2008-01-09, 9649👍, 0💬

How do I install JUnit? First I will download the lastest version of JUnit.
How do I install JUnit? First I will download the lastest version of JUnit. Then I will extract all files from the downloaded file. The most important file should be the JUnit JAR file: junit-4.4.jar, which contains all JUnit class packages. To verify junit-4.4.jar, I will run the org.junit.runner.J...
2008-01-09, 7318👍, 0💬

Where Do You Download JUnit?
Where Do You Download JUnit? Where do I download JUnit? I don't think anyone will ask this question in a job interview. But the answer is simple. You should follow the download instructions from the JUnit official Website: JUnit.org.
2008-01-07, 7106👍, 0💬

Do You Know the Book "JUnit in Action"
Do You Know the Book "JUnit in Action"? You should know this book. It received some good reviews. Title: JUnit in Action Publisher: Manning Publications (October 1, 2003) Author: Vincent Massol, Ted Husted Abstract: A guide to unit testing Java applications (including J2EE applications) using the JU...
2008-01-07, 6936👍, 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, 5697👍, 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, 5341👍, 0💬

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, 5654👍, 0💬

What Is JUnit
What is JUnit? You need to remember the following points when answering this question: It is a software testing framework to for unit testing. It is written in Java and designed to test Java applications. It is an Open Source Software maintained by the JUnit.org community. Answer from the JUnit FAQ:...
2008-01-02, 6154👍, 0💬

How you will enable front-end validation based on the xml in validation.xml
How you will enable front-end validation based on the xml in validation.xml? The &lthtml:javascript&gt tag to allow front-end validation based on the xml in validation.xml. For example the code: &lthtml:javascript formName=logonForm dynamicJavascript=true staticJavascript=true/&gt ge...
2007-12-28, 8063👍, 0💬

Give the Details of XML files used in Validator Framework
Give the Details of XML files used in Validator Framework? The Validator Framework uses two XML configuration files validator-rules.xml and validation.xml. The validator-rules.xml defines the standard validation routines, these are reusable and used in validation.xml to define the form specific vali...
2007-12-28, 6124👍, 0💬

What is Struts Validator Framework
What is Struts Validator Framework? Struts Framework provides the functionality to validate the form data. It can be use to validate the data on the users browser as well as on the server side. Struts Framework emits the Java Scripts and it can be used validate the form data on the client browser. S...
2007-12-26, 6302👍, 0💬

What is ActionForm
What is ActionForm? An ActionForm is a JavaBean that extends org.apache.struts.action.Actio nForm.ActionForm maintains the session state for web application and the ActionForm object is automatically populated on the server side with data entered from a form on the client side.
2007-12-24, 6210👍, 0💬

Can you write a simple Action Class
Can you write a simple Action Class? Sure. Here is the code of Action Class that returns the ActionForward object: import javax.servlet.http.HttpServlet Request;import javax.servlet.http.HttpServlet Response;br>import org.apache.struts.action.Actio n;import org.apache.struts.action.Actio nForm;impor...
2007-12-19, 6091👍, 0💬

<< < 7 8 9 10 11 12 13 14 15 16 17 > >>   Sort: Rank