org.kuali.rice.krad.service.impl
Class DictionaryValidationServiceImplTest

java.lang.Object
  extended by org.kuali.rice.test.BaseRiceTestCase
      extended by org.kuali.rice.test.RiceTestCase
          extended by org.kuali.rice.test.RiceInternalSuiteDataTestCase
              extended by org.kuali.rice.test.BaseModuleTestCase
                  extended by org.kuali.rice.test.BaselineTestCase
                      extended by org.kuali.test.KRADTestCase
                          extended by org.kuali.rice.krad.service.impl.DictionaryValidationServiceImplTest
All Implemented Interfaces:
MethodAware

public class DictionaryValidationServiceImplTest
extends KRADTestCase

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.test.BaselineTestCase
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
 
Field Summary
protected  DataObjectEntry addressEntry
           
(package private)  org.springframework.context.support.ClassPathXmlApplicationContext context
           
protected  AttributeDefinition countryDefinition
           
protected  CaseConstraint countryIsUSACaseConstraint
           
(package private)  DataDictionary dataDictionary
           
private  Address invalidDCUSAddress
           
private  Address noStateUSAddress
           
private  Address noZipNoCityUSAddress
           
protected  AttributeDefinition postalCodeDefinition
           
private  DictionaryValidationServiceImpl service
           
protected  AttributeDefinition stateDefinition
           
protected  AttributeDefinition street1Definition
           
protected  AttributeDefinition street2Definition
           
protected  MustOccurConstraint topLevelConstraint
           
private  Address validLondonAddress
           
private  Address validNonDCUSAddress
           
private  Address validUSAddress
           
 
Fields inherited from class org.kuali.rice.test.BaselineTestCase
dirty
 
Fields inherited from class org.kuali.rice.test.BaseModuleTestCase
LOG, moduleName
 
Fields inherited from class org.kuali.rice.test.RiceTestCase
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
 
Fields inherited from class org.kuali.rice.test.BaseRiceTestCase
log, method
 
Constructor Summary
DictionaryValidationServiceImplTest()
           
 
Method Summary
 void setUp()
           
 void testInvalidDCAddress()
           
 void testInvalidUSAddress()
           
 void testNoStateNoZipUSAddress()
           
 void testRequiredNestedAttribute()
           
 void testValidNonDCAddress()
           
 void testValidNonUSAddress()
           
 void testValidUSAddress()
           
 
Methods inherited from class org.kuali.test.KRADTestCase
getLoadApplicationLifecycle, getSuiteLifecycles, loadSuiteTestData
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles
 
Methods inherited from class org.kuali.rice.test.BaseModuleTestCase
getModuleName
 
Methods inherited from class org.kuali.rice.test.RiceInternalSuiteDataTestCase
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
 
Methods inherited from class org.kuali.rice.test.RiceTestCase
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
 
Methods inherited from class org.kuali.rice.test.BaseRiceTestCase
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

org.springframework.context.support.ClassPathXmlApplicationContext context

service

private DictionaryValidationServiceImpl service

dataDictionary

DataDictionary dataDictionary

street1Definition

protected AttributeDefinition street1Definition

street2Definition

protected AttributeDefinition street2Definition

stateDefinition

protected AttributeDefinition stateDefinition

postalCodeDefinition

protected AttributeDefinition postalCodeDefinition

countryDefinition

protected AttributeDefinition countryDefinition

addressEntry

protected DataObjectEntry addressEntry

countryIsUSACaseConstraint

protected CaseConstraint countryIsUSACaseConstraint

topLevelConstraint

protected MustOccurConstraint topLevelConstraint

validLondonAddress

private Address validLondonAddress

validUSAddress

private Address validUSAddress

noStateUSAddress

private Address noStateUSAddress

noZipNoCityUSAddress

private Address noZipNoCityUSAddress

validNonDCUSAddress

private Address validNonDCUSAddress

invalidDCUSAddress

private Address invalidDCUSAddress
Constructor Detail

DictionaryValidationServiceImplTest

public DictionaryValidationServiceImplTest()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class BaselineTestCase
Throws:
Exception

testValidNonUSAddress

public void testValidNonUSAddress()

testValidUSAddress

public void testValidUSAddress()

testInvalidUSAddress

public void testInvalidUSAddress()

testValidNonDCAddress

public void testValidNonDCAddress()

testInvalidDCAddress

public void testInvalidDCAddress()

testNoStateNoZipUSAddress

public void testNoStateNoZipUSAddress()

testRequiredNestedAttribute

public void testRequiredNestedAttribute()
                                 throws IOException
Throws:
IOException


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.