public class CustomerRuleTest extends MaintenanceRuleTestBase
KualiTestConstants.TestConstantsbatchScheduleInitialized, configurationFailure, generatedFiles, log4jConfigured, springContextInitialized, transactionStatus, userSession, userSessionUsername| Constructor and Description |
|---|
CustomerRuleTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testCheckAddresses_HasMore_False()
This method checks if checkAddresses returns false when customer has more than one primary address.
|
void |
testCheckAddresses_HasNone_False()
This method checks if checkAddresses returns false when customer has no primary address.
|
void |
testCheckAddresses_True()
This method checks if checkAddresses returns true when customer has only one primary address.
|
void |
testCheckAddressIsValid_CountryNonUS_False()
This method checks that checkAddressIsValid returns false when country code is not US and InternationalProvinceName and InternationalMailCode are not set.
|
void |
testCheckAddressIsValid_CountryUS_False()
This method if checkAddressIsValid returns false when country code is US and state code and zip code are empty
|
void |
testCheckAddressIsValid_CountryUS_True()
This method if checkAddressIsValid returns true when country code is US and state code and zip code are set.
|
void |
testCheckCustomerHasAddress_False()
This method checks if checkCustomerHasAddress returns false when customer does not have an address.
|
void |
testCheckCustomerHasAddress_True()
This method checks if checkCustomerHasAddress returns true when customer has an address.
|
assertErrorCount, assertFieldErrorDoesNotExist, assertFieldErrorExistence, assertFieldErrorExists, assertGlobalErrorExists, doesFieldErrorExist, newMaintDoc, newMaintDoc, setupMaintDocRule, setupMaintDocRule, setupMaintDocRule, testDefaultExistenceCheckaddGeneratedFile, changeCurrentUser, clearAllCaches, clearBoCache, dumpMessageMapErrors, getTransactionManager, runBare, stopSpringContextcountTestCases, createResult, getName, run, run, runTest, setName, toStringassertEquals, 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, formatpublic CustomerRuleTest()
protected void setUp() throws Exception
setUp in class junit.framework.TestCaseExceptionTestCase.setUp()protected void tearDown() throws Exception
tearDown in class junit.framework.TestCaseExceptionTestCase.tearDown()public void testCheckCustomerHasAddress_True()
public void testCheckCustomerHasAddress_False()
public void testCheckAddressIsValid_CountryUS_True()
public void testCheckAddressIsValid_CountryUS_False()
public void testCheckAddressIsValid_CountryNonUS_False()
public void testCheckAddresses_True()
public void testCheckAddresses_HasMore_False()
public void testCheckAddresses_HasNone_False()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.