public class CustomerRuleTest extends MaintenanceRuleTestBase
KualiTestConstants.TestConstants
batchScheduleInitialized, 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, testDefaultExistenceCheck
addGeneratedFile, changeCurrentUser, clearAllCaches, clearBoCache, dumpMessageMapErrors, getTransactionManager, runBare, stopSpringContext
countTestCases, createResult, getName, run, run, runTest, setName, toString
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
public CustomerRuleTest()
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
TestCase.setUp()
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
TestCase.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.