de.fuberlin.wiwiss.d2rq
Class ParserTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byde.fuberlin.wiwiss.d2rq.ParserTest
All Implemented Interfaces:
junit.framework.Test

public class ParserTest
extends junit.framework.TestCase

Unit tests for MapParser

Author:
Richard Cyganiak

Field Summary
private  MockLogger logger
           
private  com.hp.hpl.jena.rdf.model.Model model
           
private static java.lang.String TABLE_URI
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ParserTest(java.lang.String arg0)
          Constructor for ParserTest.
 
Method Summary
private  void addTranslationResource(com.hp.hpl.jena.rdf.model.Resource table, com.hp.hpl.jena.rdf.model.RDFNode dbValue, com.hp.hpl.jena.rdf.model.RDFNode rdfValue)
           
private  com.hp.hpl.jena.rdf.model.Resource createTranslationTableResource()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testEmptyTranslationTable()
           
 void testGetSameTranslationTable()
           
 void testParseTranslationTable()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

TABLE_URI

private static final java.lang.String TABLE_URI
See Also:
Constant Field Values

model

private com.hp.hpl.jena.rdf.model.Model model

logger

private MockLogger logger
Constructor Detail

ParserTest

public ParserTest(java.lang.String arg0)
Constructor for ParserTest.

Parameters:
arg0 -
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testEmptyTranslationTable

public void testEmptyTranslationTable()

testGetSameTranslationTable

public void testGetSameTranslationTable()

testParseTranslationTable

public void testParseTranslationTable()

createTranslationTableResource

private com.hp.hpl.jena.rdf.model.Resource createTranslationTableResource()

addTranslationResource

private void addTranslationResource(com.hp.hpl.jena.rdf.model.Resource table,
                                    com.hp.hpl.jena.rdf.model.RDFNode dbValue,
                                    com.hp.hpl.jena.rdf.model.RDFNode rdfValue)