org.alfresco.repo.node.index
Class MissingContentReindexComponentTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.node.index.MissingContentReindexComponentTest
All Implemented Interfaces:
junit.framework.Test

public class MissingContentReindexComponentTest
extends junit.framework.TestCase

See Also:
MissingContentReindexComponent

Constructor Summary
MissingContentReindexComponentTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testReindex()
          Create a node with a content URL that points to missing content.
 
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

MissingContentReindexComponentTest

public MissingContentReindexComponentTest()
Method Detail

setUp

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

tearDown

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

testReindex

public void testReindex()
                 throws java.lang.Exception
Create a node with a content URL that points to missing content. It then checks that the indexing flagged it, prompts a reindex of missing content and checks that the text was properly indexed.

Throws:
java.lang.Exception


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