ossj.common.tck.tests
Class TestManagedEntityValueSingle

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by ossj.common.tck.JVTTestBase
              extended by ossj.common.tck.tests.TestMev
                  extended by ossj.common.tck.tests.TestManagedEntityValueSingle
All Implemented Interfaces:
junit.framework.Test

public class TestManagedEntityValueSingle
extends TestMev

Test case for ManagedEntityValues

Version:

Field Summary
 
Fields inherited from class ossj.common.tck.JVTTestBase
debug, done, EVENT_TIMEOUT, howmany_key, howmany_value, JMS_FACTORY, JNDI_FACT_CLASS_NAME, JNDI_URL, jvtSessionList, LOG_FILE, namingContext, QUOTECHAR, result, return_failed_only, runonce, TESTFILES_HOME, TOPIC_NAME, util
 
Method Summary
protected  void doGeneric(String testName)
          genericTest
protected  void setUp()
          sets up the TestCase
static junit.framework.TestSuite suite()
           
 void test_ClassNameAndTypeAndValueKeyPair()
          Test Value and Value type and key pattern test if VALUE_TYPE field is declared test it VALUE_TYPE field is public final static String test if the declared type exist (call forName) test if the class is of the declared type (decalreType.isAssignableFrom) test if the VALUE_TYPE ends with "Value" test if the VALUE_TYPE corresponding interface exists
 void test_GetAttributeNames_ContainsKEY()
          setManagedEntityKey
 void test_GetAttributeNames_NamesStartWithLowerCase()
          tests that attributes names have length > 0 and start with lowercase letter
 void test_GetOptionalAttributeNames_InAllAttributes()
          tests that all supported optional attibutes are also listed in all attributes and attributes names have length > 0 and start with lowercase letter
 void test_GetSettableAttributeNames_NotContainsKEY()
           
 void test_GetSettableAttributeNames_SubsetOfGetAttributeNames()
          tests that getSettableAttributesNames is a subset of getAttributeNames
 void test_Negative_GetAttributeValue_AttributeNameIllegalValue()
          DOMAINTEST tests failure of getAttributeValue(a) for a not in getAttributeValues();
 void test_Negative_GetAttributeValue_AttributeNameNullValue()
          DOMAINTEST tests failure of getAttributeValue(null)
 void test_Negative_IsPopulated_AttributeNameIllegalValue()
          DOMAINTEST tests failure of isPopulated(a) for String a not in getAttributeNames()
 void test_Negative_IsPopulated_AttributeNameNullValue()
          DOMAINTEST tests failure of isPopulated(null)
 void test_Negative_SetAttributeValue_AttributeNameIllegalValue()
          DOMAINTEST tests failure of setAttributeValue(a) for a not in getAttributeNames()
 void test_Negative_SetAttributeValue_AttributeNameNullValue()
          DOMAINTEST tests failure of setAttributeValue(a) for null
 void test_Negative_SetAttributeValue_IllegalObject()
          DOMAINTEST tests failure of setAttributeValue(a) for an illegal object()
 void test_Negative_SetAttributeValue_PrimitiveNullValue()
          DOCUMENT ME!
 void test_Negative_UnpopulateAttribute_AttributeNameIllegalValue()
          DOMAINTEST tests failure of unpopulatedAttribute(a) for a not in getAttributeNames
 void test_Negative_UnpopulateAttribute_AttributeNameNullValue()
          DOMAINTEST tests failure of unpopulatedAttribute(null)
 void test_Positive_IsPopulated_AttributeNameAllDomainValues()
          DOMAINTEST tests isPopulated for all attributes in getAttributeNames()
 void test_Positive_ManagedEntityKey_IllegalKey()
           
 void test_Positive_SetAttributeValue_DomainValue()
           
 void test_Positive_SetAttributeValue_PrimitiveMINMAXValues()
          tests setAttributeValue(min/max) for primitive attributes that are not enums
 void test_Positive_SetAttributeValueKEY_IllegalKey()
          tests a illegal key
 void test_Positive_SetManagedEntityKey_DomainValue()
          tests a domain value
 void test_Positive_SetManagedEntityKey_IllegalKey()
          tests a illegal key
 void test_Positive_testCloneEqualsImplementation()
          Test clone and equals method implementations Expected Result: a = b.clone() a.equals(a) == true b.equals(b) == true a.equals(b) == true b.equals(a) == true
 void test_Positive_UnpopulateAttribute_AttributeNameAllDomainValues()
          DOMAINTEST tests succesful invokation of unpopulateAttribute(a) for all a in getAttributeNames()
 void test_SetAttributeValue_GetPopulatedAttributesNamesContainsAttributeName()
          tests that setAttributeValue(a) => a in getPopulatedAttributes()
 void test_SetAttributeValue_IsPopulated()
          tests that setAttributeValue(a) => isPopulated(a)
 void test_SetManagedEntityKey_GetPopulatedAttributeNamesContainsKEY()
          tests that succesful setManagedEntityKey(val) implies KEY in getPopulatedAttributeNames()
 void test_SetManagedEntityKey_IsPopulatedKEY()
          tests that succesful setManagedEntityKey(val) implies isPopulated(KEY)
 void test_UnpopulateAllAttributes_GetAttributeValueFailsForAll()
          tests that unpopulateAlAttributes implies failure of getAttributeValue(a) for all a in getAttributeNames
 void test_UnpopulateAllAttributes_GetPopulatedAttributesNamesIsEmpty()
          tests that unpopulateAlAttributes implies getPopulatedAttributesNamesIsEmpty() is empty
 void test_UnpopulateAllAttributes_IsPopulatedFalseForAll()
          tests that unpopulateAlAttributes implies !isPopulated(a) for all a in getAttributeNames()
 
Methods inherited from class ossj.common.tck.tests.TestMev
test_ClassNameAndTypeAndValueKeyPair, test_GetAttributeNames_ContainsKEY, test_GetAttributeNames_NamesStartWithLowerCase, test_GetOptionalAttributeNames_InAllAttributes, test_GetSettableAttributeNames_NotContainsKEY, test_GetSettableAttributeNames_SubsetOfGetAttributeNames, test_Negative_GetAttributeValue_AttributeNameIllegalValue, test_Negative_GetAttributeValue_AttributeNameNullValue, test_Negative_IsPopulated_AttributeNameIllegalValue, test_Negative_IsPopulated_AttributeNameNullValue, test_Negative_SetAttributeValue_AttributeNameIllegalValue, test_Negative_SetAttributeValue_AttributeNameNullValue, test_Negative_SetAttributeValue_IllegalObject, test_Negative_SetAttributeValue_PrimitiveNullValue, test_Negative_UnpopulateAttribute_AttributeNameIllegalValue, test_Negative_UnpopulateAttribute_AttributeNameNullValue, test_Positive_IsPopulated_AttributeNameAllDomainValues, test_Positive_ManagedEntityKey_IllegalKey, test_Positive_SetAttributeValue_DomainValue, test_Positive_SetAttributeValue_PrimitiveMINMAXValues, test_Positive_SetAttributeValueKEY_IllegalKey, test_Positive_SetManagedEntityKey_DomainValue, test_Positive_SetManagedEntityKey_IllegalKey, test_Positive_testCloneEqualsImplementation, test_Positive_testCloneEqualsImplementation, test_Positive_UnpopulateAttribute_AttributeNameAllDomainValues, test_Query_Type, test_SetAttributeValue_GetPopulatedAttributesNamesContainsAttributeName, test_SetAttributeValue_IsPopulated, test_SetManagedEntityKey_GetPopulatedAttributeNamesContainsKEY, test_SetManagedEntityKey_IsPopulatedKEY, test_UnpopulateAllAttributes_GetAttributeValueFailsForAll, test_UnpopulateAllAttributes_GetPopulatedAttributesNamesIsEmpty, test_UnpopulateAllAttributes_IsPopulatedFalseForAll, test_upv_Type
 
Methods inherited from class ossj.common.tck.JVTTestBase
assertTrue, assertTrue, assertTrueMsg, fail, fail, getEnvironment, getInstanceOf, init, log, log, run, run
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, 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, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setUp

protected void setUp()
              throws Exception
sets up the TestCase

Overrides:
setUp in class TestMev
Throws:
Exception

suite

public static junit.framework.TestSuite suite()
                                       throws Exception
Returns:
All suites of this class
Throws:
Exception

doGeneric

protected void doGeneric(String testName)
                  throws Exception
genericTest

Throws:
Exception

test_ClassNameAndTypeAndValueKeyPair

public void test_ClassNameAndTypeAndValueKeyPair()
                                          throws Exception
Test Value and Value type and key pattern test if VALUE_TYPE field is declared test it VALUE_TYPE field is public final static String test if the declared type exist (call forName) test if the class is of the declared type (decalreType.isAssignableFrom) test if the VALUE_TYPE ends with "Value" test if the VALUE_TYPE corresponding interface exists

Throws:
Exception

test_GetAttributeNames_NamesStartWithLowerCase

public void test_GetAttributeNames_NamesStartWithLowerCase()
                                                    throws Exception
tests that attributes names have length > 0 and start with lowercase letter

Throws:
Exception

test_GetOptionalAttributeNames_InAllAttributes

public void test_GetOptionalAttributeNames_InAllAttributes()
                                                    throws Exception
tests that all supported optional attibutes are also listed in all attributes and attributes names have length > 0 and start with lowercase letter

Throws:
Exception

test_Positive_IsPopulated_AttributeNameAllDomainValues

public void test_Positive_IsPopulated_AttributeNameAllDomainValues()
                                                            throws Exception
DOMAINTEST tests isPopulated for all attributes in getAttributeNames()

Throws:
Exception

test_Negative_IsPopulated_AttributeNameNullValue

public void test_Negative_IsPopulated_AttributeNameNullValue()
                                                      throws Exception
DOMAINTEST tests failure of isPopulated(null)

Throws:
Exception

test_Negative_IsPopulated_AttributeNameIllegalValue

public void test_Negative_IsPopulated_AttributeNameIllegalValue()
                                                         throws Exception
DOMAINTEST tests failure of isPopulated(a) for String a not in getAttributeNames()

Throws:
Exception

test_GetSettableAttributeNames_SubsetOfGetAttributeNames

public void test_GetSettableAttributeNames_SubsetOfGetAttributeNames()
                                                              throws Exception
tests that getSettableAttributesNames is a subset of getAttributeNames

Throws:
Exception

test_Positive_UnpopulateAttribute_AttributeNameAllDomainValues

public void test_Positive_UnpopulateAttribute_AttributeNameAllDomainValues()
                                                                    throws Exception
DOMAINTEST tests succesful invokation of unpopulateAttribute(a) for all a in getAttributeNames()

Throws:
Exception

test_Negative_UnpopulateAttribute_AttributeNameNullValue

public void test_Negative_UnpopulateAttribute_AttributeNameNullValue()
                                                              throws Exception
DOMAINTEST tests failure of unpopulatedAttribute(null)

Throws:
Exception

test_Negative_UnpopulateAttribute_AttributeNameIllegalValue

public void test_Negative_UnpopulateAttribute_AttributeNameIllegalValue()
                                                                 throws Exception
DOMAINTEST tests failure of unpopulatedAttribute(a) for a not in getAttributeNames

Throws:
Exception

test_UnpopulateAllAttributes_IsPopulatedFalseForAll

public void test_UnpopulateAllAttributes_IsPopulatedFalseForAll()
                                                         throws Exception
tests that unpopulateAlAttributes implies !isPopulated(a) for all a in getAttributeNames()

Throws:
Exception

test_UnpopulateAllAttributes_GetPopulatedAttributesNamesIsEmpty

public void test_UnpopulateAllAttributes_GetPopulatedAttributesNamesIsEmpty()
                                                                     throws Exception
tests that unpopulateAlAttributes implies getPopulatedAttributesNamesIsEmpty() is empty

Throws:
Exception

test_UnpopulateAllAttributes_GetAttributeValueFailsForAll

public void test_UnpopulateAllAttributes_GetAttributeValueFailsForAll()
                                                               throws Exception
tests that unpopulateAlAttributes implies failure of getAttributeValue(a) for all a in getAttributeNames

Throws:
Exception

test_Negative_SetAttributeValue_AttributeNameNullValue

public void test_Negative_SetAttributeValue_AttributeNameNullValue()
                                                            throws Exception
DOMAINTEST tests failure of setAttributeValue(a) for null

Throws:
Exception

test_Negative_SetAttributeValue_AttributeNameIllegalValue

public void test_Negative_SetAttributeValue_AttributeNameIllegalValue()
                                                               throws Exception
DOMAINTEST tests failure of setAttributeValue(a) for a not in getAttributeNames()

Throws:
Exception

test_Negative_GetAttributeValue_AttributeNameNullValue

public void test_Negative_GetAttributeValue_AttributeNameNullValue()
                                                            throws Exception
DOMAINTEST tests failure of getAttributeValue(null)

Throws:
Exception

test_Negative_GetAttributeValue_AttributeNameIllegalValue

public void test_Negative_GetAttributeValue_AttributeNameIllegalValue()
                                                               throws Exception
DOMAINTEST tests failure of getAttributeValue(a) for a not in getAttributeValues();

Throws:
Exception

test_Positive_SetManagedEntityKey_DomainValue

public void test_Positive_SetManagedEntityKey_DomainValue()
                                                   throws Exception
tests a domain value

Throws:
Exception

test_Positive_SetManagedEntityKey_IllegalKey

public void test_Positive_SetManagedEntityKey_IllegalKey()
                                                  throws Exception
tests a illegal key

Throws:
Exception

test_Positive_SetAttributeValueKEY_IllegalKey

public void test_Positive_SetAttributeValueKEY_IllegalKey()
                                                   throws Exception
tests a illegal key

Throws:
Exception

test_SetManagedEntityKey_GetPopulatedAttributeNamesContainsKEY

public void test_SetManagedEntityKey_GetPopulatedAttributeNamesContainsKEY()
                                                                    throws Exception
tests that succesful setManagedEntityKey(val) implies KEY in getPopulatedAttributeNames()

Throws:
Exception

test_SetManagedEntityKey_IsPopulatedKEY

public void test_SetManagedEntityKey_IsPopulatedKEY()
                                             throws Exception
tests that succesful setManagedEntityKey(val) implies isPopulated(KEY)

Throws:
Exception

test_GetAttributeNames_ContainsKEY

public void test_GetAttributeNames_ContainsKEY()
                                        throws Exception
setManagedEntityKey

Throws:
Exception

test_GetSettableAttributeNames_NotContainsKEY

public void test_GetSettableAttributeNames_NotContainsKEY()
                                                   throws Exception
Throws:
Exception

test_Positive_ManagedEntityKey_IllegalKey

public void test_Positive_ManagedEntityKey_IllegalKey()
                                               throws Exception
Throws:
Exception

test_Positive_SetAttributeValue_PrimitiveMINMAXValues

public void test_Positive_SetAttributeValue_PrimitiveMINMAXValues()
                                                           throws Exception
tests setAttributeValue(min/max) for primitive attributes that are not enums

Throws:
Exception

test_Negative_SetAttributeValue_PrimitiveNullValue

public void test_Negative_SetAttributeValue_PrimitiveNullValue()
                                                        throws Exception
DOCUMENT ME!

Throws:
Exception - DOCUMENT ME!

test_Positive_SetAttributeValue_DomainValue

public void test_Positive_SetAttributeValue_DomainValue()
                                                 throws Exception
Throws:
Exception

test_SetAttributeValue_GetPopulatedAttributesNamesContainsAttributeName

public void test_SetAttributeValue_GetPopulatedAttributesNamesContainsAttributeName()
                                                                             throws Exception
tests that setAttributeValue(a) => a in getPopulatedAttributes()

Throws:
Exception

test_SetAttributeValue_IsPopulated

public void test_SetAttributeValue_IsPopulated()
                                        throws Exception
tests that setAttributeValue(a) => isPopulated(a)

Throws:
Exception

test_Negative_SetAttributeValue_IllegalObject

public void test_Negative_SetAttributeValue_IllegalObject()
                                                   throws Exception
DOMAINTEST tests failure of setAttributeValue(a) for an illegal object()

Throws:
Exception

test_Positive_testCloneEqualsImplementation

public void test_Positive_testCloneEqualsImplementation()
                                                 throws Exception
Test clone and equals method implementations Expected Result: a = b.clone() a.equals(a) == true b.equals(b) == true a.equals(b) == true b.equals(a) == true

Throws:
Exception


Copyright 2002-2006 The Members of the OSS through Java(TM) Initiative. All rights reserved. Use is subject to license terms.