public class ProducesConsumesTest
extends org.jboss.arquillian.testng.Arquillian
@Produces annotation affects the value transmitted in the
Accept header, and that it's @Consumes annotation affects the value transmitted in the
Content-Type header. Note that this is opposite of what you would expect for JAX-RS resources.| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PAYLOAD |
static String |
XML_PAYLOAD |
| Constructor and Description |
|---|
ProducesConsumesTest() |
| Modifier and Type | Method and Description |
|---|---|
static org.jboss.shrinkwrap.api.Archive<?> |
createDeployment() |
void |
testProducesConsumesAnnotationOnInterface() |
void |
testProducesConsumesAnnotationOnMethod() |
public static final String XML_PAYLOAD
public static final String JSON_PAYLOAD
@Deployment public static org.jboss.shrinkwrap.api.Archive<?> createDeployment()
public void testProducesConsumesAnnotationOnMethod()
public void testProducesConsumesAnnotationOnInterface()
Copyright © 2017 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.