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


com.hp.hpl.jena.test.JenaTestBase

All known Subclasses:   com.hp.hpl.jena.rdf.model.test.TestAnonID,  com.hp.hpl.jena.db.test.TestDriverMap,  com.hp.hpl.jena.shared.test.TestJenaException,  com.hp.hpl.jena.graph.test.GraphTestBase,  com.hp.hpl.jena.regression.TestCaseBasic,
JenaTestBase
public class JenaTestBase extends TestCase (Code)
A basis for Jena test cases which provides assertFalse and assertDiffer. Often the logic of the names is clearer than using a negation (well, Chris thinks so anyway).
author:
   kers



Constructor Summary
public  JenaTestBase(String name)
    

Method Summary
public static  Listappend(List L, List R)
     Answer a fresh list which is the concatenation of L then R.
public static  voidassertDiffer(String title, Object x, Object y)
     assert that the two objects must be unequal according to .equals().
public static  voidassertDiffer(Object x, Object y)
     assert that the two objects must be unequal according to .equals().
public static  voidassertHasParent(Class subClass, Class superClass)
     Fail unless subClass has superClass as a parent, either a superclass or an implemented (directly or not) interface.
public static  voidassertInstanceOf(Class expected, Object x)
     assert that the object x must be of the class expected.
public static  ConstructorgetConstructor(Class c, Class[] args)
     Answer the constructor of the class c which takes arguments of the type(s) in args, or null if there isn't one.
public static  booleanhasAsParent(Class subClass, Class superClass)
     Answer true iff subClass is the same class as superClass, if its superclass is superClass, or if one of its interfaces hasAsInterface that class.
public static  booleanisPublicTestMethod(Method m)
     Answer true iff the method m is a public method which fits the pattern of being a test method, ie, test*() returning void.
public static  booleanisTestMethod(Method m)
     Answer true iff the method m has a name starting "test", takes no arguments, and returns void; must catch junit tests, in other words.
protected static  ExtendedIteratoriteratorOfStrings(String s)
     Answer an iterator over the space-separated substrings of s.
protected static  ListlistOfOne(Object x)
     Answer a list containing the single object x.
protected static  ListlistOfStrings(String s)
     Answer a List of the substrings of s that are separated by spaces.
public static  SetlistToSet(List L)
     Answer a Set formed from the elements of the List L.
public static  voidpass()
     Do nothing; a way of notating that a test has succeeded, useful in the body of a catch-block to silence excessively [un]helpful disgnostics.
protected static  SetsetOfOne(Object x)
     Answer a Set containing the single object x.
protected static  SetsetOfStrings(String s)
     Answer a Set of the substrings of s that are separated by spaces.
public  voidtestToSilenceJunitComplaintsAboutNoTestMethods()
     Does what it says on the can.


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




Method Detail
append
public static List append(List L, List R)(Code)
Answer a fresh list which is the concatenation of L then R. Neither L nor R is updated.



assertDiffer
public static void assertDiffer(String title, Object x, Object y)(Code)
assert that the two objects must be unequal according to .equals().
Parameters:
  title - a labelling string for the assertion failure text
Parameters:
  x - an object to test; the subject of a .equals()
Parameters:
  y - the other object; the argument of the .equals()



assertDiffer
public static void assertDiffer(Object x, Object y)(Code)
assert that the two objects must be unequal according to .equals().
Parameters:
  x - an object to test; the subject of a .equals()
Parameters:
  y - the other object; the argument of the .equals()



assertHasParent
public static void assertHasParent(Class subClass, Class superClass)(Code)
Fail unless subClass has superClass as a parent, either a superclass or an implemented (directly or not) interface.



assertInstanceOf
public static void assertInstanceOf(Class expected, Object x)(Code)
assert that the object x must be of the class expected.



getConstructor
public static Constructor getConstructor(Class c, Class[] args)(Code)
Answer the constructor of the class c which takes arguments of the type(s) in args, or null if there isn't one.



hasAsParent
public static boolean hasAsParent(Class subClass, Class superClass)(Code)
Answer true iff subClass is the same class as superClass, if its superclass is superClass, or if one of its interfaces hasAsInterface that class.



isPublicTestMethod
public static boolean isPublicTestMethod(Method m)(Code)
Answer true iff the method m is a public method which fits the pattern of being a test method, ie, test*() returning void.



isTestMethod
public static boolean isTestMethod(Method m)(Code)
Answer true iff the method m has a name starting "test", takes no arguments, and returns void; must catch junit tests, in other words.



iteratorOfStrings
protected static ExtendedIterator iteratorOfStrings(String s)(Code)
Answer an iterator over the space-separated substrings of s.



listOfOne
protected static List listOfOne(Object x)(Code)
Answer a list containing the single object x.



listOfStrings
protected static List listOfStrings(String s)(Code)
Answer a List of the substrings of s that are separated by spaces.



listToSet
public static Set listToSet(List L)(Code)
Answer a Set formed from the elements of the List L.



pass
public static void pass()(Code)
Do nothing; a way of notating that a test has succeeded, useful in the body of a catch-block to silence excessively [un]helpful disgnostics.



setOfOne
protected static Set setOfOne(Object x)(Code)
Answer a Set containing the single object x.



setOfStrings
protected static Set setOfStrings(String s)(Code)
Answer a Set of the substrings of s that are separated by spaces.



testToSilenceJunitComplaintsAboutNoTestMethods
public void testToSilenceJunitComplaintsAboutNoTestMethods()(Code)
Does what it says on the can.



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