Class CalculatorRandomTest
java.lang.Object
test.CalculatorRandomTest
Provides a random based test for the
Calculator
class.
Tests the shipping cost calculation for 1000 random packets based on the defined shipping rules. Ensures that exceptions are thrown for oversized packets and packets with invalid dimensions or weight.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Tests that 1000 random packets are correctly calculated based on the shipping rules.
-
Constructor Details
-
CalculatorRandomTest
public CalculatorRandomTest()
-
-
Method Details
-
testRandomPackets
@Test public void testRandomPackets()Tests that 1000 random packets are correctly calculated based on the shipping rules. Ensures exceptions are thrown for oversized packets.
-