Tag: testing
Questions Related to testing
-
a.) Test a single unit of code
-
b.)Test a one module of the application
-
c.)Test a whole application
-
d.)Test the data, stored in database.
-
a.) Name of the Class must end with “Test”
-
b.) Name of the method must start with “test”
-
c.) Return type of the test method must be “void”
-
d.) Test method must not have any parameter.
-
e.) All of the above
-
a.) Using the Mock class, related to corresponding Test class
-
b.) Using the reflection if using Jdk 1.3 or higher version
-
c.) Both a.) & b.)
-
d.) No way to test it
-
a.) There is no option to test it in Junit
-
b.) Modifying the testcase to run with SecurityManager that prevents calling System.exit, then catch the SecurityException.
-
c.) Remove the System.Exit() line then continue the testing with that methods.
-
d.) Test it everything as-is.
-
a.) Reflection provides the option to do this.
-
b.) Copy the method content into the testcase methods.
-
c.) Place your tests in the same package as the classes under test.
-
d.) Can't do the testing for protected methods.
-
The JUnit JAR file.
-
b.) Location of your JUnit test classes.
-
c.) Location of classes to be tested.
-
d.) JAR files of class libraries that are required by classes to be tested
-
e.) All of the above
-
a.) Container class, which used to group multiple test cases into a collection and run them together.
-
b.) defines test fixture, which contains all the test methods.
-
c.) interface, which contains the declaration of all the methods, needs to be implemented by Testcases.
-
d.) None of the above
-
CR_ACC_ADC
-
CR_ADC_ACC
-
ILM_CREATEACCOUNT
-
ILM_ADC_CREATEACCOUNT