Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.jboss.arquillian.junit;
- import junit.framework.Assert;
- import org.jboss.arquillian.api.Deployment;
- import org.jboss.shrinkwrap.api.ShrinkWrap;
- import org.jboss.shrinkwrap.api.spec.JavaArchive;
- import org.junit.Test;
- import org.junit.runner.RunWith;
- @RunWith(Arquillian.class)
- public class DeploymentExceptionTestCase
- {
- @Deployment
- public static JavaArchive createArchive()
- {
- return ShrinkWrap.create(JavaArchive.class);
- }
- @Test
- @DeploymentException
- public static void shouldCauseInvalidDescriptorException(InvalidDescriptorException exception)
- {
- Assert.assertNotNull(exception);
- Assert.assertEquals("Duplicate filter tag found", exception.getMessage());
- }
- @Test(expected = InvalidDescriptorException.class)
- @DeploymentException
- public static void shouldCauseInvalidDescriptorException()
- {
- }
- }
Add Comment
Please, Sign In to add comment