org.kuali.rice.krms.test
Class RuleManagementNaturalLanguageUsageTest

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.RuleManagementNaturalLanguageUsageTest
All Implemented Interfaces:
MethodAware

public class RuleManagementNaturalLanguageUsageTest
extends RuleManagementBaseTest

RuleManagementNaturalLanguageUsageTest is to test the methods of ruleManagementServiceImpl relating toNaturalLanguageUsage Each test focuses on one of the methods.


Nested Class Summary
 
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, businessObjectService, CLASS_DISCRIMINATOR, contextRepository, 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
RuleManagementNaturalLanguageUsageTest()
           
 
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 testCompoundTranslateNaturalLanguageTreeForProposition()
          Test testCompoundTranslateNaturalLanguageTreeForProposition() This test focuses specifically on the RuleManagementServiceImpl .translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId, PropositionDefinition propositionDefinintion, String languageCode) method where the PropositionDefinition is a Compound proposition
 void testCreateNaturalLanguageUsage()
          Test testCreateNaturalLanguageUsage() This test focuses specifically on the RuleManagementServiceImpl .createNaturalLanguageUsage(NaturalLanguageUsage) method
 void testDeleteNaturalLanguageUsage()
          Test testDeleteNaturalLanguageUsage() This test focuses specifically on the RuleManagementServiceImpl .deleteNaturalLanguageUsage(String naturalLanguageUsageId) method
 void testEmptyTranslateNaturalLanguageTreeForProposition()
          Test testEmptyTranslateNaturalLanguageTreeForProposition() This test focuses specifically on the RuleManagementServiceImpl .translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId, PropositionDefinition propositionDefinintion, String languageCode) method where there is no NaturalLanguageTemplate associated with the PropositionDefinition and languageCode
 void testGetNaturalLanguageUsage()
          Test testGetNaturalLanguageUsage() This test focuses specifically on the RuleManagementServiceImpl .getNaturalLanguageUsage(String id) method
 void testGetNaturalLanguageUsageByNameAndNamespace()
          Test testGetNaturalLanguageUsageByNameAndNamespace() This test focuses specifically on the RuleManagementServiceImpl .getNaturalLanguageUsageByNameAndNamespace(String name, String namespace) method
 void testGetNaturalLanguageUsagesByNamespace()
          Test testGetNaturalLanguageUsagesByNamespace() This test focuses specifically on the RuleManagementServiceImpl .getNaturalLanguageUsagesByNamespace(String namespace) method
 void testNullTranslateNaturalLanguageTreeForProposition()
          Test testNullTranslateNaturalLanguageTreeForProposition() This test focuses specifically on the RuleManagementServiceImpl .translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId, PropositionDefinition propositionDefinintion, String languageCode) method where there is no NaturalLanguageTemplate
 void testTranslateNaturalLanguageForObject()
          Test testTranslateNaturalLanguageForObject() This test focuses specifically on the RuleManagementServiceImpl .translateNaturalLanguageForObject(String naturalLanguageUsageId, String typeId, String krmsObjectId, String languageCode) method
 void testTranslateNaturalLanguageForProposition()
          Test testTranslateNaturalLanguageForProposition() This test focuses specifically on the RuleManagementServiceImpl .translateNaturalLanguageForProposition(String naturalLanguageUsageId, PropositionDefinition proposition, String languageCode) method
 void testTranslateNaturalLanguageTreeForProposition()
          Test testTranslateNaturalLanguageTreeForProposition() This test focuses specifically on the RuleManagementServiceImpl .translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId, PropositionDefinition propositionDefinintion, String languageCode) method
 void testUpdateNaturalLanguageUsage()
          Test testUpdateNaturalLanguageUsage() This test focuses specifically on the RuleManagementServiceImpl .updateNaturalLanguageUsage(NaturalLanguageUsage) 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

RuleManagementNaturalLanguageUsageTest

public RuleManagementNaturalLanguageUsageTest()
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

testCreateNaturalLanguageUsage

public void testCreateNaturalLanguageUsage()
Test testCreateNaturalLanguageUsage() This test focuses specifically on the RuleManagementServiceImpl .createNaturalLanguageUsage(NaturalLanguageUsage) method


testGetNaturalLanguageUsage

public void testGetNaturalLanguageUsage()
Test testGetNaturalLanguageUsage() This test focuses specifically on the RuleManagementServiceImpl .getNaturalLanguageUsage(String id) method


testUpdateNaturalLanguageUsage

public void testUpdateNaturalLanguageUsage()
Test testUpdateNaturalLanguageUsage() This test focuses specifically on the RuleManagementServiceImpl .updateNaturalLanguageUsage(NaturalLanguageUsage) method


testDeleteNaturalLanguageUsage

public void testDeleteNaturalLanguageUsage()
Test testDeleteNaturalLanguageUsage() This test focuses specifically on the RuleManagementServiceImpl .deleteNaturalLanguageUsage(String naturalLanguageUsageId) method


testGetNaturalLanguageUsagesByNamespace

public void testGetNaturalLanguageUsagesByNamespace()
Test testGetNaturalLanguageUsagesByNamespace() This test focuses specifically on the RuleManagementServiceImpl .getNaturalLanguageUsagesByNamespace(String namespace) method


testGetNaturalLanguageUsageByNameAndNamespace

public void testGetNaturalLanguageUsageByNameAndNamespace()
Test testGetNaturalLanguageUsageByNameAndNamespace() This test focuses specifically on the RuleManagementServiceImpl .getNaturalLanguageUsageByNameAndNamespace(String name, String namespace) method


testTranslateNaturalLanguageForObject

public void testTranslateNaturalLanguageForObject()
Test testTranslateNaturalLanguageForObject() This test focuses specifically on the RuleManagementServiceImpl .translateNaturalLanguageForObject(String naturalLanguageUsageId, String typeId, String krmsObjectId, String languageCode) method


testTranslateNaturalLanguageForProposition

public void testTranslateNaturalLanguageForProposition()
Test testTranslateNaturalLanguageForProposition() This test focuses specifically on the RuleManagementServiceImpl .translateNaturalLanguageForProposition(String naturalLanguageUsageId, PropositionDefinition proposition, String languageCode) method


testTranslateNaturalLanguageTreeForProposition

public void testTranslateNaturalLanguageTreeForProposition()
Test testTranslateNaturalLanguageTreeForProposition() This test focuses specifically on the RuleManagementServiceImpl .translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId, PropositionDefinition propositionDefinintion, String languageCode) method


testCompoundTranslateNaturalLanguageTreeForProposition

public void testCompoundTranslateNaturalLanguageTreeForProposition()
Test testCompoundTranslateNaturalLanguageTreeForProposition() This test focuses specifically on the RuleManagementServiceImpl .translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId, PropositionDefinition propositionDefinintion, String languageCode) method where the PropositionDefinition is a Compound proposition


testNullTranslateNaturalLanguageTreeForProposition

public void testNullTranslateNaturalLanguageTreeForProposition()
Test testNullTranslateNaturalLanguageTreeForProposition() This test focuses specifically on the RuleManagementServiceImpl .translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId, PropositionDefinition propositionDefinintion, String languageCode) method where there is no NaturalLanguageTemplate


testEmptyTranslateNaturalLanguageTreeForProposition

public void testEmptyTranslateNaturalLanguageTreeForProposition()
Test testEmptyTranslateNaturalLanguageTreeForProposition() This test focuses specifically on the RuleManagementServiceImpl .translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId, PropositionDefinition propositionDefinintion, String languageCode) method where there is no NaturalLanguageTemplate associated with the PropositionDefinition and languageCode



Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.