Package org.jboss.test.classinfo.support

Examples of org.jboss.test.classinfo.support.ErrorHolderThread.start()


               throw new RuntimeException(t);
            }
         }
      };
      ErrorHolderThread other = new ErrorHolderThread(runnable);
      other.start();
      other.join();
      // we should get an error here
      assertNotNull("Should get access restriction exception.", other.getError());
      RuntimeException re = assertInstanceOf(other.getError(), RuntimeException.class);
      Throwable cause = re.getCause();
View Full Code Here


               resumeSecurity(sm);
            }
         }
      });
      assertNull(getPrivateString(tester));
      other.start();
      other.join();
      assertNull(other.getError());
      assertEquals("foobar", getPrivateString(tester));
   }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.