org.kuali.rice.krms.test
Class RuleManagementNaturalLanguageTemplateTest

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.rice.krms.test.KRMSTestCase
                          extended by org.kuali.rice.krms.test.RuleManagementBaseTest
                              extended by org.kuali.rice.krms.test.RuleManagementNaturalLanguageTemplateTest
All Implemented Interfaces:
MethodAware

public class RuleManagementNaturalLanguageTemplateTest
extends RuleManagementBaseTest

RuleManagementNaturalLanguageTemplateTest is to test the methods of ruleManagementServiceImpl relating to NaturalLanguageTemplates Each test focuses on one of the methods.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.krms.test.KRMSTestCase
KRMSTestCase.BootstrapTest
 
Nested classes/interfaces inherited from class org.kuali.rice.test.BaselineTestCase
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
 
Field Summary
 
Fields inherited from class org.kuali.rice.krms.test.RuleManagementBaseTest
actionBoService, agendaBoService, CLASS_DISCRIMINATOR, contextRepository, dataObjectService, functionBoService, krmsAttributeDefinitionService, krmsTypeRepository, ruleBoService, ruleManagementService, termBoService
 
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
RuleManagementNaturalLanguageTemplateTest()
           
 
Method Summary
 void setClassDiscriminator()
          Extending test classes can override setClassDiscriminator method and set a unique value for the class The override method should be called @before tests to ensure a unique discriminator for the class Test object naming is comprised of class, test and object uniqueness discriminators.
 void testCreateNaturalLanguageTemplate()
          Test testCreateNaturalLanguageTemplate() This test focuses specifically on the RuleManagementServiceImpl .createNaturalLanguageTemplate(NaturalLanguageTemplate) method
 void testCreateNaturalLanguageTemplateWithGeneratedId()
          Test testCreateNaturalLanguageTemplate() This test focuses specifically on the RuleManagementServiceImpl.
 void testDeleteNaturalLanguageTemplate()
          Test testDeleteNaturalLanguageTemplate() This test focuses specifically on the RuleManagementServiceImpl .deleteNaturalLanguageTemplate("naturalLanguageTemplateId") method
 void testFindNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId()
          Test testFindNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId() This test focuses specifically on the RuleManagementServiceImpl .findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId(String languageCode, String typeId, String naturalLanguageUsageId) method
 void testFindNaturalLanguageTemplatesByLanguageCode()
          Test testFindNaturalLanguageTemplatesByLanguageCode() This test focuses specifically on the RuleManagementServiceImpl .findNaturalLanguageTemplatesByLanguageCode("languageCode") method
 void testFindNaturalLanguageTemplatesByNaturalLanguageUsage()
          Test testFindNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId() This test focuses specifically on the RuleManagementServiceImpl .findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId(String languageCode, String typeId, String naturalLanguageUsageId) method
 void testFindNaturalLanguageTemplatesByTemplate()
          Test testFindNaturalLanguageTemplatesByTemplate() This test focuses specifically on the RuleManagementServiceImpl .findNaturalLanguageTemplatesByTemplate(String template) method
 void testFindNaturalLanguageTemplatesByType()
          Test testFindNaturalLanguageTemplatesByType() This test focuses specifically on the RuleManagementServiceImpl .findNaturalLanguageTemplatesByType(String typeId) method
 void testGetNaturalLanguageTemplate()
          Test testGetNaturalLanguageTemplate() This test focuses specifically on the RuleManagementServiceImpl .getNaturalLanguageTemplate("naturalLanguageTemplateId") method
 void testUpdateNaturalLanguageTemplate()
          Test testUpdateNaturalLanguageTemplate() This test focuses specifically on the RuleManagementServiceImpl .updateNaturalLanguageTemplate(NaturalLanguageTemplate) method
 
Methods inherited from class org.kuali.rice.krms.test.RuleManagementBaseTest
buildComplexAgenda, buildTestActionDefinition, buildTestActionDefinition, buildTestAgendaItemDefinition, buildTestContext, buildTestNaturalLanguageUsage, buildTestRuleDefinition, createComplexAgenda, createKrmsActionTypeDefinition, createKrmsTypeDefinition, createKrmsTypeDefinition, createReferenceObjectBinding, createTestAgenda, createTestAgenda, createTestCompoundProposition, createTestKrmsAttribute, createTestNaturalLanguageTemplate, createTestNaturalLanguageTemplate, createTestPropositionForRule, createTestPropositionForTranslation, createTestReferenceObjectBinding, createTestSimpleProposition, createTestTermSpecification, getPerTestTablesNotToClear, setup
 
Methods inherited from class org.kuali.rice.krms.test.KRMSTestCase
getLoadApplicationLifecycle, getModuleName, getPerTestTablesToClear, getSuiteLifecycles, loadSuiteTestData
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, getPerTestLifecycles, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles, setUp
 
Methods inherited from class org.kuali.rice.test.RiceInternalSuiteDataTestCase
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
 
Methods inherited from class org.kuali.rice.test.RiceTestCase
configureLogging, dumpMemory, 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, getTestMethod, resetLogLevels, setLogLevel, setName, setTestMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleManagementNaturalLanguageTemplateTest

public RuleManagementNaturalLanguageTemplateTest()
Method Detail

setClassDiscriminator

public void setClassDiscriminator()
Description copied from class: RuleManagementBaseTest
Extending test classes can override setClassDiscriminator method and set a unique value for the class The override method should be called @before tests to ensure a unique discriminator for the class Test object naming is comprised of class, test and object uniqueness discriminators. The Class Discriminator is set by this method A Test Discriminator may be used to set unique test names at the start of each test. ex: RuleManagementBaseTestObjectNames.setTestObjectNames(testDiscriminator) The Object Discriminators are Sequential (object0, object1 ...)

Overrides:
setClassDiscriminator in class RuleManagementBaseTest

testCreateNaturalLanguageTemplate

public void testCreateNaturalLanguageTemplate()
Test testCreateNaturalLanguageTemplate() This test focuses specifically on the RuleManagementServiceImpl .createNaturalLanguageTemplate(NaturalLanguageTemplate) method


testGetNaturalLanguageTemplate

public void testGetNaturalLanguageTemplate()
Test testGetNaturalLanguageTemplate() This test focuses specifically on the RuleManagementServiceImpl .getNaturalLanguageTemplate("naturalLanguageTemplateId") method


testUpdateNaturalLanguageTemplate

public void testUpdateNaturalLanguageTemplate()
Test testUpdateNaturalLanguageTemplate() This test focuses specifically on the RuleManagementServiceImpl .updateNaturalLanguageTemplate(NaturalLanguageTemplate) method


testDeleteNaturalLanguageTemplate

public void testDeleteNaturalLanguageTemplate()
Test testDeleteNaturalLanguageTemplate() This test focuses specifically on the RuleManagementServiceImpl .deleteNaturalLanguageTemplate("naturalLanguageTemplateId") method


testFindNaturalLanguageTemplatesByLanguageCode

public void testFindNaturalLanguageTemplatesByLanguageCode()
Test testFindNaturalLanguageTemplatesByLanguageCode() This test focuses specifically on the RuleManagementServiceImpl .findNaturalLanguageTemplatesByLanguageCode("languageCode") method


testFindNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId

public void testFindNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId()
Test testFindNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId() This test focuses specifically on the RuleManagementServiceImpl .findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId(String languageCode, String typeId, String naturalLanguageUsageId) method


testFindNaturalLanguageTemplatesByNaturalLanguageUsage

public void testFindNaturalLanguageTemplatesByNaturalLanguageUsage()
Test testFindNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId() This test focuses specifically on the RuleManagementServiceImpl .findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId(String languageCode, String typeId, String naturalLanguageUsageId) method


testFindNaturalLanguageTemplatesByType

public void testFindNaturalLanguageTemplatesByType()
Test testFindNaturalLanguageTemplatesByType() This test focuses specifically on the RuleManagementServiceImpl .findNaturalLanguageTemplatesByType(String typeId) method


testFindNaturalLanguageTemplatesByTemplate

public void testFindNaturalLanguageTemplatesByTemplate()
Test testFindNaturalLanguageTemplatesByTemplate() This test focuses specifically on the RuleManagementServiceImpl .findNaturalLanguageTemplatesByTemplate(String template) method


testCreateNaturalLanguageTemplateWithGeneratedId

public void testCreateNaturalLanguageTemplateWithGeneratedId()
Test testCreateNaturalLanguageTemplate() This test focuses specifically on the RuleManagementServiceImpl. createNaturalLanguageTemplate(NaturalLanguageTemplate) method, but creates the language template and associated attributes using a generated ID



Copyright © 2005–2014 The Kuali Foundation. All rights reserved.