1. Complete the implementation of the `Statistics1D` class.• This class represents a set of data points in one dimension, and allows returningproperties such as the sum, mean, and standard deviation.•...

1. Complete the implementation of the `Statistics1D` class.• This class represents a set of data points in one dimension, and allows returningproperties such as the sum, mean, and standard deviation.• At a minimum you should add code wherever it says "Your code here", replacingdummy return lines• You may wish to add extra code though (e.g., private member variables andfunctions.)2. Write unit tests for the `Statistics1D` in `Statistics1DTest`.• Each function must be at least tested to the minimum amount according toStructured Basis Testing techniques. You may also wish to consider Data Flowanalysis and Boundary Value Analysis.• You must also write tests for any functions given to you.3. Complete the implementation of the `Statistics2D` class.• This class represents a 2D dataset, where each datapoint has an x- and ycomponent.We will represent this using an `ArrayList` of the `Coordinate`class.4. Write unit tests for the `Statistics2D` in `Statistics2DTest`.• Each function must be at least tested to the minimum amount according toStructured Basis Testing techniques. You may also wish to consider Data Flowanalysis and Boundary Value Analysis.• You must also write tests for any functions given to you.• Be sure to test the main


University of Regina Faculty of Engineering and Applied Science Software Systems Engineering ENSE 375 - Software Testing and Validation Adam Tilson - Spring 2022 Assignment #1 - Unit Testing in Java Assigned: May 24, 2022. Due: June 7, 2022. For this assignment you are provided starting Java code. Using this code as a base, complete the following: 1. Complete the implementation of the `Statistics1D` class. • This class represents a set of data points in one dimension, and allows returning properties such as the sum, mean, and standard deviation. • At a minimum you should add code wherever it says "Your code here", replacing dummy return lines • You may wish to add extra code though (e.g., private member variables and functions.) 2. Write unit tests for the `Statistics1D` in `Statistics1DTest`. • Each function must be at least tested to the minimum amount according to Structured Basis Testing techniques. You may also wish to consider Data Flow analysis and Boundary Value Analysis. • You must also write tests for any functions given to you. 3. Complete the implementation of the `Statistics2D` class. • This class represents a 2D dataset, where each datapoint has an x- and y- component. We will represent this using an `ArrayList` of the `Coordinate` class. 4. Write unit tests for the `Statistics2D` in `Statistics2DTest`. • Each function must be at least tested to the minimum amount according to Structured Basis Testing techniques. You may also wish to consider Data Flow analysis and Boundary Value Analysis. • You must also write tests for any functions given to you. • Be sure to test the main function command line interface using the process discussed in Lecture 4!
Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here