Class CalculatorRandomTest

java.lang.Object
test.CalculatorRandomTest

public class CalculatorRandomTest extends Object
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 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.