IntelliJ Java IDE
The moose likes JSP and the fly likes Writing a web app to test drive each method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Writing a web app to test drive each method" Watch "Writing a web app to test drive each method" New topic
Author

Writing a web app to test drive each method

Ramprakash Ramamoorthy
Greenhorn

Joined: Jan 16, 2012
Posts: 3
Dear all,

I got an assignment in my university. I need to write a single web page, that lists all the classes in the particular web app. Selecting a class, the page should list all the functions in it. Selecting a function, the user should be able to feed the parameters and displayed the returned value as a string.

Now this is the problem statement, hope it is unambiguous. Can some one tell me how should I go about it? Like where do I start, what are the things that should be considered and so on. Thanks in advance.

--
Ramprakash R
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2329
That's quite an ambitious project. In order to accomplish what you described you would have to dig into the inner workings of the Java ClassLoader architecture and the Reflection API. That seems a bit out of the ordinary for a university project.

There are also quite likely methods that take parameters that you can't easily create via a web page - what should happen with those?

By the way, Java doesn't have functions - it has methods.
Ramprakash Ramamoorthy
Greenhorn

Joined: Jan 16, 2012
Posts: 3
Thanks Tim. Will have to dig on it, will keep it posted here.

Oh yeah methods. I am still sticking to PHP, sorry for that :)
 
 
subject: Writing a web app to test drive each method
 
Threads others viewed
Unit testing tools
init-param issues
MultiLable chart
how to repair the damaged server-cfg.xml
Display calender in Date of Birth field.
IntelliJ Java IDE