intermediate/DNCReporting

From ggc

Jump to: navigation, search

01 package intermediate;
02 
03 
04 /**
05  * All about my application.
06  @author My Name Here
07  */
08 public class DNCReporting
09 {
10   public static void main(String[] args)
11   {
12     DefiniteNumericCollection[] all=new DefiniteNumericCollection[]
13                                     {new MyDefiniteNumericCollection()};
14     DefiniteNumericCollectionTest[] allTests=new DefiniteNumericCollectionTest[]
15             {new MyTest()};
16     for(DefiniteNumericCollection dnc: all)
17     {
18       for(DefiniteNumericCollectionTest test: allTests)
19       {
20         try
21         {
22           test.runTests(dnc);
23           System.out.println("Pass report:\n"+test.getPassReport());
24           System.out.println("Fail report:\n"+test.getFailReport());
25         }
26         catch(Exception e)
27         {
28           e.printStackTrace(System.out);
29           System.out.println("Ooops, your test had bugs in it.");
30         }
31       }
32     }
33   }
34 }


Download/View intermediate/DNCReporting.java





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter