Write appropriate unit tests for the bitcoinpricer class

Assignment Help Computer Engineering
Reference no: EM131967085

Assignments

Task 1

Assignment: Use Mock Objects to Test Software

As explained in this week's readings, mocks provide a way of unit testing methods that depend upon other methods. Normally, this would be termed "integration testing." But with mock objects, the software tester can isolate the method being tested. Do the following:

• In an object-oriented programming language of your choice, write an application with the following classes and methods. The BitcoinPricer object contains a single public method, which determines the current dollar value for a specified amount of Bitcoin. It uses the BitcoinValueService, which contacts a Web service to obtain the current U.S. Dollar value for a single Bitcoin.

871_Bitcoin.jpg

• Write appropriate unit tests for the BitcoinPricer class, ensuring that you have adequate coverage of the possible input space. The tests should appropriately mock a BitcoinValueService object. You should locate, install, and use an appropriate mocking framework for this portion of the assignment.

• Write appropriate integration tests for the BitcoinPricer class. The tests should not mock a BitcoinValueService object and should use the real Bitcoin value at that moment.

• Prepare and submit a Word document with screenshots of all your code, running tests, and test reports.

Task 2:

Assignment: Set Up a Continuous Integration Solution

Research source code control and continuous integration solutions that are appropriate for the program you wrote in Task 1. Set up a continuous integration pipeline that will compile your code, run your tests automatically when code is checked in to source control, and alert you via email when the tests fail. Prepare a Word document with the following components:

• Justification for your selected source control and continuous integration solutions
• Screenshots of your CI solution's configuration showing the triggers and alert settings
• Screenshots of your CI solution's log for a successful check-in and running of tests
• Screenshots of your CI solution's log for a failed check-in due to a syntax error (i.e., inject a syntax error that will cause your app not to compile)

Screenshots of your CI solution's log for a failed check-in due to a logic error (i.e., inject a logic error that will cause your app to compile, but fail one or more tests).

Reference no: EM131967085

Questions Cloud

How large a sample should she take : She wishes the confidence interval to be of the form "plus or minus 3 grams," and is willing to assume that the population standard deviation is equal to 12.
Explain the use of the technique to secure and manage wlan : Explain the use(evaluation)of the technique to secure and/or manage WLAN. oDiscuss dual bands and its advantages oSecurity implications
What is the probability that 6 or more : If a sample of 8 bulbs are selected, what is the probability that 6 or more of them are not defective.
Confidence interval estimate of the population mean : Use the sample values to construct a 99% confidence interval estimate of the population mean. What is the population? Identify at least one major problem
Write appropriate unit tests for the bitcoinpricer class : Write appropriate unit tests for the BitcoinPricer class, ensuring that you have adequate coverage of the possible input space.
Discuss theories of life-span development : For this Assignment, you discuss theories of life-span development by evaluating a theory that seems especially relevant to you and your role as a social worker
Chronological history of individual major life experiences : Provide a chronological history of the individual's major life experiences. Identify specific biological, psychological and sociological influences that shaped.
How could a financial information system be beneficial : How could a financial information system be beneficial to a business with respect to strategic financial management - Explain to your manager, and demonstrate
Implement a simple automatic language identification system : Your task is to implement a simple automatic language identification system that can identify 5 languages (English, French, German, Italian and Spanish).

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd