com.atlassian.bonnie
Class TestLuceneConnection

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.atlassian.bonnie.TestLuceneConnection
All Implemented Interfaces:
junit.framework.Test

public class TestLuceneConnection
extends junit.framework.TestCase


Constructor Summary
TestLuceneConnection()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testCustomConfiguration()
          Test that Bonnie does its weird stuff with the int flags that are passed to withWriter(Action, int).
 void testDefaultConfiguration()
          Test that Bonnie does its weird stuff with the int flags that are passed to withWriter(Action, int).
 void testMultiThreaded()
           
 void testSearch()
          NOTE: this test requires the use of a FSDirectory and multifile index format to test that close is properly being called.
 void testSetReindexing()
           
 void testUnlockIfNeeded()
           
 
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
 

Constructor Detail

TestLuceneConnection

public TestLuceneConnection()
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

testSetReindexing

public void testSetReindexing()
                       throws java.io.IOException
Throws:
java.io.IOException

testUnlockIfNeeded

public void testUnlockIfNeeded()
                        throws java.io.IOException
Throws:
java.io.IOException

testSearch

public void testSearch()
                throws java.io.IOException
NOTE: this test requires the use of a FSDirectory and multifile index format to test that close is properly being called. Use of a RAMDirectory or compound index file format cause this test to fail.

Throws:
java.io.IOException

testMultiThreaded

public void testMultiThreaded()
                       throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

testDefaultConfiguration

public void testDefaultConfiguration()
                              throws java.lang.Exception
Test that Bonnie does its weird stuff with the int flags that are passed to withWriter(Action, int). Modify this test to match the required defaults.

Throws:
java.lang.Exception

testCustomConfiguration

public void testCustomConfiguration()
                             throws java.lang.Exception
Test that Bonnie does its weird stuff with the int flags that are passed to withWriter(Action, int). Modify this test to match the required defaults.

Throws:
java.lang.Exception


Copyright © 2006-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.