methods(matlab.unittest.TestCase) fails with Abstract class error in Matlab 2015b
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
rothTransform
am 7 Okt. 2016
Kommentiert: rothTransform
am 7 Okt. 2016
It states you can call " methods(matlab.unittest.TestCase)" to get a list of the different qualification methods.
This returns the following error in Matalb 2015b: " Abstract classes cannot be instantiated. Class 'matlab.unittest.TestCase' is declared as Abstract."
The call operates as described in the webinar in Matlab 2014a. In looking at the change log for Matlab ( Change Log Matlab 2014 to 2015 ) I can't see any change related to this change in behavior.
Please advise.
Thanks!
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 7 Okt. 2016
See the first row of the "Functionality being removed or changed" table in the Release Notes for release R2015b. Instead of what's given in the webinar, use:
methods matlab.unittest.TestCase
or:
methods(matlab.unittest.TestCase.forInteractiveUse)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Testing Frameworks finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!