org.kuali.rice.krad.util
Class LegacyDetectorTest

java.lang.Object
  extended by org.kuali.rice.krad.util.LegacyDetectorTest

public class LegacyDetectorTest
extends Object

Tests LegacyDetectionService


Constructor Summary
LegacyDetectorTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testBeginEndLegacyContext()
           
 void testBeginLegacyContext_LegacyFrameworkDisabled()
           
 void testDataObjectIsLegacyWhenEnabledAndLoaded()
           
 void testDataObjectNotLegacyWhenDisabled()
           
 void testDataObjectNotLegacyWhenNotLoaded()
           
 void testEndLegacyContext_NoContext()
           
 void testIllegallyNestedLegacyContext()
           
 void testIsLegacyManaged_ojbLoaded()
          Verifies that isLegacyManaged reports that the object is legacy managed if it is mapped in OJB.
 void testIsLegacyManaged_withBusinessObjectEntry()
          Verifies that isLegacyManaged reports that the object is legacy managed if it has a BusinessObjectEntry and nothing else.
 void testIsOjbLoadedClass_NoOjbOnClasspath()
          Ensures false is returned form isOjbLoadedClass if OJB is not on the classpath.
 void testIsOjbLoadedClass()
           
 void testKnsDisabledByConfig()
           
 void testKnsDisabledByDefault()
           
 void testKnsEnabledByConfig()
           
 void testLegacyDataFrameworkDisabledByConfig()
           
 void testLegacyDataFrameworkDisabledByDefault()
           
 void testLegacyDataFrameworkDisabledByKnsByDefault()
           
 void testLegacyDataFrameworkEnabledByConfig()
           
 void testLegacyDataFrameworkEnabledByKnsByDefault()
           
 void testNestedLegacyContext()
           
 void testUseLegacy_InContext()
           
 void testUseLegacy_LegacyFrameworkDisabled()
           
 void testUseLegacyForObject_PassingAClassIsBad()
          Verifies that if you pass an instance of java.lang.Class to useLegacyForObject, that it throws an IllegalArgumentException since you should use the useLegacy method for that
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyDetectorTest

public LegacyDetectorTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

testKnsDisabledByDefault

public void testKnsDisabledByDefault()

testKnsEnabledByConfig

public void testKnsEnabledByConfig()

testKnsDisabledByConfig

public void testKnsDisabledByConfig()

testLegacyDataFrameworkDisabledByDefault

public void testLegacyDataFrameworkDisabledByDefault()

testLegacyDataFrameworkEnabledByKnsByDefault

public void testLegacyDataFrameworkEnabledByKnsByDefault()

testLegacyDataFrameworkDisabledByKnsByDefault

public void testLegacyDataFrameworkDisabledByKnsByDefault()

testLegacyDataFrameworkEnabledByConfig

public void testLegacyDataFrameworkEnabledByConfig()

testLegacyDataFrameworkDisabledByConfig

public void testLegacyDataFrameworkDisabledByConfig()

testDataObjectNotLegacyWhenDisabled

public void testDataObjectNotLegacyWhenDisabled()

testDataObjectNotLegacyWhenNotLoaded

public void testDataObjectNotLegacyWhenNotLoaded()

testDataObjectIsLegacyWhenEnabledAndLoaded

public void testDataObjectIsLegacyWhenEnabledAndLoaded()

testUseLegacy_InContext

public void testUseLegacy_InContext()

testUseLegacy_LegacyFrameworkDisabled

public void testUseLegacy_LegacyFrameworkDisabled()

testUseLegacyForObject_PassingAClassIsBad

public void testUseLegacyForObject_PassingAClassIsBad()
Verifies that if you pass an instance of java.lang.Class to useLegacyForObject, that it throws an IllegalArgumentException since you should use the useLegacy method for that


testBeginLegacyContext_LegacyFrameworkDisabled

public void testBeginLegacyContext_LegacyFrameworkDisabled()

testEndLegacyContext_NoContext

public void testEndLegacyContext_NoContext()

testBeginEndLegacyContext

public void testBeginEndLegacyContext()

testNestedLegacyContext

public void testNestedLegacyContext()

testIllegallyNestedLegacyContext

public void testIllegallyNestedLegacyContext()

testIsOjbLoadedClass

public void testIsOjbLoadedClass()

testIsLegacyManaged_withBusinessObjectEntry

public void testIsLegacyManaged_withBusinessObjectEntry()
Verifies that isLegacyManaged reports that the object is legacy managed if it has a BusinessObjectEntry and nothing else.


testIsLegacyManaged_ojbLoaded

public void testIsLegacyManaged_ojbLoaded()
Verifies that isLegacyManaged reports that the object is legacy managed if it is mapped in OJB.


testIsOjbLoadedClass_NoOjbOnClasspath

public void testIsOjbLoadedClass_NoOjbOnClasspath()
                                           throws Exception
Ensures false is returned form isOjbLoadedClass if OJB is not on the classpath.

Throws:
Exception


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