For BE/B.Tech/BCA/MCA/ME/M.Tech Major/Minor Project for CS/IT branch at minimum price Text Message @ 9424820157

J Unit Interview Questions

J Unit Interview Questions



(1) What is Junit?
J unit is a regression testing framework used to create unit test cases by developers.it is an open-source framework to write and run repeatable tests.

(2) What is the difference between JUnit 3 and JUnit 4?
 Junit 3
 Junit 4
 It do not support annotations
 It supports annotations
 Need to inherit test case class
 Not need to inherit Testcase class
 2 life cycles methods are available
 There are 4 life cycles method in it
                                                                                                             
(3) How do we write JUnit test cases?
In j unit 3 test cases are written by extending the JUnit test case class. In JUnit 4 test cases are written by annotations.

(4) What is the JUnit life cycles method?
In JUnit 3 there are two life cycle methods setup() and teardown().both methods are called before and after  each test method.

In JUnit 4 there are 4 life cycle methods.setupBeforeClass(),setup(),teardown() and tearDownAfterClass().setupBeforeClass() is called   before the testcase and tearDownAfterClass() is called  after the testcase.

(5) What is the naming convention of test methods?
Test methods must start with test prefix “test” in JUnit 3.in j unit 4 naming convention is not required, we have to put annotation @Test above test method for testing the particular method.

(6) What is regression testing?
When a new functionality is tested with old functionalities that is known as regression testing.

(7) What is the difference between JUnit testing and regression  testing?
 Both are the same and done with the help of JUnit test cases.

(8) Who prepare the JUnit test case?
  Developers

(9) Who performing JUnit testing?
  Developers

(10) What is a test suite?
Test suite is collection of test cases.

(11) What is unit testing?
Unit testing represents smallest testable part of an application called units is being tested with JUnit.

(12) What is a test case?
Testcase is a class that contains multiple test methods.

(13) What is load testing?
 It is performance testing to check system under load.


No comments:

Post a Comment



Please go through below tutorials:


Mule 4 Tutorials

DEPLOY TO CLOUDHUB C4E CLIENT ID ENFORCEMENT CUSTOM POLICY RABBIT MQ INTEGRATION
XML TO JSON WEBSERVICE CONSUMER VM CONNECTOR VALIDATION UNTIL SUCCESSFUL
SUB FLOW SET & REMOVE VARIABLE TRANSACTION ID SCATTER GATHER ROUND ROBIN
CONSUME REST WEBSERVICE CRUD OPERATIONS PARSE TEMPLATE OBJECT TO JSON LOAD STATIC RESOURCE
JSON TO XML INVOKE IDEMPOTENT FILTER FOR EACH FLAT TO JSON
FIXWIDTH TO JSON FIRST SUCCESSFUL FILE OPERATIONS EXECUTE ERROR HANDLING
EMAIL FUNCTIONALITY DYNAMIC EVALUATE CUSTOM BUSINESS EVENT CSV TO JSON COPYBOOK TO JSON
CHOICE ASYNC

Widely used Connectors in Mule 3

CMIS JETTY VM CONNECTOR SALESFORCE POP3
JMS TCP/IP WEBSERVICE CONSUMER QUARTZ MONGO DB
FILE CONNECTOR DATABASE CONNECTOR


Widely used Scopes in Mule 3

SUB FLOW REQUEST REPLY PROCESSOR CHAIN FOR EACH CACHE
ASYNC TCP/IP COMPOSITE SOURCE POLL UNTIL SUCCESSFUL
TRANSACTIONAL FLOW

Widely used Components in Mule 3

EXPRESSION CXF SCRIPT RUBY PYTHON
JAVASCRIPT JAVA INVOKE CUSTOM BUSINESS EVENT GROOVY
ECHO LOGGER


Widely used Transformers in Mule 3

MONGO DB XSLT TRANSFORMER REFERENCE SCRIPT RUBY
PYTHON MESSAGE PROPERTIES JAVA TRANSFORMER GZIP COMPRESS/UNCOMPRESS GROOVY
EXPRESSION DOM TO XML STRING VALIDATION COMBINE COLLECTIONS BYTE ARRAY TO STRING
ATTACHMENT TRANSFORMER FILE TO STRING XML TO DOM APPEND STRING JAVASCRIPT
JSON TO JAVA COPYBOOK TO JSON MAP TO JSON JSON TO XML FLATFILE TO JSON
FIXWIDTH TO JSON CSV TO JSON


Widely used Filters in Mule 3

WILDCARD SCHEMA VALIDATION REGEX PAYLOAD OR
NOT MESSAGE PROPERTY MESSAGE IDEMPOTENT FILTER REFERNCE
EXPRESSION EXCEPTION CUSTOM AND


Exception Strategy in Mule 3

REFERENCE EXCEPTION STRATEGY CUSTOM EXCEPTION STRATEGY CHOICE EXCEPTION STRATEGY CATCH EXCEPTION STRATEGY GLOBAL EXCEPTION STRATEGY


Flow Control in Mule 3

CHOICE COLLECTION AGGREGATOR COLLECTION SPLITTER CUSTOM AGGREGATOR FIRST SUCCESSFUL
MESSAGE CHUNK AGGREGATOR MESSAGE CHUNK SPLITTER RESEQUENCER ROUND ROBIN SOAP ROUTER