English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-10-26 19:31:43 · 3 answers · asked by nareshy_y 1 in Computers & Internet Programming & Design

3 answers

How about including a main() method in every class. This method contains code to thoroughly test that particular class implementation. So, the tests for each class can be run from the command line, or from a single main file that runs main for each class. Of course, you'll also have to test interactions between classes, but this seems like a good start. I can even imagine an automated solution that runs these tests every night, for example.

2006-10-28 07:03:47 · answer #1 · answered by arbeit 4 · 0 0

Java EE is the industry standard for developing portable, robust, scalable and secure server-side Java applications. Java Platform, Enterprise Edition Java EE 5--latest version of this framework has been launched by Sun Microsystems, recently.

Did you notice that this version is being called JEE instead of J2EE? The numeral '2' has been removed from the name of the framework, by Sun to make it simpler. According to Sun, "formerly, the platform was known as Java 2 Platform, Enterprise Edition (J2EE), and specific versions had "dot numbers" such as J2EE 1.4. The "2" is dropped from the name, as well as the dot numThis version of Java allows trashing deployment descriptors in most of the cases. In the previous versions to create a web service the programmer had to write Java code for the web service API, a Java class that would implement the web service, a deployment descriptor for the container, and a configuration file for mapping details. Life is made much simpler now, and programmers have to just write the Java class that implements the web service-the rest is taken care of by the container itself based on the annotations and default rules included in the source code.

Earlier, even simple tasks like combining modules into an 'ear' file required writing of a deployment descriptor to provide details of the modules; all this can be done away with and modules can be simply put in the respective 'ear' file and the rest is taken care of by the framework itself.

ber. So the next version of the Java platform for the enterprise is Java Platform, Enterprise

2006-10-26 19:36:24 · answer #2 · answered by maha 2 · 0 1

The JUnit unit test framework provides the core framework for easily creating, organizing, executing, and generating reports for test suites composed of individual test cases. This goes well beyond the rudimental main() approach. Once you start writing test cases, it is easy to quickly execute all existing test cases for your project, especially for such things as a nightly build.

2006-10-30 08:41:14 · answer #3 · answered by vincentgl 5 · 0 0

fedest.com, questions and answers