Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Line 1. public void mocks_ test() { Line 2. Purchase mocked Purchase = Easy Mock .mock(Purchase .class); Line 3. expect(mocked Purchase. get Total Cost()).and Return(new

Line 1. public void mocks_ test() { Line 2. Purchase mocked Purchase = Easy Mock .mock(Purchase .class); Line 3. expect(mocked Purchase. get Total Cost()).and Return(new Big Decimal(2)); Line 4. replay(mocked Purchase); Line 5. Daily Purchases daily Purchases = new Daily Orders (mocked Purchase); Line 6. assert That(daily Purchases. get Total Cost()).is Equal To(new Big Decimal(2)); Line 7. Easy Mock. verify(mocked Purchase); Line 8. } The behavior of the mock test is defined in which line?


A. Line 1 


B. Line 2 


C. Line 3 


D. Line 7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

The behavior of the mock test is defined in line C which is Line 3 In l... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Calculus

Authors: Ron Larson, Bruce H. Edwards

10th Edition

1285057090, 978-1285057095

More Books

Students also viewed these Accounting questions