Java Doc for FastRunner.java in  » Testing » jumble » com » reeltwo » jumble » fast » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » jumble » com.reeltwo.jumble.fast 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.reeltwo.jumble.fast.FastRunner

FastRunner
public class FastRunner (Code)
A runner for the FastJumbler. Runs the FastJumbler in a new JVM and detects timeouts.
author:
   Tin Pavlinic
version:
   $Revision: 516 $


Field Summary
final public static  FileCACHE_FILE
    
 FailedTestMapmCache
    

Constructor Summary
public  FastRunner()
    

Method Summary
public  voidaddExcludeMethod(String methodName)
    
public  voidaddJvmArg(String arg)
    
public  voidaddSystemProperty(String property)
    
public static  longcomputeTimeout(long runtime)
    
public  StringgetClassPath()
     Returns the classpath used to load test and source classes.
public  Set<String>getExcludeMethods()
    
public  intgetFirstMutation()
     Get the index of the first mutation to attempt.
public  intgetMaxExternalMutations()
     Gets the maximum number of mutations performed by the external JVM. the maximum number of external mutations.
public  booleanisCPool()
     Gets whether constant pool will be mutated.
public  booleanisIncrements()
     Gets whether increments will be mutated.
public  booleanisInlineConstants()
     Gets whether inline constants will be mutated.
public  booleanisLoadCache()
    
public  booleanisOrdered()
     Gets whether tests are ordered by their run time.
public  booleanisReturnVals()
     Gets whether return values will be mutated.
public  booleanisSaveCache()
    
public  booleanisSwitch()
     Gets whether switches will be mutated.
public  booleanisUseCache()
    
public  booleanisVerbose()
     Gets whether verbose mode is set.
public  voidrunJumble(String className, List<String> testClassNames, JumbleListener listener)
     Performs a Jumble run on the specified class with the specified tests.
public  voidsetCPool(boolean cpool)
     Sets whether constant pool will be mutated.
public  voidsetClassPath(String classpath)
     Sets the classpath used to load test and source classes.
public  voidsetFirstMutation(int newFirstMutation)
     Set the index of the first mutation to attempt.
public  voidsetIncrements(boolean argIncrements)
     Sets whether increments will be mutated.
public  voidsetInlineConstants(boolean argInlineConstants)
     Sets whether inline constants will be mutated.
public  voidsetLoadCache(boolean argLoadCache)
    
public  voidsetMaxExternalMutations(int maxExternalMutations)
     Sets the maximum number of mutations performed by the external JVM.
Parameters:
  maxExternalMutations - the maximum number of external mutations.
public  voidsetOrdered(boolean argOrdered)
     Sets whether tests are ordered by their run time.
public  voidsetReturnVals(boolean argReturnVals)
     Sets whether return values will be mutated.
public  voidsetSaveCache(boolean argSaveCache)
    
public  voidsetSwitch(boolean switches)
     Sets whether switches will be mutated.
public  voidsetUseCache(boolean argUseCache)
    
public  voidsetVerbose(boolean newVerbose)
     Sets whether verbose mode is enabled.

Field Detail
CACHE_FILE
final public static File CACHE_FILE(Code)
Filename for the cache



mCache
FailedTestMap mCache(Code)
The variable storing the failed tests - can get pretty big




Constructor Detail
FastRunner
public FastRunner()(Code)




Method Detail
addExcludeMethod
public void addExcludeMethod(String methodName)(Code)



addJvmArg
public void addJvmArg(String arg)(Code)



addSystemProperty
public void addSystemProperty(String property)(Code)



computeTimeout
public static long computeTimeout(long runtime)(Code)
A function which computes the timeout for given that the original test took runtime
Parameters:
  runtime - the original runtime the computed timeout



getClassPath
public String getClassPath()(Code)
Returns the classpath used to load test and source classes. the classpath string.



getExcludeMethods
public Set<String> getExcludeMethods()(Code)
Gets the set of excluded method names the set of excluded method names



getFirstMutation
public int getFirstMutation()(Code)
Get the index of the first mutation to attempt. the first mutation index.



getMaxExternalMutations
public int getMaxExternalMutations()(Code)
Gets the maximum number of mutations performed by the external JVM. the maximum number of external mutations. A negative value impliesno maximum.



isCPool
public boolean isCPool()(Code)
Gets whether constant pool will be mutated. true if constant pool will be mutated.



isIncrements
public boolean isIncrements()(Code)
Gets whether increments will be mutated. true if increments will be mutated.



isInlineConstants
public boolean isInlineConstants()(Code)
Gets whether inline constants will be mutated. true if inline constants will be mutated.



isLoadCache
public boolean isLoadCache()(Code)
Gets the value of loadCache the value of loadCache



isOrdered
public boolean isOrdered()(Code)
Gets whether tests are ordered by their run time. true if tests are ordered by their run time.



isReturnVals
public boolean isReturnVals()(Code)
Gets whether return values will be mutated. true if return values will be mutated.



isSaveCache
public boolean isSaveCache()(Code)
Gets the value of saveCache the value of saveCache



isSwitch
public boolean isSwitch()(Code)
Gets whether switches will be mutated. true if switches will be mutated.



isUseCache
public boolean isUseCache()(Code)
Gets the value of useCache the value of useCache



isVerbose
public boolean isVerbose()(Code)
Gets whether verbose mode is set. true if verbose mode is enabled.



runJumble
public void runJumble(String className, List<String> testClassNames, JumbleListener listener) throws Exception(Code)
Performs a Jumble run on the specified class with the specified tests.
Parameters:
  className - the name of the class to Jumble
Parameters:
  testClassNames - the names of the associated test classes
Parameters:
  listener - the listener associated with this Jumble run.
throws:
  Exception - if something goes wrong
See Also:   JumbleResult
See Also:   JumbleListener



setCPool
public void setCPool(boolean cpool)(Code)
Sets whether constant pool will be mutated.
Parameters:
  cpool - true if constants will be mutated.



setClassPath
public void setClassPath(String classpath)(Code)
Sets the classpath used to load test and source classes.
Parameters:
  classpath - a String value



setFirstMutation
public void setFirstMutation(int newFirstMutation)(Code)
Set the index of the first mutation to attempt.
Parameters:
  newFirstMutation - the new FirstMutation value.



setIncrements
public void setIncrements(boolean argIncrements)(Code)
Sets whether increments will be mutated.
Parameters:
  argIncrements - true if increments will be mutated.



setInlineConstants
public void setInlineConstants(boolean argInlineConstants)(Code)
Sets whether inline constants will be mutated.
Parameters:
  argInlineConstants - true if inline constants should be mutated.



setLoadCache
public void setLoadCache(boolean argLoadCache)(Code)
Sets the value of loadCache
Parameters:
  argLoadCache - Value to assign to loadCache



setMaxExternalMutations
public void setMaxExternalMutations(int maxExternalMutations)(Code)
Sets the maximum number of mutations performed by the external JVM.
Parameters:
  maxExternalMutations - the maximum number of external mutations. A negative value impliesno maximum.



setOrdered
public void setOrdered(boolean argOrdered)(Code)
Sets whether tests are ordered by their run time.
Parameters:
  argOrdered - true if tests should be ordered by their run time.



setReturnVals
public void setReturnVals(boolean argReturnVals)(Code)
Sets whether return values will be mutated.
Parameters:
  argReturnVals - true return values should be mutated.



setSaveCache
public void setSaveCache(boolean argSaveCache)(Code)
Sets the value of saveCache
Parameters:
  argSaveCache - Value to assign to saveCache



setSwitch
public void setSwitch(boolean switches)(Code)
Sets whether switches will be mutated.
Parameters:
  switches - true if switches will be mutated.



setUseCache
public void setUseCache(boolean argUseCache)(Code)
Sets the value of useCache
Parameters:
  argUseCache - Value to assign to useCache



setVerbose
public void setVerbose(boolean newVerbose)(Code)
Sets whether verbose mode is enabled.
Parameters:
  newVerbose - true if verbose mode should be enabled.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.