org.alfresco.repo.content.metadata.xml
Class XmlMetadataExtracterTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.content.metadata.xml.XmlMetadataExtracterTest
All Implemented Interfaces:
junit.framework.Test

public class XmlMetadataExtracterTest
extends junit.framework.TestCase

Tests various aspects of XML metadata extraction.

See Also:
XPathMetadataExtracter

Constructor Summary
XmlMetadataExtracterTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testDITAFileWithDoctype()
           
 void testDITAFileWithoutDoctype()
           
 void testEmptyFile()
           
 void testExtractAlfresocModel()
           
 void testExtractEclipseProject()
           
 void testLifecycleOfXmlMetadataExtraction()
          Tests metadata extraction using an action with an EAGER MetadataExtracter for XML.
 void testMalformedFile()
           
 void testRootElementNameSelector()
           
 void testSetUp()
           
 void testXmlMetadataExtracter()
           
 void testXpathSelector()
           
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlMetadataExtracterTest

public XmlMetadataExtracterTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testSetUp

public void testSetUp()

testExtractAlfresocModel

public void testExtractAlfresocModel()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testExtractEclipseProject

public void testExtractEclipseProject()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testDITAFileWithDoctype

public void testDITAFileWithDoctype()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testDITAFileWithoutDoctype

public void testDITAFileWithoutDoctype()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testEmptyFile

public void testEmptyFile()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testMalformedFile

public void testMalformedFile()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testRootElementNameSelector

public void testRootElementNameSelector()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testXpathSelector

public void testXpathSelector()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testXmlMetadataExtracter

public void testXmlMetadataExtracter()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testLifecycleOfXmlMetadataExtraction

public void testLifecycleOfXmlMetadataExtraction()
                                          throws java.lang.Exception
Tests metadata extraction using an action with an EAGER MetadataExtracter for XML.

Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.