pm4.commit();
pm4.dispose();
//
Variations v= new Variations();
v.put(CONFIG, "test"); //$NON-NLS-1$
v.put(BUILD, "b0001"); //$NON-NLS-1$
v.put("jvm", "sun142"); //$NON-NLS-1$ //$NON-NLS-2$
DataPoint[] points= DB.queryDataPoints(v, SCENARIO_NAME_1, null);
assertEquals(1, points.length);
DataPoint dp= points[0];
Dim[] dimensions= dp.getDimensions();
assertEquals(2, dimensions.length);
Scalar s1= dp.getScalar(InternalDimensions.CPU_TIME);
assertNotNull(s1);
assertEquals(900, s1.getMagnitude());
Scalar s2= dp.getScalar(InternalDimensions.WORKING_SET);
assertNotNull(s2);
assertEquals(1000, s2.getMagnitude());
//
Set dims= new HashSet();
dims.add(InternalDimensions.WORKING_SET);
points= DB.queryDataPoints(v, SCENARIO_NAME_1, dims);
assertEquals(1, points.length);
dimensions= points[0].getDimensions();
assertEquals(1, dimensions.length);
Scalar s= points[0].getScalar(InternalDimensions.WORKING_SET);
assertNotNull(s);
assertEquals(1000, s.getMagnitude());
//
List buildNames= new ArrayList();
Variations v2= new Variations();
v2.put(CONFIG, "%"); //$NON-NLS-1$
v2.put(BUILD, "b%"); //$NON-NLS-1$
DB.queryDistinctValues(buildNames, BUILD, v2, "%"); //$NON-NLS-1$
assertEquals(1, buildNames.size());
assertEquals("b0001", buildNames.get(0)); //$NON-NLS-1$
SummaryEntry[] fps= DB.querySummaries(PerformanceTestPlugin.getVariations(), null);