assertEquals(testScope1Different.getScopeLevel(), key.getMaxScopeLevel());
}
public void testAddScopeLevelChangeSorts() throws Exception
{
ScopeKey key = new ScopeKey();
assertAddScope(key, testLevel1, testQualifier1, null);
assertAddScope(key, testLevel2, testQualifier2, null);
assertAddScope(key, testLevel3, testQualifier3, null);
assertAddScope(key, testLevel4, testQualifier4, null);
assertAddScope(key, testLevel5, testQualifier5, null);
Scope[] expected = new Scope[] { testScope1, testScope2, testScope3, testScope4, testScope5 };
assertScopeKey(expected, key);
assertEquals(testScope5.getScopeLevel(), key.getMaxScopeLevel());
assertAddScope(key, testLevel3, testQualifier3Different, testScope3);
expected = new Scope[] { testScope1, testScope2, testScope3Different, testScope4, testScope5 };
assertScopeKey(expected, key);
assertEquals(testScope5.getScopeLevel(), key.getMaxScopeLevel());
}