I need the unit tests written

Need help with this question or any other Computer Science assignment help task?

This assignment requires you to write unit tests, described as follows:

 1. eCash java class is provided for this assignment,

 2. Specify class invariants, and preconditions & postconditions of the method of the class, and

 3. Develop unit tests for the eCash java class to check the method with the specified conditions. You can use any unit test framework (jUnit, cppUnit, nUnit, unittest, ...), depending on the implementation language you used for your classes

Submit a zipped file containing the following:

   source codes of your unit tests

   a brief description of how you designed unit tests, along with how to run your test and screen shots showing the results of each test

Additional Instructions:
package app; import java.util.Arrays; import java.util.Collections; public class eCash { static String CustomerID = "110110"; static String Message = "BankOfAmerica"; /* * Precondition : @Val, @uniqueID should not be null * Postcondition : return string as "@uniqueID, @value, @Message" */ public static String createOrder(String Val) { String MOrder = new String(); Integer[] arr = new Integer[1000]; for (int i = 0; i < arr.length; i++) { arr[i] = i; } Collections.shuffle(Arrays.asList(arr)); String uniqueID = ""; for(int i = 0; i < arr.length; i++){ uniqueID = arr[i].toString(); MOrder = uniqueID + "," + Val + "," + Message; } return MOrder; } }
There are no answers to this question.
Login to buy an answer or post yours. You can also vote on other others

Get Help With a similar task to - I need the unit tests written

Popular Services
Tutlance Experts offer help in a wide range of topics. Here are some of our top services: