@Test public void testGetLastScope() { final ScopePath testScopePath = createTestScopePath(); Assert.assertEquals("test2", testScopePath.getLastScope().getName()); }
@Override public Scope getLastScope() { return scopes.get(scopes.size() - 1); }
ScopePathImpl implements ScopePath { @Override public Scope getLastScope() { return scopes.get(scopes.size() - 1); } }
ScopePathImpl implements ScopePath { @Override public Scope getLastScope() { return scopes.get(scopes.size() - 1); } ScopePathImpl(final List<Scope> scopes); }
ScopePathImpl implements ScopePath { @Override public Scope getLastScope() { return scopes.get(scopes.size() - 1); } ScopePathImpl(final List<Scope> scopes); @Override List<Scope> getScopes(); @Override Scope getRootScope(); @Override Scope getLastScope(); @Override ScopePath getParentPath(); @Override Scope findScopeByName(final String name); @Override boolean startsPathWith(final ScopePath other); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); }
ScopePathImpl implements ScopePath { @Override public Scope getLastScope() { return scopes.get(scopes.size() - 1); } ScopePathImpl(final List<Scope> scopes); @Override List<Scope> getScopes(); @Override Scope getRootScope(); @Override Scope getLastScope(); @Override ScopePath getParentPath(); @Override Scope findScopeByName(final String name); @Override boolean startsPathWith(final ScopePath other); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }