Class MinCostUnitTest

java.lang.Object
com.example.dhaka_metro_rail.MinCostUnitTest

public class MinCostUnitTest extends Object
Unit tests for the MinCost class.
  • Field Details

    • minCost

      private MinCost minCost
  • Constructor Details

    • MinCostUnitTest

      public MinCostUnitTest()
  • Method Details

    • setUp

      public void setUp()
    • testGetRandomTime

      public void testGetRandomTime()
      Tests the getRandomTime method to ensure it generates a random time within the specified range.
    • testCalculateShortestPathFromSource

      public void testCalculateShortestPathFromSource()
      Tests the calculateShortestPathFromSource method to ensure it calculates the shortest path correctly.