Package org.jboss.arquillian.spi

Examples of org.jboss.arquillian.spi.TestClass


   {
      if (JavaArchive.class.isAssignableFrom(archive.getClass()) == false)
         throw new IllegalArgumentException("JavaArchive expected: " + archive);

      JavaArchive appArchive = JavaArchive.class.cast(archive);
      TestClass testClass = context.get(TestClass.class);
      Class<?> javaClass = testClass.getJavaClass();

      // Check if the application archive already contains the test class
      String path = javaClass.getName().replace('.', '/') + ".class";
      if (appArchive.contains(path) == false)
         appArchive.addClass(javaClass);
View Full Code Here


   private void injectContainer(Context context, Object testCase, Field field)
   {
      try
      {
         TestClass testClass = new TestClass(testCase.getClass());
         field.set(testCase, getContainer(context, testClass));
      }
      catch (IllegalAccessException ex)
      {
         throw new IllegalStateException("Cannot inject BundleContext", ex);
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.spi.TestClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.