Author: vyemialyanchyk
Date: 2009-06-02 08:59:25 -0400 (Tue, 02 Jun 2009)
New Revision: 15641
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HbmExportExceptionTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateAllMappingTests.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/TestSet.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4366 - update tests - execute project build in
setUp
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HbmExportExceptionTest.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HbmExportExceptionTest.java 2009-06-02
12:29:00 UTC (rev 15640)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HbmExportExceptionTest.java 2009-06-02
12:59:25 UTC (rev 15641)
@@ -49,7 +49,6 @@
KnownConfigurations knownConfigurations = KnownConfigurations.getInstance();
final ConsoleConfiguration consCFG =
knownConfigurations.find(ConsoleConfigUtils.ConsoleCFGName);
assertNotNull(consCFG);
- //pack.getJavaProject().getProject().build(IncrementalProjectBuilder.FULL_BUILD, new
NullProgressMonitor());
consCFG.reset();
consCFG.build();
assertTrue(consCFG.hasConfiguration());
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateAllMappingTests.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateAllMappingTests.java 2009-06-02
12:29:00 UTC (rev 15640)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateAllMappingTests.java 2009-06-02
12:59:25 UTC (rev 15641)
@@ -17,6 +17,7 @@
import junit.framework.TestResult;
import junit.framework.TestSuite;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
@@ -75,6 +76,7 @@
ConsoleConfigUtils.createConsoleConfig(ConsoleConfigUtils.ConsoleCFGName,
cfgFilePath, ConfigurableTestProject.PROJECT_NAME);
ProjectUtils.toggleHibernateOnProject(project.getIProject(), true,
ConsoleConfigUtils.ConsoleCFGName);
+ project.getIProject().build(IncrementalProjectBuilder.FULL_BUILD, null);
}
/* (non-Javadoc)
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/TestSet.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/TestSet.java 2009-06-02
12:29:00 UTC (rev 15640)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/TestSet.java 2009-06-02
12:59:25 UTC (rev 15641)
@@ -31,9 +31,9 @@
}
private static void addPackTests(TestSuite suite) {
- /*suite.addTestSuite(OpenSourceFileTest.class);
- suite.addTestSuite(OpenMappingFileTest.class);
- suite.addTestSuite(OpenMappingDiagramTest.class);*/
suite.addTestSuite(HbmExportExceptionTest.class);
+ //suite.addTestSuite(OpenSourceFileTest.class);
+ //suite.addTestSuite(OpenMappingFileTest.class);
+ //suite.addTestSuite(OpenMappingDiagramTest.class);
}
}