Guest User

Untitled

a guest
Dec 17th, 2014
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. package org.teste.model;
  2.  
  3. import org.teste.model.Soro;
  4. import javax.inject.Inject;
  5. import org.jboss.arquillian.container.test.api.Deployment;
  6. import org.jboss.arquillian.junit.Arquillian;
  7. import org.jboss.shrinkwrap.api.ShrinkWrap;
  8. import org.jboss.shrinkwrap.api.spec.JavaArchive;
  9. import org.jboss.shrinkwrap.api.asset.EmptyAsset;
  10. import org.junit.Assert;
  11. import org.junit.Test;
  12. import org.junit.runner.RunWith;
  13. import static org.junit.Assert.*;
  14. import static org.hamcrest.core.Is.*;
  15.  
  16. @RunWith(Arquillian.class)
  17. public class SoroTest
  18. {
  19.  
  20. @Inject
  21. private Soro soro;
  22.  
  23. @Deployment(testable = true)
  24. public static JavaArchive createDeployment()
  25. {
  26. return ShrinkWrap.create(JavaArchive.class)
  27. .addClass(Soro.class)
  28. .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
  29. }
  30.  
  31. @Test
  32. public void should_be_deployed()
  33. {
  34. Assert.assertNotNull(soro);
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment