Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 7790

Unit tests not linked to a class

$
0
0

Hello

 

I want to write a unit test for testing certain content in a database table. E.g.  test that the field SACHX in table T526 only contains the numbers 1 till 7.  I don't have any specific abap class with logic related to table T526.

Is there a way in Abap to write a test class in which I can write some tests to assert the above statement ?

 

I know I can do this with a work around : I create some class with an empty method, create a test class for this class and write my test logic inside a test method with the same name as my empty method.  This does not feel right though.

 

Any suggestions are welcome

 

Koen


Viewing all articles
Browse latest Browse all 7790

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>