Adds default headers to rest client calls.
Adds default headers to rest client calls.

package net.gvmtool

import wslite.rest.RESTClient

import static cucumber.api.groovy.Hooks.After
import static db.MongoHelper.*

def BASE_URL = "http://localhost:8080"
restClient = new RESTClient(BASE_URL)
restClient.defaultAcceptHeader = "text/plain"
restClient.defaultContentTypeHeader = "text/plain"
restClient.defaultCharset = "UTF-8"

if(!binding.hasVariable("db")) {
    db = prepareDB()
}

After() {
    dropCollectionFromDb(db, "application")
    dropCollectionFromDb(db, "broadcast")
    dropCollectionFromDb(db, "candidates")
}
package net.gvmtool

import wslite.rest.RESTClient

import static cucumber.api.groovy.Hooks.After
import static db.MongoHelper.*

def BASE_URL = "http://localhost:8080"
restClient = new RESTClient(BASE_URL)

if(!binding.hasVariable("db")) {
    db = prepareDB()
}

After() {
    dropCollectionFromDb(db, "application")
    dropCollectionFromDb(db, "broadcast")
    dropCollectionFromDb(db, "candidates")
}