Ejemplo n.º 1
0
 /* (non-Javadoc)
  * @see junit.framework.TestCase#setUp()
  */
 protected void setUp() throws Exception {
   super.setUp();
   // using the JDTLikeHandleProvider because this produces consistent handles
   // over different compiles
   handleProvider = AsmManager.getDefault().getHandleProvider();
   AsmManager.getDefault().setHandleProvider(new JDTLikeHandleProvider());
   // We are about to create a sandbox for the model output file, don't let the
   // following compile wipe it.
   ajc.setShouldEmptySandbox(false);
   // report all information - model, relationships delta processing
   modelFilename = ajc.getSandboxDirectory().getAbsolutePath() + File.separator + "model.txt";
   AsmManager.setReporting(
       modelFilename,
       true,
       true,
       true,
       false,
       new TestFilter(ajc.getSandboxDirectory().getCanonicalPath()));
 }
Ejemplo n.º 2
0
 public static Test suite() {
   return XMLBasedAjcTestCase.loadSuite(Ajc11Tests.class);
 }
Ejemplo n.º 3
0
 /* (non-Javadoc)
  * @see junit.framework.TestCase#tearDown()
  */
 protected void tearDown() throws Exception {
   super.tearDown();
   AsmManager.getDefault().setHandleProvider(handleProvider);
   AsmManager.setDontReport();
   ajc.setShouldEmptySandbox(true);
 }
Ejemplo n.º 4
0
 public static Test suite() {
   return XMLBasedAjcTestCase.loadSuite(NewFeatures.class);
 }