Ejemplo n.º 1
0
 protected void assertConditionsWarning(RefactoringStatus conditions, int number) {
   if (number > 0) {
     assertTrue("Warning in Condition expected", conditions.hasWarning()); // $NON-NLS-1$
   }
   RefactoringStatusEntry[] entries = conditions.getEntries();
   int count = 0;
   for (RefactoringStatusEntry entry : entries) {
     if (entry.isWarning()) {
       ++count;
     }
   }
   assertEquals(number + " Warnings expected found " + count, count, number); // $NON-NLS-1$
 }