Package com.example.dhaka_metro_rail
Class MinCostUnitTest
java.lang.Object
com.example.dhaka_metro_rail.MinCostUnitTest
Unit tests for the MinCost class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidTests the calculateShortestPathFromSource method to ensure it calculates the shortest path correctly.voidTests the getRandomTime method to ensure it generates a random time within the specified range.
-
Field Details
-
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.
-