Skip to content

Commit

Permalink
Updated to use 1.1.qontract
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrosario committed Sep 30, 2020
1 parent c12b1ea commit 60ab8ad
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 81 deletions.
2 changes: 1 addition & 1 deletion qontract.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"provider": "git",
"repository": "https://github.com/qontract/petstore-contracts.git",
"test": [
"run/qontract/examples/petstore/1.qontract"
"run/qontract/examples/petstore/1.1.qontract"
]
}
]
Expand Down
75 changes: 0 additions & 75 deletions src/main/java/com/petstore/demo/controllers/MockHelper.kt

This file was deleted.

3 changes: 0 additions & 3 deletions src/main/java/com/petstore/demo/controllers/PetData.kt

This file was deleted.

4 changes: 2 additions & 2 deletions src/main/java/com/petstore/demo/model/DB.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.petstore.demo.model

object DB {
private val pets: MutableList<Pet> = mutableListOf()
private val orders: MutableList<Order> = mutableListOf()
private val pets: MutableList<Pet> = mutableListOf(Pet("Archibald", "dog", "available", 10), Pet("Gemini", "dog", "available", 20))
private val orders: MutableList<Order> = mutableListOf(Order("dog", 2, "pending", 10), Order("cat", 1, "pending", 20))

fun addPet(pet: Pet) { pets.add(pet) }

Expand Down

0 comments on commit 60ab8ad

Please sign in to comment.