Last active
February 22, 2020 02:57
-
-
Save automationhacks/d7e08b92a3d95f388b51b028f3e22b60 to your computer and use it in GitHub Desktop.
Simple test to make a booking and assert if it is created.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SetupTeardownWithDataProvider { | |
@Test | |
fun testBookingCreation() { | |
val vehicleType = VehicleType.CAR_XL | |
val booking = Booking() | |
val orderId = booking.makeBooking(vehicleType) | |
val isBookingCreated = booking.doesBookingExists(vehicleType, orderId) | |
Assert.assertNotNull(isBookingCreated) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment