Test classes and data files

We covered file naming conventions earlier, but to refresh the naming convention for test classes, it should be something like FunctionalAreaTest.java. The Test suffix tells the user that this is a test class and not a Java utility class.

Since we are using JSON as the data file format, each test class should have a corresponding data file minus the Test suffix; so in this case, FunctionalArea.json.

So, in the example test class we are building in this chapter, the class is called RockBandsTest.java and the data file is called RockBands.json. We will build onto that class as we define each section of it.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.202.4