JUnit Questions and Answers – Continuous Integration

This set of JUnit Multiple Choice Questions & Answers (MCQs) focuses on ” Continuous Integration”. 1. _____________ checks if an attribute is blank or not. a) BaseIfAttribute b) IfBlankAttribute c) IfTrueAttribute d) IfSetAttribute 2. ______________ check if an attribute value is true or not. a) BaseIfAttribute b) IfBlankAttribute c) IfTrueAttribute d) IfSetAttribute 3. _____________ is … Read more

advertisement

JUnit Questions and Answers – Maven Downsides

This set of Basic JUnit Questions and Answers focuses on “Maven Downsides”. 1. The biggest advantage of mock objects over in-container testing is that mocks don’t require a ________ container in order to execute tests. a) Running b) Closed c) Open d) Static 2. ___________ contains helper classes for ant properties. a) org.apache.tools.ant.property b) org.apache.tools.ant.types … Read more

advertisement

JUnit Questions and Answers – Maven Surefire

This set of JUnit Multiple Choice Questions & Answers (MCQs) focuses on “Maven Surefire”. 1. ____________ translates ExpectationErrors into JUnit’s AssertionFailedErrors. a) JUnit3ErrorTranslator b) JUnit3Mockery c) MockObjectTestCase d) VerifyingTestCase 2. ___________ is a Mockery that reports expectation errors as JUnit 3 test failures. a) JUnit3ErrorTranslator b) JUnit3Mockery c) MockObjectTestCase d) VerifyingTestCase 3. __________ is a … Read more

advertisement

JUnit Questions and Answers – Maven Plug-ins

This set of JUnit Multiple Choice Questions & Answers (MCQs) focuses on “Maven Plug-ins”. 1. ____________ translates ExpectationErrors into AssertionErrors that several test frameworks, including JUnit 4 and TestNG, use to report errors. a) AssertionErrorTranslator b) CamelCaseNamingScheme c) CurrentStateMatcher d) IdentityExpectationErrorTranslator 2. _________ is a naming scheme wherein the implicit name for a mock object … Read more

advertisement

JUnit Questions and Answers – Setting Up a Maven Project

This set of JUnit Problems focuses on “Setting Up a Maven Project”. 1. ___________ creates an action that performs the given script. a) describeTo(Description description) b) invoke(Invocation invocation) c) perform(String script) d) where(String name, Object value) 2. ____________ defines a variable that can be referred to by the script. a) describeTo(Description description) b) invoke(Invocation invocation) … Read more

advertisement

JUnit Questions and Answers – Maven Introduction

This set of JUnit Multiple Choice Questions & Answers (MCQs) focuses on “Maven Introduction”. 1. The __________ package contains plugins that make it easier to use jMock with legacy code. a) org.jmock.api b) org.jmock.lib.action c) org.jmock.lib.script d) org.jmock.lib.legacy 2. _____________ class enables to imposterise abstract and concrete classes without calling the constructors of the mocked … Read more

advertisement

JUnit Questions and Answers – Batching Tests

This set of JUnit Multiple Choice Questions & Answers (MCQs) focuses on “Batching Tests”. 1. ________ submits a value-returning task for execution and returns a Future representing the pending results of the task. a) submit(Callable<T> task) b) awaitTermination c) submit(Runnable task, T result) d) invokeAll() 2. ____________ submits a Runnable task for execution and returns … Read more

advertisement

JUnit Questions and Answers – Creating HTML Reports

This set of JUnit Multiple Choice Questions & Answers (MCQs) focuses on “Creating HTML Reports”. 1. The Executor implementations provided implement ____________ which is a more extensive interface. a) ExecutorService b) ThreadPoolExecutor c) ArrayDeque d) SerialExecutor 2. The __________ command executes the given command at some time in the future. a) Execution() b) execute(Runnable command) … Read more

advertisement

JUnit Questions and Answers – Dependency Management with Ivy

This set of JUnit Multiple Choice Questions & Answers (MCQs) focuses on “Dependency Management with Ivy”. 1. _______________ contains implementations of the core interfaces that are used to adjust or extend jMock’s basic functionality. a) org.jmock b) org.jmock.api c) org.jmock.lib d) org.jmock.integration.junit3 2. ______________ integrates jMock with JUnit 3. a) org.jmock b) org.jmock.api c) org.jmock.lib … Read more

advertisement

JUnit Questions and Answers – Putting Ant to The Task

This set of JUnit Assessment Questions and Answers focuses on “Putting Ant to The Task”. 1. The __________ interface allows setting expectations for an associated expected invocation. a) IMocksControl b) IExpectationSetters<T> c) IExpectation<T> d) Isetters<T> 2. _____________ function expect the last invocation any times. a) andStubReturn(T value) b) andThrow(Throwable throwable) c) anyTimes() d) asStub() 3. … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.