Added AccurestObjectMapper

This commit is contained in:
Marcin Grzejszczak
2016-04-25 12:40:51 +02:00
parent f1a7975bce
commit 941a7bd30c
13 changed files with 76 additions and 71 deletions

View File

@@ -1,26 +1,25 @@
package io.codearte.accurest.samples.messaging
import com.fasterxml.jackson.databind.ObjectMapper
import com.jayway.jsonpath.DocumentContext
import com.jayway.jsonpath.JsonPath
import com.toomuchcoding.jsonassert.JsonAssertion
import io.codearte.accurest.dsl.GroovyDsl
import io.codearte.accurest.messaging.AccurestMessage
import io.codearte.accurest.messaging.AccurestMessaging
import io.codearte.accurest.messaging.AccurestObjectMapper
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.SpringApplicationContextLoader
import org.springframework.test.context.ContextConfiguration
import spock.lang.Specification
import javax.inject.Inject
// Context configuration would end up in base class
@ContextConfiguration(classes = [IntegrationMessagingApplication], loader = SpringApplicationContextLoader)
public class IntegrationMessagingApplicationSpec extends Specification {
// ALL CASES
@Inject AccurestMessaging accurestMessaging
ObjectMapper accurestObjectMapper = new ObjectMapper()
AccurestObjectMapper accurestObjectMapper = new AccurestObjectMapper()
def "should work for triggered based messaging"() {
given: