canguru
Class CanguruTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--canguru.CanguruTest
All Implemented Interfaces:
junit.framework.Test

public class CanguruTest
extends junit.framework.TestCase

Unit Test para o Canguru

Version:
$Id: CanguruTest.java,v 1.10 2003/11/14 19:44:43 galmeida Exp $
See Also:
Canguru, TestCase

Field Summary
private  java.lang.Boolean _boolean
           
private  java.lang.Byte _byte
           
private  char _char
           
private  java.lang.Character _character
           
private  java.util.Date _date
           
private  java.lang.Double _double
           
private  java.lang.Float _float
           
private  int _int
           
private  java.lang.Integer _integer
           
private  java.lang.Long _long
           
private  boolean _pBoolean
           
private  byte _pByte
           
private  double _pDouble
           
private  float _pFloat
           
private  long _pLong
           
private  short _pShort
           
private  java.lang.Short _short
           
private  java.lang.String _string
           
private  java.lang.String[] _stringA
           
private  Canguru canguru
           
private  MixurucaEnhanced m0
           
private  MixurucaEnhanced m1
           
private  MixurucaEnhanced m2
           
private  MixurucaEnhanced m3
           
private  java.lang.StringBuffer stringBuffer
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
CanguruTest(java.lang.String arg0)
          Construtor do CanguruTest.
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testAddFilter()
          Testa adição de filtros para recuperação de dados.
 void testAddRemove()
          Testa adição e remoção de objetos da collection.
 void testFilter()
          Testa utilização de filtros para recuperação de dados.
 void testNotNull()
          Testa autilização de valores direferentes de null nos objetos guardados.
 void testNull()
          Testa a utilização de null nos objetos guardados.
 void testReferences()
          Testa a integridade das referências dos objetos salvos e recuperados.
 
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
 

Field Detail

_pFloat

private float _pFloat

_pLong

private long _pLong

_pDouble

private double _pDouble

_pByte

private byte _pByte

_char

private char _char

_int

private int _int

_pShort

private short _pShort

_pBoolean

private boolean _pBoolean

_stringA

private java.lang.String[] _stringA

canguru

private Canguru canguru

m0

private MixurucaEnhanced m0

m1

private MixurucaEnhanced m1

m2

private MixurucaEnhanced m2

m3

private MixurucaEnhanced m3

_boolean

private java.lang.Boolean _boolean

_byte

private java.lang.Byte _byte

_character

private java.lang.Character _character

_date

private java.util.Date _date

_double

private java.lang.Double _double

_float

private java.lang.Float _float

_integer

private java.lang.Integer _integer

_long

private java.lang.Long _long

_short

private java.lang.Short _short

_string

private java.lang.String _string

stringBuffer

private java.lang.StringBuffer stringBuffer
Constructor Detail

CanguruTest

public CanguruTest(java.lang.String arg0)
Construtor do CanguruTest.

Parameters:
arg0 -
Method Detail

main

public static void main(java.lang.String[] args)

setUp

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

testNull

public final void testNull()
                    throws IOException,
                           java.io.IOException,
                           java.lang.ClassNotFoundException,
                           java.sql.SQLException,
                           BeanManipulationException,
                           CanguruInitializationException
Testa a utilização de null nos objetos guardados.

Throws:
IOException
java.io.IOException
java.lang.ClassNotFoundException
java.sql.SQLException
BeanManipulationException
CanguruInitializationException

testNotNull

public final void testNotNull()
                       throws IOException,
                              java.io.IOException,
                              java.lang.ClassNotFoundException,
                              java.sql.SQLException,
                              BeanManipulationException,
                              CanguruInitializationException
Testa autilização de valores direferentes de null nos objetos guardados.

Throws:
IOException
java.io.IOException
java.lang.ClassNotFoundException
java.sql.SQLException
BeanManipulationException
CanguruInitializationException

tearDown

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

testAddRemove

public final void testAddRemove()
                         throws IOException,
                                java.io.IOException,
                                java.lang.ClassNotFoundException,
                                java.sql.SQLException,
                                BeanManipulationException
Testa adição e remoção de objetos da collection.

Throws:
IOException
java.io.IOException
java.lang.ClassNotFoundException
java.sql.SQLException
BeanManipulationException

testAddFilter

public final void testAddFilter()
                         throws AttributeDefinitionNotFoundException,
                                InvalidNameException,
                                InvalidAttributeException,
                                FilterException,
                                IOException,
                                java.io.IOException,
                                java.lang.ClassNotFoundException,
                                java.sql.SQLException,
                                BeanManipulationException
Testa adição de filtros para recuperação de dados.

Throws:
AttributeDefinitionNotFoundException
InvalidNameException
InvalidAttributeException
FilterException
IOException
java.io.IOException
java.lang.ClassNotFoundException
java.sql.SQLException
BeanManipulationException

testFilter

public final void testFilter()
                      throws java.lang.ClassNotFoundException,
                             java.sql.SQLException,
                             java.io.IOException,
                             IOException,
                             AttributeDefinitionNotFoundException,
                             InvalidNameException,
                             InvalidAttributeException,
                             FilterException
Testa utilização de filtros para recuperação de dados.

Throws:
java.lang.ClassNotFoundException
java.sql.SQLException
java.io.IOException
IOException
AttributeDefinitionNotFoundException
InvalidNameException
InvalidAttributeException
FilterException

testReferences

public final void testReferences()
                          throws IOException,
                                 java.io.IOException,
                                 java.lang.ClassNotFoundException,
                                 java.sql.SQLException,
                                 BeanManipulationException
Testa a integridade das referências dos objetos salvos e recuperados.

Throws:
IOException
java.io.IOException
java.lang.ClassNotFoundException
java.sql.SQLException
BeanManipulationException