Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
CS6262 Project Advanced Web Security
Throughout this assignment, you may find the following resources helpful. Refer to them BEFORE posting questions on EdStem.
Unix reference sheet
JUnit testing tutorial
MyList.java
MyArrayListTester.java
MyArrayList.java (empty)
MyList.java
MyArrayListTester.java
MyArrayList.java
In Programming Assignment 2, you will implement a data structure similar to Java’s ArrayList and create JUnit tests to verify proper operation and implementation. In order to implement MyArrayList, you will implement the MyList interface and additional methods. You will use existing JUnit tests and also are highly encouraged to write your own JUnit tests to test your implementation of the MyArrayList.
As you get started, please pay attention to the following:
Please read the ENTIRE write-up before getting started.
For this homework and all homework in CSE 12, you may not change any public class/method or variable names given in the write-up or starter code.
We strongly recommend that you work on EdStem, but if you choose to work on your own machine, make sure your code runs correctly on EdStem, as that is where we will be testing it.
In this programming assignment you will be developing an ArrayList. Of course, these data structures are already supported in the Java Collections Framework (ArrayList). But as we’ve mentioned in class,implementing data structures is one of the best ways to become a better programmer and to really understand what’s going on “under the hood”.
You will be creating a MyArrayList class that implements the given MyList interface. Note, we did not provide starter code for MyArrayList. Read through the full writeup before you begin. Additionally, we have only provided you a few tests in MyArrayListTester.java. You will need to test your code by creating your own tests to ensure that your implemenation functions correctly.
In order to write a good tester, you will need a deep understanding of how the classes and methods you are testing are supposed to work. So before you start writing your tester, you should read Part 1b in order to understand what your ArrayList classes are supposed to do. You may refer to the documentation for ArrayList.
The EdStem starter code will contain MyArrayListTester.java. This is a starter file that defines a small number of tests against MyArrayList using the JUnit testing framework introduced in PA1. Observe and check how each test is written and what it tests for.
You are strongly encouraged to add more tests, as the provided starter test is not comprehensive. The released test cases will be more restricted as you progress through the course, and creating your own tests is the easiest way to verify and debug your code. You may refer to the Testing section in this write-up when you write your unit tests.