Presentation is loading. Please wait.

Presentation is loading. Please wait.

Testing Modular Applications on the NetBeans Platform Geertjan Wielenga NetBeans Team.

Similar presentations


Presentation on theme: "Testing Modular Applications on the NetBeans Platform Geertjan Wielenga NetBeans Team."— Presentation transcript:

1 Testing Modular Applications on the NetBeans Platform Geertjan Wielenga NetBeans Team

2 Certified Engineer Course Agenda Testing Frameworks Modules for Testing Dependencies on Modules for Testing Typical Test Class Other Tools Resources

3 Certified Engineer Course Testing Frameworks Junit >>> NBJunit Jemmy (https://jemmy.dev.java.net) Jelly Tools (NetBeans extension to Jemmy) Xtest >>> Simple Test

4 Certified Engineer Course Modules for Testing

5 Certified Engineer Course Dependencies on Modules for Testing

6 Certified Engineer Course Typical Test Class public class SampleTest extends JellyTestCase { public SampleTest(String name) { super(name); } public static Test suite() { Configuration testConfig = NbModuleSuite.createConfiguration(SampleTest.class); testConfig.addTest("testSomething"); testConfig.clusters(".*").enableModules(".*"); testConfig.gui(true); return NbModuleSuite.create(testConfig); } public void setUp() { System.out.println("######## "+getName()+" #######"); } public void testSomething() { new Action("File|Some Action", null).perform(); }

7 Certified Engineer Course Other Tools Relating to Testing PMD ( PMD scans Java source code for Bugs, duplications,... ) FindBugs ( static code analysis ) CheckStyle ( Enforce Coding Standards ) Lint4j ( find Locking & Threading Issues ) SQE (contains all 4) in a NB Plugin (sqe.kenai.org)

8 Certified Engineer Course Resources http://openide.netbeans.org/tutorial/test-patterns.html http://blogs.sun.com/geertjan/entry/testing_testing_one_two_three http://wiki.netbeans.org/DevFaqUsingSimpletests http://wiki.netbeans.org/XTestReplacementCookBook

9 Certified Engineer Course Questions & Answers


Download ppt "Testing Modular Applications on the NetBeans Platform Geertjan Wielenga NetBeans Team."

Similar presentations


Ads by Google