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


jena.test.Test_schemagen

Test_schemagen
public class Test_schemagen extends TestCase (Code)

Unit tests for schemagen


author:
   Ian Dickinson, HP Labs
author:
   (email)
version:
   CVS $Id: Test_schemagen.java,v 1.8 2008/01/02 12:08:49 andy_seaborne Exp $

Inner Class :static class SchemaGenAux extends schemagen

Field Summary
 StringPREFIX
    


Method Summary
protected  StringgetClassPath(File tmpDir)
    
public  voidtestClass0()
    
public  voidtestClass1()
    
public  voidtestClass2()
    
public  voidtestClass3()
    
public  voidtestClassdec()
    
public  voidtestClassname()
    
public  voidtestComment0()
    
public  voidtestComment1()
    
protected  voidtestCompile(String source, String className)
     Test the compilability of the generated output string by saving it to a class file, and invoking javac on that file.
public  voidtestDeclarations()
    
public  voidtestFooter()
    
public  voidtestHeader()
    
public  voidtestIncludeSource0()
    
public  voidtestIncludeSource1()
    
public  voidtestInference0()
    
public  voidtestInference1()
    
public  voidtestInference2()
    
public  voidtestInstance0()
    
public  voidtestInstance1()
    
public  voidtestInstance3()
    
public  voidtestLineEnd0()
    
public  voidtestLineEnd1()
    
public  voidtestNoBaseURI0()
    
public  voidtestNoClasses()
    
public  voidtestNoHeader()
    
public  voidtestNoIndividuals()
    
public  voidtestNoProperties()
    
public  voidtestOntClass0()
    
public  voidtestOntClass1()
    
public  voidtestOntClass2()
    
public  voidtestOntClass3()
    
public  voidtestOntProperty0()
    
public  voidtestOntProperty1()
    
public  voidtestOntProperty2()
    
public  voidtestOntProperty3()
    
public  voidtestPackage()
    
public  voidtestProperty0()
    
public  voidtestProperty1()
    
public  voidtestProperty2()
    
public  voidtestProperty3()
    
public  voidtestRC0()
    
protected  StringtestSchemagenOutput(String source, SchemaGenAux sg, String[] args, String[] posPatterns, String[] negPatterns)
     Test the output from schemagen by saving the output to a string, then ensuring that every positive regex matches at least one line, and every negative regex matches at most no lines.
public  voidtestStrictIndividuals0()
    
public  voidtestStrictIndividuals1()
    
public  voidtestUCNames()
    

Field Detail
PREFIX
String PREFIX(Code)





Method Detail
getClassPath
protected String getClassPath(File tmpDir)(Code)
answer the classpath we can use to compile the sg output files
Parameters:
  tmpDir -



testClass0
public void testClass0() throws Exception(Code)



testClass1
public void testClass1() throws Exception(Code)



testClass2
public void testClass2() throws Exception(Code)



testClass3
public void testClass3() throws Exception(Code)



testClassdec
public void testClassdec() throws Exception(Code)



testClassname
public void testClassname() throws Exception(Code)



testComment0
public void testComment0() throws Exception(Code)



testComment1
public void testComment1() throws Exception(Code)



testCompile
protected void testCompile(String source, String className) throws Exception(Code)
Test the compilability of the generated output string by saving it to a class file, and invoking javac on that file.
Parameters:
  source -
Parameters:
  className -
throws:
  Exception -



testDeclarations
public void testDeclarations() throws Exception(Code)



testFooter
public void testFooter() throws Exception(Code)



testHeader
public void testHeader() throws Exception(Code)



testIncludeSource0
public void testIncludeSource0() throws Exception(Code)



testIncludeSource1
public void testIncludeSource1() throws Exception(Code)



testInference0
public void testInference0() throws Exception(Code)



testInference1
public void testInference1() throws Exception(Code)



testInference2
public void testInference2() throws Exception(Code)



testInstance0
public void testInstance0() throws Exception(Code)



testInstance1
public void testInstance1() throws Exception(Code)



testInstance3
public void testInstance3() throws Exception(Code)



testLineEnd0
public void testLineEnd0() throws Exception(Code)



testLineEnd1
public void testLineEnd1() throws Exception(Code)



testNoBaseURI0
public void testNoBaseURI0() throws Exception(Code)
This test used to fail with an abort, but we now guess the NS based on prevalence



testNoClasses
public void testNoClasses() throws Exception(Code)



testNoHeader
public void testNoHeader() throws Exception(Code)



testNoIndividuals
public void testNoIndividuals() throws Exception(Code)



testNoProperties
public void testNoProperties() throws Exception(Code)



testOntClass0
public void testOntClass0() throws Exception(Code)



testOntClass1
public void testOntClass1() throws Exception(Code)



testOntClass2
public void testOntClass2() throws Exception(Code)



testOntClass3
public void testOntClass3() throws Exception(Code)



testOntProperty0
public void testOntProperty0() throws Exception(Code)



testOntProperty1
public void testOntProperty1() throws Exception(Code)



testOntProperty2
public void testOntProperty2() throws Exception(Code)



testOntProperty3
public void testOntProperty3() throws Exception(Code)



testPackage
public void testPackage() throws Exception(Code)



testProperty0
public void testProperty0() throws Exception(Code)



testProperty1
public void testProperty1() throws Exception(Code)



testProperty2
public void testProperty2() throws Exception(Code)



testProperty3
public void testProperty3() throws Exception(Code)



testRC0
public void testRC0() throws Exception(Code)
Bug report by Richard Cyganiak



testSchemagenOutput
protected String testSchemagenOutput(String source, SchemaGenAux sg, String[] args, String[] posPatterns, String[] negPatterns) throws Exception(Code)
Test the output from schemagen by saving the output to a string, then ensuring that every positive regex matches at least one line, and every negative regex matches at most no lines. Also checks that compiling the file does not cause any errors.
Parameters:
  source - String defining the model, using N3
Parameters:
  sg - The schemagen object to test, or null for a default
Parameters:
  args - list of args to pass to SG
Parameters:
  posPatterns - array of regexps that must match at least once in the output
Parameters:
  negPatterns - arrays of regexps that must not match the output The string defining the java class



testStrictIndividuals0
public void testStrictIndividuals0() throws Exception(Code)



testStrictIndividuals1
public void testStrictIndividuals1() throws Exception(Code)



testUCNames
public void testUCNames() throws Exception(Code)



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