Java Doc for GenTestTools.java in  » Test-Coverage » salome-tmf » salomeTMF_plug » requirements » data » 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 » Test Coverage » salome tmf » salomeTMF_plug.requirements.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   salomeTMF_plug.requirements.data.GenTestTools

GenTestTools
public class GenTestTools (Code)


Field Summary
static  StringPREFIX
    
static  StringPREFIX_FAMILLE
    
static  StringPREFIX_SUITE
    
static  StringPREFIX_TEST
    
static  intREQ_FAMILY
    
static  intREQ_LEAF
    
static  HashtabledefaultreqLink
    
static  SimpleDynamicTestTreepCopyDynamicTestTree
    
static  RequirementTreepOrgReqTree
    
static  HashtablereqLink
    
static  HashtablereqMapp
    
static  HashtablesimpeDataMapp
    
static  HashtabletestLink
    


Method Summary
static  voidaddReqBijectiveCovered(Requirement pTempReq, String testName)
    
static  voidaddSimleDataToDynamicTestTree(SimpleData data)
    
static  voidaddTestBijectiveCovered(Requirement pTempReq, String testName)
    
static  SimpleDynamicTestTreecreateCopyOfTestTree(DynamicTree _pDynamicTree)
    
static  RequirementfindInLeaf(Requirement pReq, SimpleData pSimpleData, String prefix, int type)
    
static  RequirementfindInLeafFamilyByName(Requirement pReq, String name, String prefix)
    
static  RequirementfindReqForFamily(SimpleData pSimpleData)
    
static  RequirementfindReqForTestList(SimpleData pSimpleData)
    
public static  voidgetBijectiveSimpleDataTree(DefaultMutableTreeNode pTempNode, SimpleDynamicTestTree dynTestTree)
    
static  DefaultMutableTreeNodegetCopyNode(DefaultMutableTreeNode node)
    
static  FamilygetDefaultFamily()
    
static  TestListgetDefaultTestList(Family pFamily)
    
static  intgetLevel(Requirement pReq)
    
static  SimpleDatagetOrCreateFamily(Requirement pReq, boolean insertInMap, boolean create)
    
static  SimpleDatagetOrCreateSuite(Requirement pReq, Family pFamily, boolean insertInMap, boolean create)
    
static  SimpleDatagetOrCreateTest(Requirement pReq, Family pFamily, TestList pTestList, boolean insertInMap, String prefix, boolean create)
     Get the test if exists or creates it if not.
static  StringgetPrefix(Requirement pReq, int level, Vector parent)
    
static  VectorgetPrefixListForTest(SimpleData pSimpleData, String defaultPrefix)
    
public static  RequirementgetRequirement(SimpleData pSimpleData)
    
public static  SimpleDatagetSimpleData(Requirement pReq, Vector path, boolean create)
    
static  voidinitReqLink()
    
static  voidinitReqWithTestLink(DefaultTreeModel treeModel, DefaultMutableTreeNode pTempNode)
    
public static  voidinitTools(RequirementTree _reqTree, DynamicTree _pDynamicTree)
    
public static  booleanisReqBijectiveCovered(Requirement pTempReq, String testName)
    
public static  booleanisReqDefaultCovered(Requirement pTempReq, String testName)
    
static  voidremoveNotDefaultReqBijectiveCovered(String testName)
    
static  voidremoveReqBijectiveCovered(Requirement pTempReq, String testName)
    
public static  booleanremoveReqBijectiveLinked(DefaultTreeModel treeModel, DefaultMutableTreeNode pTempNode)
     remove link from requirement if at least one test linked to it contains the same name of the requirement.
public static  voidremoveSimpleDataToDynamicTestTree(SimpleData data)
    
static  voidremoveTestBijectiveCovered(Requirement pTempReq, String testName)
    

Field Detail
PREFIX
static String PREFIX(Code)



PREFIX_FAMILLE
static String PREFIX_FAMILLE(Code)



PREFIX_SUITE
static String PREFIX_SUITE(Code)



PREFIX_TEST
static String PREFIX_TEST(Code)



REQ_FAMILY
static int REQ_FAMILY(Code)



REQ_LEAF
static int REQ_LEAF(Code)



defaultreqLink
static Hashtable defaultreqLink(Code)



pCopyDynamicTestTree
static SimpleDynamicTestTree pCopyDynamicTestTree(Code)



pOrgReqTree
static RequirementTree pOrgReqTree(Code)



reqLink
static Hashtable reqLink(Code)



reqMapp
static Hashtable reqMapp(Code)



simpeDataMapp
static Hashtable simpeDataMapp(Code)



testLink
static Hashtable testLink(Code)





Method Detail
addReqBijectiveCovered
static void addReqBijectiveCovered(Requirement pTempReq, String testName)(Code)

Parameters:
  pTempReq - a requirement leaf
Parameters:
  testName - name of the test to add



addSimleDataToDynamicTestTree
static void addSimleDataToDynamicTestTree(SimpleData data)(Code)
Add the simpleData to the pCopyDynamicTestTree
Parameters:
  data - simpleData to add



addTestBijectiveCovered
static void addTestBijectiveCovered(Requirement pTempReq, String testName)(Code)
Add test link to the requirement
Parameters:
  pTempReq - a requirement leaf
Parameters:
  testName - name of the test to add



createCopyOfTestTree
static SimpleDynamicTestTree createCopyOfTestTree(DynamicTree _pDynamicTree)(Code)
create a copy of a DynamicTree
Parameters:
  _pDynamicTree - the new test dynamic tree



findInLeaf
static Requirement findInLeaf(Requirement pReq, SimpleData pSimpleData, String prefix, int type)(Code)
Find a requirement from a test
Parameters:
  pReq - the requirement root to start the research
Parameters:
  pSimpleData - the test to find
Parameters:
  prefix - prefix corresponding to the test
Parameters:
  type - REQ_FAMILY=0 or REQ_LEAF = 1 the found requirement or null



findInLeafFamilyByName
static Requirement findInLeafFamilyByName(Requirement pReq, String name, String prefix)(Code)
Find a requirement from a Family requirement
Parameters:
  pReq - the selected requirement
Parameters:
  name - of the requirement to find
Parameters:
  prefix - prefix corresponding to the test the found requirement or null



findReqForFamily
static Requirement findReqForFamily(SimpleData pSimpleData)(Code)
Find a requirement from the Family
Parameters:
  pSimpleData - (Family) the requirement corresponding to the Family name



findReqForTestList
static Requirement findReqForTestList(SimpleData pSimpleData)(Code)
Find a requirement from the TestList
Parameters:
  pSimpleData - (TestList) the requirement corresponding to the TestList Name



getBijectiveSimpleDataTree
public static void getBijectiveSimpleDataTree(DefaultMutableTreeNode pTempNode, SimpleDynamicTestTree dynTestTree)(Code)
Recursive procedure that builds the test tree by parsing the requirement tree
Parameters:
  pTempNode - the currentNode
Parameters:
  pRequirementTree - the requirement tree



getCopyNode
static DefaultMutableTreeNode getCopyNode(DefaultMutableTreeNode node)(Code)
create a copy of a node
Parameters:
  node - the new copied node



getDefaultFamily
static Family getDefaultFamily()(Code)
the default family



getDefaultTestList
static TestList getDefaultTestList(Family pFamily)(Code)

Parameters:
  pFamily - the default TestList and add testList to the family



getLevel
static int getLevel(Requirement pReq)(Code)
get Requirement level
Parameters:
  pReq - the Requirement selected
Parameters:
  pRequirementTree - the current Requiremenet tree the Requirment level



getOrCreateFamily
static SimpleData getOrCreateFamily(Requirement pReq, boolean insertInMap, boolean create)(Code)
get the family of the corresponding selected requirement
Parameters:
  pReq - the selected requirement
Parameters:
  insertInMap - keep family
Parameters:
  create - force to create a new family get the family if found or if create it returns a new family corresponding to the requirement



getOrCreateSuite
static SimpleData getOrCreateSuite(Requirement pReq, Family pFamily, boolean insertInMap, boolean create)(Code)
get the testList of the corresponding selected requirement
Parameters:
  pReq - the selected requirement
Parameters:
  pFamily - the family
Parameters:
  insertInMap -
Parameters:
  create - force to create a new testList get the family if found or if create it returns a new family corresponding to the requirement



getOrCreateTest
static SimpleData getOrCreateTest(Requirement pReq, Family pFamily, TestList pTestList, boolean insertInMap, String prefix, boolean create)(Code)
Get the test if exists or creates it if not.
Parameters:
  pReq - the requirement corresponding to the test
Parameters:
  pFamily - the family
Parameters:
  pTestList - the testList
Parameters:
  insertInMap - using a cache or not
Parameters:
  prefix - prefix used
Parameters:
  create - force create if not exists the corresponding test



getPrefix
static String getPrefix(Requirement pReq, int level, Vector parent)(Code)
Get prefix corresponding to the requirement
Parameters:
  pReq - the selected requirement
Parameters:
  level - the level
Parameters:
  parent - List of requirement parents



getPrefixListForTest
static Vector getPrefixListForTest(SimpleData pSimpleData, String defaultPrefix)(Code)
Find a prefix List from the Test
Parameters:
  pSimpleData - (Test)
Parameters:
  defaultPrefix - default prefix used for the simpleData the prefix List in a String Vector



getRequirement
public static Requirement getRequirement(SimpleData pSimpleData)(Code)

Parameters:
  pSimpleData - (family,testList,test) the associated requirement to the simpleData



getSimpleData
public static SimpleData getSimpleData(Requirement pReq, Vector path, boolean create)(Code)
get the simpledata corresponding to the requirement
Parameters:
  pReq - the selected requirement
Parameters:
  path - path from root to the simpleData
Parameters:
  create - force to create simpleData if not found the simpledata found or if create true it returns a new simpledata corresponding to the requirement



initReqLink
static void initReqLink()(Code)
Build the requirement tree without requirements linked to test which checks the bijection



initReqWithTestLink
static void initReqWithTestLink(DefaultTreeModel treeModel, DefaultMutableTreeNode pTempNode)(Code)
Init requirements by adding those which are linked to test
Parameters:
  treeModel - the requirement tree model
Parameters:
  pTempNode - the root node



initTools
public static void initTools(RequirementTree _reqTree, DynamicTree _pDynamicTree)(Code)



isReqBijectiveCovered
public static boolean isReqBijectiveCovered(Requirement pTempReq, String testName)(Code)

Parameters:
  pTempReq - a requirement leaf
Parameters:
  testName - name of the test Return true if Requirement is linked in model with testName



isReqDefaultCovered
public static boolean isReqDefaultCovered(Requirement pTempReq, String testName)(Code)

Parameters:
  pTempReq - a requirement leaf
Parameters:
  testName - name of the test true if Requirement pTempReq is linked in DB with testName



removeNotDefaultReqBijectiveCovered
static void removeNotDefaultReqBijectiveCovered(String testName)(Code)
Remove test link to the requirement
Parameters:
  testName - name of the test to unlink



removeReqBijectiveCovered
static void removeReqBijectiveCovered(Requirement pTempReq, String testName)(Code)
Remove link from requirement
Parameters:
  pTempReq - the selected requirement
Parameters:
  testName - the name of the test



removeReqBijectiveLinked
public static boolean removeReqBijectiveLinked(DefaultTreeModel treeModel, DefaultMutableTreeNode pTempNode)(Code)
remove link from requirement if at least one test linked to it contains the same name of the requirement. It removes also requirement leaf from the available requirement tree.
Parameters:
  treeModel - requirement tree model
Parameters:
  pTempNode - requirement node to start recursive function true if one test have the same



removeSimpleDataToDynamicTestTree
public static void removeSimpleDataToDynamicTestTree(SimpleData data)(Code)
Remove the simpleData to the pCopyDynamicTestTree
Parameters:
  data - simpleData to remove



removeTestBijectiveCovered
static void removeTestBijectiveCovered(Requirement pTempReq, String testName)(Code)
Remove link from test
Parameters:
  pTempReq - a requirement leaf
Parameters:
  testName - name of the test to unlink



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.