public static Test suite() throws Exception { final TestSuite suite = new TestSuite("Refactorings"); suite.addTest(WhereUsedTest.suite()); suite.addTest(SearchFilter.Tests.suite()); if (!IDEController.runningNetBeans()) { suite.addTest(NotUsedTest.suite()); } if (!IDEController.runningNetBeans()) { suite.addTest(FixmeScannerTest.suite()); } if (!IDEController.runningNetBeans()) { suite.addTest(FixmeScannerMultiplePackagesTest.suite()); } if (!IDEController.runningNetBeans()) { suite.addTest(FixmeTimestampTest.suite()); } if (!IDEController.runningNetBeans()) { suite.addTest(net.sf.refactorit.test.metrics.AllTests.suite()); } suite.addTest(DependenciesIndexer.TestDriver.suite()); suite.addTest(MoveTypeTest.suite()); suite.addTest(ExtractMethodTest.suite()); suite.addTest(SnapshotDiff.SelfTest.suite()); if (!IDEController.runningNetBeans()) { suite.addTest(ExtractSuperTest.suite()); } suite.addTest(net.sf.refactorit.test.refactorings.rename.AllTests.suite()); suite.addTest(net.sf.refactorit.test.refactorings.javadoc.AllTests.suite()); suite.addTest(EncapsulateFieldTest.suite()); if (!IDEController.runningNetBeans()) { suite.addTest(net.sf.refactorit.test.refactorings.structure.AllTests.suite()); } suite.addTest(MinimizeAccessRightsTest.suite()); suite.addTest(MoveMemberTest.suite()); suite.addTest(UndoManagerTest.suite()); suite.addTest(AddDelegatesTest.suite()); suite.addTest(OverrideMethodsTest.suite()); suite.addTest(ChangeMethodSignatureTest.suite()); suite.addTestSuite(DigraphTopologicalSorterTest.class); suite.addTest(net.sf.refactorit.test.refactorings.usesupertype.AllTests.suite()); suite.addTest(SnapshotBuilderTest.suite()); suite.addTest(EjbUtilTest.suite()); suite.addTest(FactoryMethodTest.suite()); suite.addTest(CleanImportsTest.suite()); suite.addTest(CreateMissingMethodTest.suite()); suite.addTest(CallTreeTest.suite()); suite.addTest(net.sf.refactorit.test.refactorings.inlinevariable.AllTests.suite()); suite.addTest(net.sf.refactorit.test.refactorings.promotetemptofield.AllTests.suite()); suite.addTest(net.sf.refactorit.test.refactorings.introducetemp.AllTests.suite()); suite.addTest(net.sf.refactorit.test.refactorings.nonjava.AllTests.suite()); suite.addTest(InlineMethodTest.suite()); suite.addTest(WhereCaughtTest.suite()); suite.addTest(CleanRebuildDialogTest.suite()); suite.addTest(ImportUtilsTest.suite()); return suite; }
public void setUp() { if (p == null) { try { p = MinimizeAccessRightsTest.getProjectForTest( MinimizeAccessRightsTest.checkPossibleEjbMethodsTest); } catch (Exception e) { throw new ChainableRuntimeException(e); } beanRef = p.getTypeRefForName("a.MainBean"); bean = (BinClass) beanRef.getBinCIType(); ejbFindAll = bean.getDeclaredMethod("ejbFindAll", BinTypeRef.NO_TYPEREFS); ejbSelect = bean.getDeclaredMethod("ejbSelect", BinTypeRef.NO_TYPEREFS); toStringMethod = bean.getDeclaredMethod("toString", BinTypeRef.NO_TYPEREFS); } }