Junit

Junit

Hi.. here is my code :

**Public static void setConnectionDetails(ConnectionDetails connectionDetails) {

      UniversalData.connectionDetails = connectionDetails;

 }**

if i want to make a test case using Junit...how can i make it??? main query is about passing parameter..what parameter i should pass when i call method setConnectionDetails(???????) ?

Thanks & regards Ankit Chauhan

View Answers

February 9, 2012 at 11:23 AM

Have a look at the following link:

Junit Testing


February 9, 2012 at 11:33 AM

I already looked at the certains types of link. I need a solution regarding complex parameters as i mentioned above in my code.

thanks :)

Ads









Related Tutorials/Questions & Answers:
junit
junit  i want to learn junit for user guidence for easy format to understnad to study. please provide that one
junit
junit  Explain about junit?   Junit is new framework designed for Java to perform unit testing. It is an Open source framework. Junit... ). It helps the developers in designing and writing test cases. Junit also have
Advertisements
Junit
Junit  hii.... how to create junit of methods having parameters passed in it..... for example : plz dont refer any link. Just help me by junit of this code. public boolean validateUser(final Display display) { int
Junit
) { UniversalData.connectionDetails = connectionDetails; }** if i want to make a test case using Junit...; regards Ankit Chauhan   Have a look at the following link: Junit Testing
junit - JUNIT
junit  can u give me a sample application of using junit?  Hi Friend, Please visit the following link: http://www.roseindia.net/junit/ Hope that it will be helpful for you. Thanks
Version of junit>junit dependency
List of Version of junit>junit dependency
Version of junit>junit-dep dependency
List of Version of junit>junit-dep dependency
What is JUnit?
What is JUnit?  What is the use of JUnit? How to write program to test a Java application? Thanks   Hi, JUnit is unit testing tool in Java. You can use the JUnit to test your Java code. Read more at JUnit 4.3.1
Version of junit-addons>junit-addons dependency
List of Version of junit-addons>junit-addons dependency
Version of junit-doclet>junit-doclet dependency
List of Version of junit-doclet>junit-doclet dependency
Artifacts of junit
List of Artifacts of junit maven depenency
spring with junit and mock testing
spring with junit and mock testing  spring with junit mock testing
Junit
JUnit Junit is new framework designed for Java to perform unit testing. It is an Open source framework. Junit is an instance of xUnit architecture... and writing test cases. Junit also have a Graphical User Interface which allows
Version of xdoclet-plugin-junit>xdoclet-plugin-junit dependency
List of Version of xdoclet-plugin-junit>xdoclet-plugin-junit dependency
Version of subpersistence>junit dependency
List of Version of subpersistence>junit dependency
Version of com.celexus>junit dependency
List of Version of com.celexus>junit dependency
Version of jepi>junit dependency
List of Version of jepi>junit dependency
junit 4.12 maven dependency
junit 4.12 maven dependency  Hi, I have to use the JUnit 4.12 in one of my project which heavily uses JUnit for testing code. Earlier it was using old version of JUnit and now it has to be upgraded to JUnit 4.12. What code
Maven Dependency junit >> 3.7
You should include the dependency code given in this page to add Maven Dependency of junit >> junit version3.7 in your project
Maven Dependency junit >> 3.8
You should include the dependency code given in this page to add Maven Dependency of junit >> junit version3.8 in your project
Maven Dependency junit >> 3.8.1
You should include the dependency code given in this page to add Maven Dependency of junit >> junit version3.8.1 in your project
Maven Dependency junit >> 3.8.2
You should include the dependency code given in this page to add Maven Dependency of junit >> junit version3.8.2 in your project
Maven Dependency junit >> 4.0
You should include the dependency code given in this page to add Maven Dependency of junit >> junit version4.0 in your project
Maven Dependency junit >> 4.1
You should include the dependency code given in this page to add Maven Dependency of junit >> junit version4.1 in your project
Maven Dependency junit >> 4.10
You should include the dependency code given in this page to add Maven Dependency of junit >> junit version4.10 in your project
Maven Dependency junit >> 4.11
You should include the dependency code given in this page to add Maven Dependency of junit >> junit version4.11 in your project
Maven Dependency junit >> 4.11-beta-1
You should include the dependency code given in this page to add Maven Dependency of junit >> junit version4.11-beta-1 in your project
Maven Dependency junit >> 4.12
You should include the dependency code given in this page to add Maven Dependency of junit >> junit version4.12 in your project
Maven Dependency junit >> 4.12-beta-1
You should include the dependency code given in this page to add Maven Dependency of junit >> junit version4.12-beta-1 in your project
Maven Dependency junit >> 4.12-beta-2
You should include the dependency code given in this page to add Maven Dependency of junit >> junit version4.12-beta-2 in your project
Maven Dependency junit >> 4.12-beta-3
You should include the dependency code given in this page to add Maven Dependency of junit >> junit version4.12-beta-3 in your project

Ads