Skip to content

Instantly share code, notes, and snippets.

@automationhacks
Last active February 22, 2020 02:57
Show Gist options
  • Save automationhacks/d7e08b92a3d95f388b51b028f3e22b60 to your computer and use it in GitHub Desktop.
Save automationhacks/d7e08b92a3d95f388b51b028f3e22b60 to your computer and use it in GitHub Desktop.
Simple test to make a booking and assert if it is created.
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