org.alfresco.repo.domain.query
Class CannedQueryDAOTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.domain.query.CannedQueryDAOTest
All Implemented Interfaces:
junit.framework.Test

public class CannedQueryDAOTest
extends junit.framework.TestCase

Since:
3.2
See Also:
CannedQueryDAO

Nested Class Summary
static class CannedQueryDAOTest.TestOneParams
          Helper parameter class for testing
 
Constructor Summary
CannedQueryDAOTest()
           
 
Method Summary
 void setUp()
           
 void testExecute_BadBounds()
           
 void testExecute_CountAllMimetypes()
           
 void testExecute_CountMimetypeExact()
           
 void testExecute_CountMimetypeWildcard()
           
 void testExecute_CountNoResults()
          Ensures that no results returns 0 since SQL will return a null count.
 void testExecute_FailureRecovery()
          Force a failure and ensure that the connection is not tarnished
 void testExecute_ListMimetypes()
           
 void testExecute_ResultHandlerWithEarlyTermination()
           
 void testExecute_ResultHandlerWithError()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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

CannedQueryDAOTest

public CannedQueryDAOTest()
Method Detail

setUp

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

testExecute_FailureRecovery

public void testExecute_FailureRecovery()
                                 throws java.lang.Throwable
Force a failure and ensure that the connection is not tarnished

Throws:
java.lang.Throwable

testExecute_CountAllMimetypes

public void testExecute_CountAllMimetypes()
                                   throws java.lang.Throwable
Throws:
java.lang.Throwable

testExecute_CountNoResults

public void testExecute_CountNoResults()
                                throws java.lang.Throwable
Ensures that no results returns 0 since SQL will return a null count.

Throws:
java.lang.Throwable

testExecute_CountMimetypeExact

public void testExecute_CountMimetypeExact()
                                    throws java.lang.Throwable
Throws:
java.lang.Throwable

testExecute_CountMimetypeWildcard

public void testExecute_CountMimetypeWildcard()
                                       throws java.lang.Throwable
Throws:
java.lang.Throwable

testExecute_BadBounds

public void testExecute_BadBounds()
                           throws java.lang.Throwable
Throws:
java.lang.Throwable

testExecute_ListMimetypes

public void testExecute_ListMimetypes()
                               throws java.lang.Throwable
Throws:
java.lang.Throwable

testExecute_ResultHandlerWithError

public void testExecute_ResultHandlerWithError()
                                        throws java.lang.Throwable
Throws:
java.lang.Throwable

testExecute_ResultHandlerWithEarlyTermination

public void testExecute_ResultHandlerWithEarlyTermination()
                                                   throws java.lang.Throwable
Throws:
java.lang.Throwable


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