facebook

Scaffold creates test classes for controllers

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #353033 Reply

    dknutson
    Member

    I’m running thru the myEcipse tutorials and have run the CRUD scaffolding. When I do, myEclipse create 2 files – one for the controller (PartListController) and a second called PartsListControllerTest.

    I’m not sure of the purpose of the test class. Where can I find more information on this?

    #353055 Reply

    dknutson,

    Test classes created after the spring scaffolding are JUnit tests. You can perform a JUnit test by right clicking on the test class and select Run as > JUnit test.

    Hope this helps.

    #353059 Reply

    dknutson
    Member

    Ah. Am I correct in saying that when I run the scaffolding, it is creating the framework of the tests, but I have to create the actual tests?

    #353063 Reply

    support-tony
    Keymaster

    dknutson,

    Yes, that’s right. It provides the skeleton for tests and you fill in what you want to test.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Scaffold creates test classes for controllers

You must be logged in to post in the forum log in