Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.hp.hpl.jena.ontology.impl.test
Class TestOntDocumentManager.DocManagerImportTest  view TestOntDocumentManager.DocManagerImportTest download TestOntDocumentManager.DocManagerImportTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.hp.hpl.jena.ontology.impl.test.TestOntDocumentManager.DocManagerImportTest
All Implemented Interfaces:
junit.framework.Test
Enclosing class:
TestOntDocumentManager

static class TestOntDocumentManager.DocManagerImportTest
extends junit.framework.TestCase

Document manager imports test case. Each test case starts with a root model (always a.owl in some directory), and loads the model. Depending on the model contents, and the settings of the doc manager, other models will be loaded. Each model is set to contain a fixed number of marker statements of the form:

   
 
the test for having correctly loaded the models is to count the markers and compare to the predicted total.


Field Summary
(package private)  int m_count
           
(package private)  java.lang.String m_dir
           
(package private)  java.lang.String m_path
           
(package private)  boolean m_processImports
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
(package private) TestOntDocumentManager.DocManagerImportTest(java.lang.String dir, int count, boolean processImports, java.lang.String path)
           
 
Method Summary
 void runTest()
          Override to run the test and assert its state.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_dir

java.lang.String m_dir

m_count

int m_count

m_path

java.lang.String m_path

m_processImports

boolean m_processImports
Constructor Detail

TestOntDocumentManager.DocManagerImportTest

TestOntDocumentManager.DocManagerImportTest(java.lang.String dir,
                                            int count,
                                            boolean processImports,
                                            java.lang.String path)
Method Detail

runTest

public void runTest()
Description copied from class: junit.framework.TestCase
Override to run the test and assert its state.