::xox::test
Class TestReload

Heritage:
::xotcl::Object
  |
  +--::xox::Node
        |
        +--::xounit::Test
              |
              +--::xounit::Assert
                    |
                    +--::xounit::TestCase
Tested Class:
::xox::Reload

Class TestReload
superclass ::xounit::TestCase,

Variables
NameDefault ValueClassComment
currentTestMethod    ::xounit::TestCase
 name of the currently running test method.
nodeName    ::xox::Node
 
result    ::xounit::TestCase
 the result for the current run.
 
Methods
NameComment
testRecreateClass {}  
testReloadClass {}  
testReloadObject {}  
testReloadReload {}  
testReloadTestReload {}  
   
Methods from ::xotcl::Object
#, ., ?, ?code, ?methods, ?object, abstract, copy, coverageFilter, defaultmethod, extractConfigureArg, filterappend, garbageCollect, get#, getClean#, hasclass, init, methodTag, mixinappend, move, profileFilter, self, setParameterDefaults, shell, tclcmd, traceFilter,
 
Instproc Detail

testRecreateClass

Description:
 
Code:
  ::xox::test::TestReload instproc testRecreateClass {}  {
   

        Class ::A
        set a [ ::A new ]
        Class ::A

        my assertEquals [ $a info class ] ::A
    
}

testReloadClass

Description:
 
Code:
  ::xox::test::TestReload instproc testReloadClass {}  {
   

        Class ::C
        set c [ ::C new ]
        set o [ Object new ]

        package forget xox::Class
        package require xox::Class

        my assertEquals [ $o info class ] ::xotcl::Object
        my assertEquals [ $c info class ] ::C

        my testRecreateClass
    
}

testReloadObject

Description:
 
Code:
  ::xox::test::TestReload instproc testReloadObject {}  {
   

        Class ::B
        set b [ ::B new ]

        set o [ Object new ]

        package forget xox::Object
        package require xox::Object

        my assertEquals [ $o info class ] ::xotcl::Object
        my assertEquals [ $b info class ] ::B

        my testRecreateClass
    
}

testReloadReload

Description:
 
Code:
  ::xox::test::TestReload instproc testReloadReload {}  {
   

        Class ::D
        set d [ ::D new ]
        set o [ Object new ]

        package forget xox::Reload
        package require xox::Reload

        my assertEquals [ $o info class ] ::xotcl::Object
        my assertEquals [ $d info class ] ::D

        my testRecreateClass
    
}

testReloadTestReload

Description:
 
Code:
  ::xox::test::TestReload instproc testReloadTestReload {}  {
   

        Class ::E
        set e [ ::E new ]
        set o [ Object new ]

        package forget xox::test::TestReload
        package require xox::test::TestReload

        my assertEquals [ $o info class ] ::xotcl::Object
        my assertEquals [ $e info class ] ::E

        my testRecreateClass
    
}