Author: vyemialyanchyk
Date: 2010-01-05 13:08:51 -0500 (Tue, 05 Jan 2010)
New Revision: 19650
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapMockTests.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/hbmexporter/HbmExporterTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5159 - first step implementation
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapMockTests.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapMockTests.java 2010-01-05
18:08:29 UTC (rev 19649)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapMockTests.java 2010-01-05
18:08:51 UTC (rev 19650)
@@ -88,7 +88,7 @@
context.checking(new Expectations() {{
exactly(1).of(allEntitiesProcessor).modify(new HashMap<String,
EntityInfo>(), true, selection2Update);
}});
- jpaMapToolActor.updateSelected();
+ jpaMapToolActor.updateSelected(Integer.MAX_VALUE);
context.assertIsSatisfied();
jpaMapToolActor.setSelection(null);
@@ -105,7 +105,7 @@
allowing(allEntitiesInfoCollector).initCollector();
inSequence(sequence);
- allowing(allEntitiesInfoCollector).collect(compilationUnit);
+ allowing(allEntitiesInfoCollector).collect(compilationUnit, Integer.MAX_VALUE);
inSequence(sequence);
allowing(allEntitiesInfoCollector).resolveRelations();
@@ -138,7 +138,7 @@
exactly(1).of(allEntitiesProcessor).modify(null, true, selection2Update);
}});
- jpaMapToolActor.updateSelected();
+ jpaMapToolActor.updateSelected(Integer.MAX_VALUE);
context.assertIsSatisfied();
/** /
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapTest.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapTest.java 2010-01-05
18:08:29 UTC (rev 19649)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapTest.java 2010-01-05
18:08:51 UTC (rev 19650)
@@ -130,12 +130,12 @@
assertNotNull(icu3);
assertNotNull(icu4);
collector.initCollector();
- collector.collect(icu);
- collector.collect(icu2);
- collector.collect(icu3);
- collector.collect(icu4);
+ collector.collect(icu, Integer.MAX_VALUE);
+ collector.collect(icu2, Integer.MAX_VALUE);
+ collector.collect(icu3, Integer.MAX_VALUE);
+ collector.collect(icu4, Integer.MAX_VALUE);
if (icu44 != null) {
- collector.collect(icu44);
+ collector.collect(icu44, Integer.MAX_VALUE);
}
collector.resolveRelations();
processor.setEnableOptLock(true);
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/hbmexporter/HbmExporterTest.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/hbmexporter/HbmExporterTest.java 2010-01-05
18:08:29 UTC (rev 19649)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/hbmexporter/HbmExporterTest.java 2010-01-05
18:08:51 UTC (rev 19650)
@@ -84,7 +84,7 @@
selectionCU.add(icu);
}
ConfigurationActor actor = new ConfigurationActor(selectionCU);
- Map<IJavaProject, Configuration> configurations = actor.createConfigurations();
+ Map<IJavaProject, Configuration> configurations =
actor.createConfigurations(Integer.MAX_VALUE);
assertEquals(1, configurations.size());
Configuration config = configurations.get(project.getIJavaProject());
assertNotNull(config);