Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  
 

optional parameter of Test annotattion

Ads

 
 

Share on Google+Share on Google+

neelam
optional parameter of Test annotattion
0 Answer(s)      6 years and 8 months ago
Posted in : JUNIT

The Test annotation supports two optional parameters. The first, expected, declares that a test method should throw an exception. If it doesn't throw an exception or if it throws a different exception than the one declared, the test fails. For example, the following test succeeds :

@Test(expected=IndexOutOfBoundsException.class) public void outOfBounds() {
       new ArrayList<Object>().get(1);
    }
Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
optional parameter of Test annotattion
optional parameter of Test annotattion   What are two optional parameters of @Test annotation ?   The Test annotation supports two optional... parameter, timeout, causes a test to fail if it takes longer than a specified amount
optional parameter of Test annotattion
optional parameter of Test annotattion   The Test annotation supports two optional parameters. The first, expected, declares that a test method... a different exception than the one declared, the test fails. For example, the following
Advertisements
Init Parameter
Init Parameter  How set Init Parameter in servlet
Version of activemq-optional>activemq-optional dependency
List of Version of activemq-optional>activemq-optional dependency
specified in the Optional Package
specified in the Optional Package  What types of DataSource objects are specified in the Optional Package
Version of ant>optional dependency
List of Version of ant>optional dependency
Artifacts of activemq-optional
List of Artifacts of activemq-optional maven depenency
Java parameter passing
Java parameter passing  What type of parameter passing does Java support
validate parameter before using it
validate parameter before using it   How to validate the parameter before using it in JSP
Maven Dependency activemq-optional >> 3.2
You should include the dependency code given in this page to add Maven Dependency of activemq-optional >> activemq-optional version3.2 in your project
Maven Dependency activemq-optional >> 3.2.1
You should include the dependency code given in this page to add Maven Dependency of activemq-optional >> activemq-optional version3.2.1 in your project
Maven Dependency activemq-optional >> 3.2.2
You should include the dependency code given in this page to add Maven Dependency of activemq-optional >> activemq-optional version3.2.2 in your project
Version of activemq>activemq-optional dependency
List of Version of activemq>activemq-optional dependency
Version of ant>ant-optional dependency
List of Version of ant>ant-optional dependency
Version of checkstyle>checkstyle-optional dependency
List of Version of checkstyle>checkstyle-optional dependency
Version of tomcat>catalina-optional dependency
List of Version of tomcat>catalina-optional dependency
Version of com.eccyan>rxjava-optional dependency
List of Version of com.eccyan>rxjava-optional dependency
pass parameter names and values
pass parameter names and values  What is the <jsp:param> standard action?   The <jsp:param> standard action is used with <jsp:include> or <jsp:forward> to pass parameter names and values
SQL Out Parameter
SQL Out Parameter       SQL Out Parameter allows the stored procedure to the pass data value ... from SQL Out Parameter .In this Example we create a procedure 'abc
Passing Parameter - JSP-Servlet
Passing Parameter  I would like to ask how to pass a parameter from javascript section into the jsp section.It will be something like this: function change() { var answer = document.getElementById('selc').value
Passing a parameter using URL string
Passing a parameter using URL string  How to pass a parameter using the URL string in a JSF application
parameter meta data - JDBC
parameter meta data   i wnts to know about the finition of parameter in jdbc as well as the diffrent methods used in parameter meta data  Hi friend, public interface ResultSetMetaData An object that can be used
Parameter Tag:
Parameter Tag:       bean:parameter...) of the specified request parameter. This tag retrieve the value of the specified request parameter and define the attribute of  type String or String[] in page scope
Maven Dependency optional >> 1.5.4
You should include the dependency code given in this page to add Maven Dependency of ant >> optional version1.5.4 in your project
Passing Parameter - JSP-Servlet
, there's var answer. I need to pass this parameter back into the jsp part, how should i do
Version of com.laamella>parameter-source dependency
List of Version of com.laamella>parameter-source dependency
PHP add parameter to url - PHP
PHP add parameter to url  need an example of parse_url in PHP. Thanks in advance
Applet - Passing Parameter in Java Applet
(Graphics g), we prints the parameter value to test the value passed from html... Applet - Passing Parameter in Java Applet   ... of retrieving the parameter values passed from the html page. So, you can pass
Maven Dependency activemq-optional >> 3.1
You should include the dependency code given in this page to add Maven Dependency of activemq >> activemq-optional version3.1 in your project
Maven Dependency activemq-optional >> 3.1-M3
You should include the dependency code given in this page to add Maven Dependency of activemq >> activemq-optional version3.1-M3 in your project
Maven Dependency activemq-optional >> 3.1-M6
You should include the dependency code given in this page to add Maven Dependency of activemq >> activemq-optional version3.1-M6 in your project