org.alfresco.repo.search.impl.lucene
Class ALF947Test

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.search.impl.lucene.ALF947Test
All Implemented Interfaces:
junit.framework.Test

public class ALF947Test
extends junit.framework.TestCase


Constructor Summary
ALF947Test()
           
 
Method Summary
 void setUp()
           
protected  void tearDown()
           
 void testALF947_1()
          This moves a node under a different parent and then checks that a search does not return duplicates
 void testALF947_2()
          The same as testALF942_1 but the search is performed in a different txn
 void testALF947_3()
          This is duplicating what is happening in the bug report but without rules.
 
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

ALF947Test

public ALF947Test()
Method Detail

setUp

public 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

testALF947_1

public void testALF947_1()
                  throws java.lang.Exception
This moves a node under a different parent and then checks that a search does not return duplicates

Throws:
java.lang.Exception

testALF947_2

public void testALF947_2()
                  throws java.lang.Exception
The same as testALF942_1 but the search is performed in a different txn

Throws:
java.lang.Exception

testALF947_3

public void testALF947_3()
                  throws java.lang.Exception
This is duplicating what is happening in the bug report but without rules. It results in a rename of the copied node which subsequently results in a move node operation (with the parent staying the same). A search is performed in a different txn to mimic the bug report

Throws:
java.lang.Exception


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