Java Doc for AbstractTestGraphMaker.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » graph » test » 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 » RSS RDF » Jena 2.5.5 » com.hp.hpl.jena.graph.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.hp.hpl.jena.graph.test.GraphTestBase
   com.hp.hpl.jena.graph.test.AbstractTestGraphMaker

All known Subclasses:   com.hp.hpl.jena.db.test.TestGraphRDBMaker,  com.hp.hpl.jena.graph.test.TestFileGraphMaker,  com.hp.hpl.jena.graph.test.TestSimpleGraphMaker,
AbstractTestGraphMaker
abstract public class AbstractTestGraphMaker extends GraphTestBase (Code)
Abstract base class for testing graph factories. Subclasses define the method getGraphFactory() which supplies a new graph factory to be tested: ATGF invokes that during setUp and closes it in tearDown.

This bunch of tests is not remotely exhaustive, but it was sufficent to drive the development of the first full graph factory. (Although at the time it wasn't abstract.)
author:
   hedgehog




Constructor Summary
public  AbstractTestGraphMaker(String name)
    

Method Summary
abstract public  GraphMakergetGraphMaker()
    
public  voidsetUp()
    
public  voidtearDown()
    
public  voidtestAnyName()
    
public  voidtestCanCreateTwice()
    
public  voidtestCanFindCreatedGraph()
     Test that we can find a graph once its been created.
public  voidtestCanOpenUncreated()
    
public  voidtestCanRemoveGraph()
     Test that we can remove a graph from the factory without disturbing another graph's binding.
public  voidtestCannotCreateTwice()
     Test that we can't create a graph with the same name twice.
public  voidtestCannotOpenUncreated()
     Test that we cannot open a graph that does not exist.
public  voidtestCarefulClose()
    
public  voidtestCreateGraph()
    
public  voidtestGetGraph()
     A trivial test that getGraph delivers a proper graph, not cheating with null, and that getGraph() "always" delivers the same Graph.
public  voidtestHasnt()
    
public  voidtestListAfterDelete()
     Test that a maker with some things put in and then some removed gets the right things listed.
public  voidtestListNoGraphs()
     Test that a maker with no graphs lists no names.
public  voidtestListThreeGraphs()
     Test that a maker with three graphs inserted lists those three grapsh; we don't mind what order they appear in.


Constructor Detail
AbstractTestGraphMaker
public AbstractTestGraphMaker(String name)(Code)




Method Detail
getGraphMaker
abstract public GraphMaker getGraphMaker()(Code)



setUp
public void setUp()(Code)



tearDown
public void tearDown()(Code)



testAnyName
public void testAnyName()(Code)



testCanCreateTwice
public void testCanCreateTwice()(Code)



testCanFindCreatedGraph
public void testCanFindCreatedGraph()(Code)
Test that we can find a graph once its been created. We need to know if two graphs are "the same" here, which is tricky, because the RDB factory produces non-== graphs that are "the same": we have a temporary work-around but it is not sound.



testCanOpenUncreated
public void testCanOpenUncreated()(Code)
Test that we *can* open a graph that hasn't been created



testCanRemoveGraph
public void testCanRemoveGraph()(Code)
Test that we can remove a graph from the factory without disturbing another graph's binding.



testCannotCreateTwice
public void testCannotCreateTwice()(Code)
Test that we can't create a graph with the same name twice.



testCannotOpenUncreated
public void testCannotOpenUncreated()(Code)
Test that we cannot open a graph that does not exist.



testCarefulClose
public void testCarefulClose()(Code)



testCreateGraph
public void testCreateGraph()(Code)



testGetGraph
public void testGetGraph()(Code)
A trivial test that getGraph delivers a proper graph, not cheating with null, and that getGraph() "always" delivers the same Graph.



testHasnt
public void testHasnt()(Code)



testListAfterDelete
public void testListAfterDelete()(Code)
Test that a maker with some things put in and then some removed gets the right things listed.



testListNoGraphs
public void testListNoGraphs()(Code)
Test that a maker with no graphs lists no names.



testListThreeGraphs
public void testListThreeGraphs()(Code)
Test that a maker with three graphs inserted lists those three grapsh; we don't mind what order they appear in. We also use funny names to ensure that the spelling that goes in is the one that comes out [should really be in a separate test].



Fields inherited from com.hp.hpl.jena.graph.test.GraphTestBase
protected static int bnc(Code)(Java Doc)

Methods inherited from com.hp.hpl.jena.graph.test.GraphTestBase
protected static void appendNode(StringBuffer b, Map bnodes, Node n)(Code)(Java Doc)
public Set arrayToSet(Object[] A)(Code)(Java Doc)
public static void assertContains(String name, String s, Graph g)(Code)(Java Doc)
public static void assertContainsAll(String name, Graph g, String s)(Code)(Java Doc)
public static void assertEqualsTemplate(String title, Graph g, String template)(Code)(Java Doc)
public static void assertIsomorphic(String title, Graph expected, Graph got)(Code)(Java Doc)
public static void assertIsomorphic(Graph expected, Graph got)(Code)(Java Doc)
public static void assertOmits(String name, Graph g, String s)(Code)(Java Doc)
public static void assertOmitsAll(String name, Graph g, String s)(Code)(Java Doc)
public static boolean contains(Graph g, String fact)(Code)(Java Doc)
public static Graph getGraph(Object wrap, Class graphClass, ReificationStyle style)(Code)(Java Doc)
protected static Graph getReificationTriples(Reifier r)(Code)(Java Doc)
public static Graph graphAdd(Graph g, String s)(Code)(Java Doc)
public static Graph graphWith(String s)(Code)(Java Doc)
public static List iteratorToList(Iterator it)(Code)(Java Doc)
public static Set iteratorToSet(Iterator it)(Code)(Java Doc)
public static Graph newGraph()(Code)(Java Doc)
public static String nice(Graph g, Map bnodes)(Code)(Java Doc)
protected static String nice(Node n)(Code)(Java Doc)
protected static void niceTriple(StringBuffer b, Map bnodes, Triple t)(Code)(Java Doc)
public static Node node(String x)(Code)(Java Doc)
public static Node[] nodeArray(String items)(Code)(Java Doc)
public static List nodeList(String items)(Code)(Java Doc)
public Set nodeSet(String nodes)(Code)(Java Doc)
public void testContains(Graph g, Triple[] triples)(Code)(Java Doc)
public void testContains(Graph g, List triples)(Code)(Java Doc)
public void testContains(Graph g, Iterator it)(Code)(Java Doc)
public void testContains(Graph g, Graph other)(Code)(Java Doc)
public void testOmits(Graph g, Triple[] triples)(Code)(Java Doc)
public void testOmits(Graph g, List triples)(Code)(Java Doc)
public void testOmits(Graph g, Iterator it)(Code)(Java Doc)
public void testOmits(Graph g, Graph other)(Code)(Java Doc)
public static Triple triple(String fact)(Code)(Java Doc)
public static Triple triple(PrefixMapping pm, String fact)(Code)(Java Doc)
public static Triple[] tripleArray(String facts)(Code)(Java Doc)
public static Set tripleSet(String facts)(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.